|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuavsim.navigationmodel.A_ChartElement
public abstract class A_ChartElement
Defines the shared aspects of navigation chart elements.
| Field Summary | |
|---|---|
protected CoordinateCartesianAbsolute |
_anchor
the relative origin of the element within its boundary extent to align to the world coordinate on the map |
private boolean |
_areDetailsVisible
whether low-level details that would clutter the display should be rendered |
protected CoordinateWorld3D |
_coordinate
the world coordinate to align the anchor to |
protected java.lang.String |
_id
the unique element identifier |
private static TextProperties |
LABEL_PROPERTIES
the text properties of any element label |
| Constructor Summary | |
|---|---|
A_ChartElement(java.lang.String id,
CoordinateWorld3D coordinate)
Creates an abstract chart element. |
|
| Method Summary | |
|---|---|
boolean |
areDetailsVisible()
Returns whether low-level details that would clutter the display should be rendered. |
abstract java.awt.Color |
getColor()
Gets the color of the glyph. |
CoordinateWorld3D |
getCoordinate()
Gets the coordinate of the origin. |
java.lang.String |
getDesignator()
Gets the station designator. |
A_Frequency<?> |
getFrequency()
Returns the frequency of this element, if it has one; otherwise, it fails with an assertion. |
java.lang.String |
getID()
Gets the unique element identifier. |
boolean |
hasFrequency()
Returns whether this element has a frequency. |
void |
render(java.awt.Graphics2D graphics,
I_WorldMappable mapper,
boolean areDetailsVisible)
Renders the glyph. |
protected void |
renderLabel(java.awt.Graphics2D graphics,
java.lang.String label)
Renders the label. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CoordinateCartesianAbsolute _anchor
private boolean _areDetailsVisible
protected final CoordinateWorld3D _coordinate
protected final java.lang.String _id
private static final TextProperties LABEL_PROPERTIES
| Constructor Detail |
|---|
public A_ChartElement(java.lang.String id,
CoordinateWorld3D coordinate)
id - - the unique element identifiercoordinate - - the coordinate of the origin| Method Detail |
|---|
public boolean areDetailsVisible()
public abstract java.awt.Color getColor()
public CoordinateWorld3D getCoordinate()
public java.lang.String getDesignator()
This is valid only on tuneable chart elements.
public A_Frequency<?> getFrequency()
This is valid only on tuneable chart elements.
public java.lang.String getID()
public boolean hasFrequency()
public void render(java.awt.Graphics2D graphics,
I_WorldMappable mapper,
boolean areDetailsVisible)
graphics - - the graphics contextmapper - - the mapper that translates screen and world coordinatesareDetailsVisible - - whether low-level details that would clutter the display should be rendered
protected void renderLabel(java.awt.Graphics2D graphics,
java.lang.String label)
graphics - - the graphics contextlabel - - the label contentspublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||