|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.controls.A_Control
uavsim.graphics.controls.buttons.A_Button
public abstract class A_Button
Provides the shared functionality of a basic interactive pushbutton.
| Field Summary | |
|---|---|
protected Box |
_body
the button body. |
protected ButtonProperties |
_properties
the button 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 | |
|---|---|
A_Button(java.lang.String id,
ButtonProperties properties,
A_Instrument hostInstrument)
Creates an abstract button control. |
|
| Method Summary | |
|---|---|
ButtonProperties |
getProperties()
Gets the button properties. |
boolean |
handleMouseEvent_(java.awt.event.MouseEvent mouseEvent)
Handles a mouse event. |
protected boolean |
isCoordinateHit(CoordinateCartesianAbsolute point)
Determines whether a screen coordinate is contained within the bounds of this control. |
void |
render(java.awt.Graphics2D graphics)
Renders the controls. |
java.lang.String |
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 |
| Field Detail |
|---|
protected Box _body
protected final ButtonProperties _properties
| Constructor Detail |
|---|
public A_Button(java.lang.String id,
ButtonProperties properties,
A_Instrument hostInstrument)
id - - the unique button identifierproperties - - the button propertieshostInstrument - - the button host instrument| Method Detail |
|---|
public ButtonProperties getProperties()
public boolean handleMouseEvent_(java.awt.event.MouseEvent mouseEvent)
handleMouseEvent_ in class A_ControlmouseEvent - - the event
protected boolean isCoordinateHit(CoordinateCartesianAbsolute point)
isCoordinateHit in class A_Controlpoint - - the coordinate
public void render(java.awt.Graphics2D graphics)
render in class A_Controlgraphics - - the graphics contextpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||