uavsim.graphics.controls.knobs
Class Knob

java.lang.Object
  extended by uavsim.graphics.controls.A_Control
      extended by uavsim.graphics.controls.knobs.A_Knob
          extended by uavsim.graphics.controls.knobs.Knob

public class Knob
extends A_Knob

Provides a basic interactive knob with clockwise and counterclockwise rotation.

Author:
Dan Tappan [22.06.11]

Field Summary
 
Fields inherited from class uavsim.graphics.controls.knobs.A_Knob
_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
Knob(java.lang.String id, KnobProperties properties, A_Instrument hostInstrument)
          Creates a knob control
 
Method Summary
 void render(java.awt.Graphics2D graphics)
          Renders the controls.
 
Methods inherited from class uavsim.graphics.controls.knobs.A_Knob
getProperties, handleMouseEvent_, isCoordinateHit, 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

Knob

public Knob(java.lang.String id,
            KnobProperties properties,
            A_Instrument hostInstrument)
Creates a knob control

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

render

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

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