uavsim.graphics.instruments.dme
Class DMEMarkerIndicator.MarkerDescriptor

java.lang.Object
  extended by uavsim.graphics.instruments.dme.DMEMarkerIndicator.MarkerDescriptor
Enclosing class:
DMEMarkerIndicator

private static final class DMEMarkerIndicator.MarkerDescriptor
extends java.lang.Object

Defines the indicator light for a marker.

Author:
Dan Tappan [16.07.11]

Field Summary
 CoordinateCartesianRelative _anchor
          the relative anchor position
 java.awt.Color _colorActive
          the color when the light is on
 java.awt.Color _colorInactive
          the color when the light is off
 
Constructor Summary
DMEMarkerIndicator.MarkerDescriptor(CoordinateCartesianRelative scale, java.awt.Color activeColor, java.awt.Color inactiveColor)
          Creates a marker descriptor.
 
Method Summary
 java.awt.Color getColor(boolean isActive)
          Resolves the color of the indicator light depending on its state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_anchor

public final CoordinateCartesianRelative _anchor
the relative anchor position


_colorActive

public final java.awt.Color _colorActive
the color when the light is on


_colorInactive

public final java.awt.Color _colorInactive
the color when the light is off

Constructor Detail

DMEMarkerIndicator.MarkerDescriptor

public DMEMarkerIndicator.MarkerDescriptor(CoordinateCartesianRelative scale,
                                           java.awt.Color activeColor,
                                           java.awt.Color inactiveColor)
Creates a marker descriptor.

Parameters:
scale - - the relative anchor position
activeColor - - the color when the light is illuminated
inactiveColor - - the color when the light is not illuminated
Method Detail

getColor

public java.awt.Color getColor(boolean isActive)
Resolves the color of the indicator light depending on its state.

Parameters:
isActive - - whether it is illuminated
Returns:
the color