uavsim.graphics.controls.buttons
Class PushButton

java.lang.Object
  extended by uavsim.graphics.controls.A_Control
      extended by uavsim.graphics.controls.buttons.A_Button
          extended by uavsim.graphics.controls.buttons.PushButton

public class PushButton
extends A_Button

Provides a basic interactive pushbutton.

Author:
Dan Tappan [15.07.11]

Field Summary
 
Fields inherited from class uavsim.graphics.controls.buttons.A_Button
_body, _properties
 
Fields inherited from class uavsim.graphics.controls.A_Control
_id, CURSOR_ARROW_DOWN, CURSOR_ARROW_LEFT, CURSOR_ARROW_RIGHT, CURSOR_ARROW_UP, CURSOR_CROSSHAIR, CURSOR_DEFAULT, CURSOR_HAND
 
Constructor Summary
PushButton(java.lang.String id, ButtonProperties properties, A_Instrument hostInstrument)
          Creates a pushbutton control.
 
Method Summary
 void render(java.awt.Graphics2D graphics)
          Renders the controls.
 
Methods inherited from class uavsim.graphics.controls.buttons.A_Button
getProperties, handleMouseEvent_, isCoordinateHit, toString
 
Methods inherited from class uavsim.graphics.controls.A_Control
calculateAnchor, getHostInstrument, getID, resetCursor, setCursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PushButton

public PushButton(java.lang.String id,
                  ButtonProperties properties,
                  A_Instrument hostInstrument)
Creates a pushbutton control.

Parameters:
id - - the unique button identifier
properties - - the button properties
hostInstrument - - the button host instrument
Method Detail

render

public void render(java.awt.Graphics2D graphics)
Renders the controls.

Overrides:
render in class A_Button
Parameters:
graphics - - the graphics context