uavsim.graphics.controls.buttons
Class A_ButtonProperties

java.lang.Object
  extended by uavsim.graphics.controls.A_ControlProperties
      extended by uavsim.graphics.controls.buttons.A_ButtonProperties
Direct Known Subclasses:
ButtonProperties

public abstract class A_ButtonProperties
extends A_ControlProperties

Provides the shared functionality for defining button control properties.

Author:
Dan Tappan [22.06.11]

Field Summary
protected  ScalerPair _bodyScale
          the relative scale (as width and height) of the body to its host's absolute size
 
Fields inherited from class uavsim.graphics.controls.A_ControlProperties
_anchorRelative, _bodyColor, _label, _labelProperties, _outlineColor, _outlineScale
 
Constructor Summary
A_ButtonProperties(CoordinateCartesianRelative anchorRelative, ScalerPair bodyScale, Scaler outlineScale, java.awt.Color bodyColor, java.awt.Color outlineColor, java.lang.String label, TextProperties labelProperties)
          Creates an abstract button control descriptor.
 
Method Summary
 ScalerPair getBodyScale()
          Gets the relative scale (as width and height) of the body to its host's absolute size.
 
Methods inherited from class uavsim.graphics.controls.A_ControlProperties
getAnchorRelative, getBodyColor, getLabel, getLabelProperties, getOutlineColor, getOutlineScale, hasLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_bodyScale

protected final ScalerPair _bodyScale
the relative scale (as width and height) of the body to its host's absolute size

Constructor Detail

A_ButtonProperties

public A_ButtonProperties(CoordinateCartesianRelative anchorRelative,
                          ScalerPair bodyScale,
                          Scaler outlineScale,
                          java.awt.Color bodyColor,
                          java.awt.Color outlineColor,
                          java.lang.String label,
                          TextProperties labelProperties)
Creates an abstract button control descriptor.

Parameters:
anchorRelative - - the center anchor relative to the center of the control's host instrument
bodyScale - - the relative scale (as width and height) of the body to its host's absolute size
outlineScale - - the relative scale of the outline to the body
bodyColor - - the body color
outlineColor - - the outline color
label - - the label, which may be empty
labelProperties - - the label properties
Method Detail

getBodyScale

public ScalerPair getBodyScale()
Gets the relative scale (as width and height) of the body to its host's absolute size.

Returns:
the scale