uavsim.graphics.controls
Class A_KnobProperties
java.lang.Object
uavsim.graphics.controls.A_ControlProperties
uavsim.graphics.controls.A_KnobProperties
- Direct Known Subclasses:
- KnobProperties
public abstract class A_KnobProperties
- extends A_ControlProperties
Provides the shared functionality for defining knob control properties.
- Author:
- Dan Tappan [22.06.11]
|
Field Summary |
protected Scaler |
_bodyScale
the relative scale of the body to its host's absolute size |
|
Method Summary |
Scaler |
getBodyScale()
Gets the relative scale of the body to its host's absolute size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_bodyScale
protected final Scaler _bodyScale
- the relative scale of the body to its host's absolute size
A_KnobProperties
public A_KnobProperties(CoordinateCartesianRelative anchorRelative,
Scaler bodyScale,
Scaler outlineScale,
java.awt.Color bodyColor,
java.awt.Color outlineColor,
java.lang.String label,
TextProperties labelProperties)
- Creates an abstract knob descriptor.
- Parameters:
anchorRelative - - the center anchor relative to the center of the control's host instrumentbodyScale - - the relative scale of the body to its host's absolute sizeoutlineScale - - the relative scale of the outline to the bodybodyColor - - the body coloroutlineColor - - the outline colorlabel - - the label, which may be emptylabelProperties - - the label properties
getBodyScale
public Scaler getBodyScale()
- Gets the relative scale of the body to its host's absolute size.
- Returns:
- the scale