public class MilStd2525PointGraphic extends AVListImpl implements MilStd2525TacticalGraphic, TacticalPoint, Draggable
| Modifier and Type | Field and Description | 
|---|---|
| protected TacticalSymbolAttributes | activeSymbolAttributesAttributes to use for the current frame. | 
| protected static TacticalSymbolAttributes | defaultSymbolAttributes | 
| protected boolean | dragEnabledIndicates whether the object is draggable and provides additional information for dragging about this object. | 
| protected DraggableSupport | draggableSupport | 
| protected long | frameTimestampCurrent frame timestamp. | 
| protected TacticalGraphicAttributes | highlightAttributesAttributes to apply when the graphic is highlighted. | 
| protected boolean | highlightedIndicates whether or not the graphic is highlighted. | 
| protected TacticalGraphicAttributes | normalAttributesAttributes to apply when the graphic is not highlighted. | 
| protected TacticalGraphicSymbol | symbolSymbol used to render this graphic. | 
| Constructor and Description | 
|---|
| MilStd2525PointGraphic(String sidc)Create a new point graphic. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | applyAttributesToSymbol(TacticalGraphicAttributes graphicAttributes,
                       TacticalSymbolAttributes symbolAttributes)Apply graphic attributes to the symbol. | 
| protected TacticalGraphicSymbol | createSymbol(String sidc)Create a tactical symbol to render this graphic. | 
| protected void | determineActiveAttributes()Determine active attributes for this frame. | 
| protected void | doDrag(DragContext dragContext) | 
| void | drag(DragContext dragContext)Drag the object given the provided  DragContext. | 
| int | getAltitudeMode()Indicates this symbol's altitude mode. | 
| TacticalGraphicAttributes | getAttributes()Indicates this graphic's attributes when it is in the normal (as opposed to highlighted) state. | 
| Object | getDelegateOwner()Returns the delegate owner of the graphic. | 
| static List<String> | getEmsGraphics() | 
| TacticalGraphicAttributes | getHighlightAttributes()Indicate this graphic's attributes when it is in the highlighted state. | 
| String | getIdentifier()Indicates a string identifier for this graphic. | 
| Offset | getLabelOffset()Indicates an offset used to position the graphic's main label relative to the label's geographic position. | 
| static List<String> | getMetocGraphics() | 
| Object | getModifier(String modifier)Indicates the current value of a text or graphic modifier. | 
| Offset | getOffset()Indicates a location within the symbol to align with the symbol point. | 
| Position | getPosition()Indicates the position of the graphic. | 
| Iterable<? extends Position> | getPositions()Indicates the positions of the control points that place and orient the graphic. | 
| Position | getReferencePosition()A position associated with the object that indicates its aggregate geographic position. | 
| String | getStatus()Indicates the current value of graphic's Status/Operational Condition field. | 
| static List<String> | getSupportedGraphics()Indicates the graphics supported by this class. | 
| static List<String> | getTacGrpGraphics()Indicates the graphics in MIL-STD-2525C Appendix B supported by this class. | 
| String | getText()Convenience method to access the text modifier of the graphic. | 
| UnitsFormat | getUnitsFormat()Indicates the unit format used to format values in text modifiers. | 
| boolean | isDragEnabled()Indicates whether the object is enabled for dragging. | 
| boolean | isHighlighted()Indicates whether to highlight the shape. | 
| boolean | isShowGraphicModifiers()Indicates whether this graphic draws its supplemental graphic modifiers. | 
| boolean | isShowHostileIndicator()Indicates whether or not this graphic will display a text indicator when the graphic represents a hostile entity. | 
| boolean | isShowLocation()Indicates whether or not the graphic should display its location as a text modifier. | 
| boolean | isShowTextModifiers()Indicates whether this graphic draws its supplemental text modifiers. | 
| boolean | isVisible()Indicates whether this graphic is drawn when in view. | 
| void | move(Position delta)Shift the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
 North. | 
| void | moveTo(Position position)Move the shape over the globe's surface while maintaining its original azimuth, its orientation relative to
 North. | 
| void | render(DrawContext dc)Causes this  Renderableto render itself using the provided draw context. | 
| void | setAltitudeMode(int altitudeMode)Specifies this graphic's altitude mode. | 
| void | setAttributes(TacticalGraphicAttributes attributes)Specifies attributes for this graphic in the normal (as opposed to highlighted) state. | 
| void | setDelegateOwner(Object owner)Specifies the delegate owner of the graphic. | 
| void | setDragEnabled(boolean enabled)Controls whether the object is enabled for dragging. | 
| void | setHighlightAttributes(TacticalGraphicAttributes attributes)Specifies attributes for this graphic in the highlighted state. | 
| void | setHighlighted(boolean highlighted)Specifies whether to highlight the shape. | 
| void | setLabelOffset(Offset offset)Specifies an offset used to position this graphic's main label relative to the label's geographic position. | 
| void | setModifier(String modifier,
           Object value)Specifies the value of a text or graphic modifier. | 
| void | setOffset(Offset offset)Specifies a location within the tactical symbol to align with the symbol point. | 
| void | setPosition(Position position)Specifies the position of the graphic. | 
| void | setPositions(Iterable<? extends Position> positions)Specifies the positions of the control points that place and orient the graphic. | 
| void | setShowGraphicModifiers(boolean showModifiers)Specifies whether to draw this graphic's supplemental graphic modifiers. | 
| void | setShowHostileIndicator(boolean show)Specifies whether or not to display a text indicator when the symbol or graphic represents a hostile entity. | 
| void | setShowLocation(boolean show)Specifies whether or not the graphic should display its location as a text modifier. | 
| void | setShowTextModifiers(boolean showModifiers)Specifies whether to draw this graphic's supplemental text modifiers. | 
| void | setStatus(String value)Specifies this graphic's Status/Operational Condition field. | 
| void | setText(String text)Convenience method to specify a text modifier for the graphic. | 
| void | setUnitsFormat(UnitsFormat unitsFormat)Specifies the unit format used to format values in text modifiers. | 
| void | setVisible(boolean visible)Specifies whether this graphic is drawn when in view. | 
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValuesprotected TacticalSymbolAttributes activeSymbolAttributes
protected static TacticalSymbolAttributes defaultSymbolAttributes
protected boolean dragEnabled
protected DraggableSupport draggableSupport
protected long frameTimestamp
protected TacticalGraphicAttributes highlightAttributes
protected boolean highlighted
protected TacticalGraphicAttributes normalAttributes
protected TacticalGraphicSymbol symbol
public MilStd2525PointGraphic(String sidc)
sidc - MIL-STD-2525 SIDC code that identifies the graphic.protected void applyAttributesToSymbol(TacticalGraphicAttributes graphicAttributes, TacticalSymbolAttributes symbolAttributes)
graphicAttributes - Tactical graphic attributes to apply to the tactical symbol.symbolAttributes - Symbol attributes to be modified.protected TacticalGraphicSymbol createSymbol(String sidc)
sidc - Symbol code that identifies the graphic.protected void determineActiveAttributes()
protected void doDrag(DragContext dragContext)
public void drag(DragContext dragContext)
DraggableDragContext.drag in interface DraggabledragContext - the DragContext of this dragging event.public int getAltitudeMode()
setAltitudeMode(int) for a description of the valid altitude
 modes.public TacticalGraphicAttributes getAttributes()
getAttributes in interface TacticalGraphicpublic Object getDelegateOwner()
getDelegateOwner in interface TacticalGraphicpublic TacticalGraphicAttributes getHighlightAttributes()
getHighlightAttributes in interface TacticalGraphicpublic String getIdentifier()
getIdentifier in interface TacticalGraphicpublic Offset getLabelOffset()
setLabelOffset for more information.getLabelOffset in interface TacticalGraphicpublic Object getModifier(String modifier)
getModifier in interface TacticalGraphicmodifier - Key that identifies the modifier to retrieve. The possible modifiers depends on the symbol set.null if the modifier is not set.public Offset getOffset()
setOffset for more information.public Position getPosition()
getPosition in interface TacticalPointpublic Iterable<? extends Position> getPositions()
getPositions in interface TacticalGraphicpublic Position getReferencePosition()
getReferencePosition in interface Movablepublic String getStatus()
getStatus in interface MilStd2525TacticalGraphicMilStd2525TacticalGraphic.setStatus(String)public static List<String> getSupportedGraphics()
public static List<String> getTacGrpGraphics()
public String getText()
getModifier(SymbologyConstants.UNIQUE_DESIGNATION).getText in interface TacticalGraphicTacticalGraphic.getModifier(String)public UnitsFormat getUnitsFormat()
getUnitsFormat in interface TacticalGraphicpublic boolean isDragEnabled()
DraggableisDragEnabled in interface Draggablepublic boolean isHighlighted()
isHighlighted in interface Highlightablepublic boolean isShowGraphicModifiers()
isShowGraphicModifiers in interface TacticalGraphicpublic boolean isShowHostileIndicator()
setShowHostileIndicator for more information.isShowHostileIndicator in interface TacticalGraphicpublic boolean isShowLocation()
isShowLocation in interface TacticalGraphicpublic boolean isShowTextModifiers()
isShowTextModifiers in interface TacticalGraphicpublic boolean isVisible()
isVisible in interface TacticalGraphicpublic void move(Position delta)
public void moveTo(Position position)
public void render(DrawContext dc)
Renderable to render itself using the provided draw context.render in interface Renderabledc - the DrawContext to be usedDrawContextpublic void setAltitudeMode(int altitudeMode)
altitudeMode - this symbol's new altitude mode.public void setAttributes(TacticalGraphicAttributes attributes)
setAttributes in interface TacticalGraphicattributes - new attributes. May be null, in which case default attributes are used.public void setDelegateOwner(Object owner)
setDelegateOwner in interface TacticalGraphicowner - the object to use as the pickable object returned during picking, or null to return the graphic.public void setDragEnabled(boolean enabled)
DraggablesetDragEnabled in interface Draggableenabled - true if the object is enabled, else false.public void setHighlightAttributes(TacticalGraphicAttributes attributes)
setAttributes for more information on how the attributes are
 interpreted.setHighlightAttributes in interface TacticalGraphicattributes - Attributes to apply to the graphic when it is highlighted. May be null, in which default
                   attributes are used.public void setHighlighted(boolean highlighted)
setHighlighted in interface Highlightablehighlighted - true to highlight the shape, otherwise false.public void setLabelOffset(Offset offset)
setLabelOffset in interface TacticalGraphicoffset - The offset that determines how the graphic's label is placed relative to the graphic.public void setModifier(String modifier, Object value)
setModifier in interface TacticalGraphicmodifier - Key that identifies the modifier to set. The possible modifiers depends on the symbol set.value - New value for the modifier.public void setOffset(Offset offset)
setOffset(Offset.CENTER) aligns the center of the symbol with the symbol point, and setOffset(Offset.BOTTOM_CENTER) aligns the center of the bottom edge with the symbol point.offset - the hot spot controlling the symbol's placement relative to the symbol point. May be null to
               indicate default alignment.public void setPosition(Position position)
setPosition in interface TacticalPointposition - New position.public void setPositions(Iterable<? extends Position> positions)
setPositions in interface TacticalGraphicpositions - Control points. This graphic uses only one control point.public void setShowGraphicModifiers(boolean showModifiers)
setShowGraphicModifiers in interface TacticalGraphicshowModifiers - true if this graphic should draw its graphic modifiers, otherwise false.public void setShowHostileIndicator(boolean show)
setShowHostileIndicator in interface TacticalGraphicshow - true if this graphic should display an indicator when this graphic represents a hostile entity and
             the graphic implementation supports such an indicator. Note that some graphics may not display an
             indicator, even when representing a hostile entity.public void setShowLocation(boolean show)
setShowLocation in interface TacticalGraphicshow - true if the graphic will display the location modifier. Note that not all graphics support this
             modifier.public void setShowTextModifiers(boolean showModifiers)
setShowTextModifiers in interface TacticalGraphicshowModifiers - true if this graphic should draw its text modifiers, otherwise false.public void setStatus(String value)
setStatus in interface MilStd2525TacticalGraphicvalue - the new value for the Status/Operational Condition field.public void setText(String text)
setModifier(SymbologyConstants.UNIQUE_DESIGNATION, text).setText in interface TacticalGraphictext - New text modifier. May be null.TacticalGraphic.setModifier(String, Object)public void setUnitsFormat(UnitsFormat unitsFormat)
setUnitsFormat in interface TacticalGraphicunitsFormat - Format used to format text modifiers.public void setVisible(boolean visible)
setVisible in interface TacticalGraphicvisible - true if this graphic should be drawn when in view, otherwise false.