|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.graphics.instruments.A_Instrument
uavsim.graphics.instruments.A_RectangularInstrument
public abstract class A_RectangularInstrument
Defines the shared elements of all resizeable rectangular instruments.
| Field Summary | |
|---|---|
protected RectangularFaceplaceDescriptor |
_faceplaceDescriptor
the faceplate descriptor |
protected Size |
_faceSize
the faceplace size in pixels |
| Fields inherited from class uavsim.graphics.instruments.A_Instrument |
|---|
_canvasAnchor, _canvasSize, _graphics, _id |
| Constructor Summary | |
|---|---|
A_RectangularInstrument(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor,
RectangularFaceplaceDescriptor faceplaceDescriptor)
Creates an abstract rectangular instrument. |
|
| Method Summary | |
|---|---|
Size |
getFaceSize()
Gets the faceplace size in pixels. |
void |
render(java.awt.Graphics graphics)
Renders the current state of the instrument. |
protected void |
renderBox()
Renders the mount ring. |
| Methods inherited from class uavsim.graphics.instruments.A_Instrument |
|---|
getAnchor, getCanvasSize, getGraphics, getID, getParentComponent, handleControlCallback, hasControls, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, refresh, registerControl, setCanvasAnchor, setCanvasSize, setParentComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final RectangularFaceplaceDescriptor _faceplaceDescriptor
protected Size _faceSize
| Constructor Detail |
|---|
public A_RectangularInstrument(java.lang.String id,
int canvasSize,
CoordinateCartesianAbsolute canvasAnchor,
RectangularFaceplaceDescriptor faceplaceDescriptor)
id - - the unique instrument identifiercanvasSize - - the square size of the instrument footprint in pixelscanvasAnchor - - the anchor position for the center of the canvas in pixelsfaceplaceDescriptor - - the faceplate descriptor| Method Detail |
|---|
public Size getFaceSize()
public void render(java.awt.Graphics graphics)
render in class A_Instrumentgraphics - - the graphics contextprotected void renderBox()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||