uavsim.navigationmodel
Class A_MarkerBeacon

java.lang.Object
  extended by uavsim.navigationmodel.A_ChartElement
      extended by uavsim.navigationmodel.A_MarkerBeacon
Direct Known Subclasses:
InnerMarker, MiddleMarker, OuterMarker

public abstract class A_MarkerBeacon
extends A_ChartElement

Defines the shared aspects of a chart element for a marker beacon.

This component should not be instantiated and added to a chart directly because it is processed only as a members of an ILSAssembly.

Author:
Dan Tappan [17.07.11]

Field Summary
private static Latitude RADIUS
          the radius of the glyph
 
Fields inherited from class uavsim.navigationmodel.A_ChartElement
_anchor, _coordinate, _id
 
Constructor Summary
protected A_MarkerBeacon(java.lang.String id, CoordinateWorld3D coordinate)
          Creates an abstract marker beacon.
 
Method Summary
 boolean isOverMarker(CoordinateWorld coordinate)
          Determines whether a coordinate is located over a marker.
 void render(java.awt.Graphics2D graphics, I_WorldMappable mapper, boolean areDetailsVisible)
          Renders the glyph.
 
Methods inherited from class uavsim.navigationmodel.A_ChartElement
areDetailsVisible, getColor, getCoordinate, getDesignator, getFrequency, getID, hasFrequency, renderLabel, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RADIUS

private static final Latitude RADIUS
the radius of the glyph

Constructor Detail

A_MarkerBeacon

protected A_MarkerBeacon(java.lang.String id,
                         CoordinateWorld3D coordinate)
Creates an abstract marker beacon.

Parameters:
id - - the unique element identifier
coordinate - - the coordinate of the origin
Method Detail

isOverMarker

public boolean isOverMarker(CoordinateWorld coordinate)
Determines whether a coordinate is located over a marker.

Parameters:
coordinate - - the coordinate
Returns:
the result

render

public void render(java.awt.Graphics2D graphics,
                   I_WorldMappable mapper,
                   boolean areDetailsVisible)
Renders the glyph.

Overrides:
render in class A_ChartElement
Parameters:
graphics - - the graphics context
mapper - - the mapper that translates screen and world coordinates
areDetailsVisible - - whether low-level details that would clutter the display should be rendered