uavsim.graphics.instruments
Class CircularFaceplateDescriptor<_UNIT_ extends I_Unitable<_UNIT_>>

java.lang.Object
  extended by uavsim.graphics.instruments.CircularFaceplateDescriptor<_UNIT_>
Type Parameters:
_UNIT_ - - the unit that the instrumentation is based on

public class CircularFaceplateDescriptor<_UNIT_ extends I_Unitable<_UNIT_>>
extends java.lang.Object

Provides a descriptor for the faceplate of circular "steam" gauges.

Author:
Dan Tappan [29.06.11]

Field Summary
private  ArcMathematical _arc
          the arc over which the instrument represents a value of the given unit
private  Interval<_UNIT_> _scale
          the minimum and maximum values to map over the arc
 
Constructor Summary
CircularFaceplateDescriptor(double arcAngleStart, double arcAngleEnd, _UNIT_ valueMin, _UNIT_ valueMax)
          Creates a circular faceplate descriptor.
 
Method Summary
 ArcMathematical getArc()
          Gets the arc over which the instrument represents a value of the given unit.
 Interval<_UNIT_> getScale()
          Gets the the minimum and maximum values to map over the arc.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_arc

private final ArcMathematical _arc
the arc over which the instrument represents a value of the given unit


_scale

private final Interval<_UNIT_ extends I_Unitable<_UNIT_>> _scale
the minimum and maximum values to map over the arc

Constructor Detail

CircularFaceplateDescriptor

public CircularFaceplateDescriptor(double arcAngleStart,
                                   double arcAngleEnd,
                                   _UNIT_ valueMin,
                                   _UNIT_ valueMax)
Creates a circular faceplate descriptor.

Parameters:
arcAngleStart - - the start of the clockwise arc over which the instrument represents a value of the given unit
arcAngleEnd - - the arc end
valueMin - - the minimum value to map over the arc
valueMax - - the maximum value to map over the arc
Method Detail

getArc

public ArcMathematical getArc()
Gets the arc over which the instrument represents a value of the given unit.

Returns:
the arc

getScale

public Interval<_UNIT_> getScale()
Gets the the minimum and maximum values to map over the arc.

Returns:
the interval

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object