Class TLcdNVG15Arrow
- All Implemented Interfaces:
ILcdDataObject,ILcdNVGNode,ILcdBounded,ILcdCurve,ILcdGeoBuffer,ILcdPointList,ILcdPolyline,ILcdShape,ILcd2DEditableGeoBuffer,ILcd2DEditablePointList,ILcd2DEditablePolyline,ILcd2DEditableShape,ILcdCache,ILcdCloneable,ILcdDeepCloneable,ILcdInvalidateable,Serializable,Cloneable
ILcd2DEditableGeoBuffer with an ILcd2DEditablePolyline as an underlying shape
that represents an NVG 1.5 Arrow.- Since:
- 2015.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thelabelattribute.static final TLcdDataPropertyData property that maps to theleg-typeattribute.static final TLcdDataPropertyData property that maps to themodifiersattribute.static final TLcdDataPropertyData property that maps to thepointsattribute.static final TLcdDataPropertyData property that maps to thestyleattribute.static final TLcdDataPropertyData property that maps to thesymbolattribute.static final TLcdDataPropertyData property that maps to theuriattribute.static final TLcdDataPropertyData property that maps to thewidthattribute.Fields inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15DataObject
EXTENDED_DATA_PROPERTY, METADATA_PROPERTYFields inherited from interface com.luciad.shape.ILcdCurve
INTERPOLATION_CIRCLE_BY_3POINTS, INTERPOLATION_CIRCLE_BY_CENTERPOINT, INTERPOLATION_CIRCULARARC_BY_3POINTS, INTERPOLATION_CIRCULARARC_BY_BULGE, INTERPOLATION_CIRCULARARC_BY_CENTERPOINT, INTERPOLATION_ELLIPTICAL, INTERPOLATION_GEODESIC, INTERPOLATION_LINEAR, INTERPOLATION_MIXED, INTERPOLATION_RHUMBFields inherited from interface com.luciad.shape.ILcdGeoBuffer
CAP_BUTT, CAP_ROUND, JOIN_ROUND -
Constructor Summary
ConstructorsConstructorDescriptionTLcdNVG15Arrow(TLcdDataType aDataType) Creates a new instance of TLcdNVG15Arrow with the given data type. -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the cache.clone()Returns a deep clone of this object.Returns a deep clone of this object.booleancontains2D(double x, double y) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns the base shape of the buffer.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.getCachedObject(Object aKey) Looks up and returns the cached Object corresponding to the given key.intReturns the end cap style of this buffer, which defines the representation of the contour at the endings of the base shape.Returns the focus point of thisILcdShape.intReturns the join style for the contour of this buffer, which defines the representation of the contour at the joins between two line segments of the base shape.getLabel()Returns the value of the property that maps to thelabelattribute.Returns the value of the property that maps to theleg-typeattribute.Returns the value of the property that maps to themodifiersattribute.Returns the value of the property that maps to thepointsattribute.getStyle()Returns the value of the property that maps to thestyleattribute.Returns the value of the property that maps to thesymbolattribute.getUri()Returns the value of the property that maps to theuriattribute.doublegetWidth()Returns the width of this buffer, expressed in meters and measured from the line segments of the base shape to the contour.doubleReturns the value of the property that maps to thewidthattribute.voidinsertIntoCache(Object aKey, Object aObject) Inserts a cache Object corresponding to the given key Object.voidInvalidates all cached values of this object.voidIndicates that the base shape has been changed, and that the buffer should be recalculated.voidmove2D(double aX, double aY) Moves thisILcd2DEditableShapeto the given point in the 2D space.voidMoves thisILcd2DEditableShapeto the given point in the 2D space.removeCachedObject(Object aKey) Looks up and removes the cached Object corresponding to the given key.voidsetBaseShape(ILcdShape aBaseShape) Sets the base shape of the buffer.voidsetEllipsoid(ILcdEllipsoid aEllipsoid) voidsetEndCapStyle(int aEndCapStyle) Sets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTTorILcdGeoBuffer.CAP_ROUND.voidsetJoinStyle(int aJoinStyle) Sets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND.voidSets the value of the property that maps to thelabelattribute.voidsetModifiers(TLcdNVGModifiers aValue) Sets the value of the property that maps to themodifiersattribute.voidsetPoints(ILcd2DEditablePointList aValue) Sets the value of the property that maps to thepointsattribute.voidsetStyle(TLcdNVGStyle aValue) Sets the value of the property that maps to thestyleattribute.voidsetSymbol(TLcdNVGSymbol aValue) Sets the value of the property that maps to thesymbolattribute.voidSets the value of the property that maps to theuriattribute.voidsetWidth(double aWidth) Sets the width of the buffer, expressed in meters and measured from the axis to the border.voidsetWidthNVG(double aValue) Sets the value of the property that maps to thewidthattribute.voidtranslate2D(double aX, double aY) Translates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space.Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15Polyline
computePointSFCT, getEndPoint, getEndTangent2D, getInterpolation, getLength2D, getLineSegmentIntersectionCount, getPoint, getPointCount, getStartPoint, getStartTangent2D, getTangent2D, insert2DPoint, move2DPoint, removePointAt, setLegType, setValue, translate2DPointMethods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15MapObject
getAPP6CodedFromMapObject, getMS2525CodedFromMapObject, setSymbolFromAPP6, setSymbolFromMS2525Methods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15DataObject
getExtendedData, getMetadata, setExtendedData, setMetadataMethods inherited from class com.luciad.format.nvg.nvg15.model.TLcdNVG15Base
getParent, setParentMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditablePointList
append2DPoint, insert2DPoint, move2DPoint, removePointAt, translate2DPointMethods inherited from interface com.luciad.shape.ILcdPointList
getPoint, getPointCount, getPointSFCT, getX, getY, getZ
-
Field Details
-
WIDTH_NVG_PROPERTY
Data property that maps to thewidthattribute. The possible values for this property are instances ofdouble. -
LEG_TYPE_PROPERTY
Data property that maps to theleg-typeattribute. The possible values for this property are instances ofString. -
POINTS_PROPERTY
Data property that maps to thepointsattribute. The possible values for this property are instances ofILcd2DEditablePointList. -
MODIFIERS_PROPERTY
Data property that maps to themodifiersattribute. The possible values for this property are instances ofTLcdNVGModifiers. -
SYMBOL_PROPERTY
Data property that maps to thesymbolattribute. The possible values for this property are instances ofTLcdNVGSymbol. -
LABEL_PROPERTY
Data property that maps to thelabelattribute. The possible values for this property are instances ofString. -
STYLE_PROPERTY
Data property that maps to thestyleattribute. The possible values for this property are instances ofTLcdNVGStyle. -
URI_PROPERTY
Data property that maps to theuriattribute. The possible values for this property are instances ofURI.
-
-
Constructor Details
-
TLcdNVG15Arrow
public TLcdNVG15Arrow() -
TLcdNVG15Arrow
Creates a new instance of TLcdNVG15Arrow with the given data type.- Parameters:
aDataType- the data type of the arrow.
-
-
Method Details
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdNVG15Polyline- Returns:
- a deep clone of this object
- See Also:
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein classTLcdNVG15Polyline- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
setBaseShape
Description copied from interface:ILcd2DEditableGeoBufferSets the base shape of the buffer.- Specified by:
setBaseShapein interfaceILcd2DEditableGeoBuffer- Parameters:
aBaseShape- the base shape of the buffer.
-
setJoinStyle
public void setJoinStyle(int aJoinStyle) Description copied from interface:ILcd2DEditableGeoBufferSets the join style of the buffer, which must beILcdGeoBuffer.JOIN_ROUND.- Specified by:
setJoinStylein interfaceILcd2DEditableGeoBuffer- Parameters:
aJoinStyle- the join style of the buffer.
-
setEndCapStyle
public void setEndCapStyle(int aEndCapStyle) Description copied from interface:ILcd2DEditableGeoBufferSets the end cap style of the buffer, which must be eitherILcdGeoBuffer.CAP_BUTTorILcdGeoBuffer.CAP_ROUND.- Specified by:
setEndCapStylein interfaceILcd2DEditableGeoBuffer- Parameters:
aEndCapStyle- the end cap style of the buffer.
-
setWidth
public void setWidth(double aWidth) Description copied from interface:ILcd2DEditableGeoBufferSets the width of the buffer, expressed in meters and measured from the axis to the border.- Specified by:
setWidthin interfaceILcd2DEditableGeoBuffer- Parameters:
aWidth- the width of the buffer.
-
getWidth
public double getWidth()Description copied from interface:ILcdGeoBufferReturns the width of this buffer, expressed in meters and measured from the line segments of the base shape to the contour. The width is positive (width >= 0).- Specified by:
getWidthin interfaceILcdGeoBuffer- Returns:
- the width of the buffer.
-
getBaseShape
Description copied from interface:ILcdGeoBufferReturns the base shape of the buffer.- Specified by:
getBaseShapein interfaceILcdGeoBuffer- Returns:
- the base shape of the buffer.
-
setWidthNVG
public void setWidthNVG(double aValue) Sets the value of the property that maps to thewidthattribute.Width of the corridor (distance)
- Parameters:
aValue- the value to set for theWIDTH_NVG_PROPERTYproperty.
-
invalidateObject
public void invalidateObject()Description copied from interface:ILcdInvalidateableInvalidates all cached values of this object. Call this method whenever one or more of this object's compositing values has been changed, to notify this object it needs to recompute its cached values.- Specified by:
invalidateObjectin interfaceILcdInvalidateable- Overrides:
invalidateObjectin classTLcdNVG15Polyline
-
setPoints
Sets the value of the property that maps to thepointsattribute.Point list in decimal degrees, coordinate pairs, separated by spaces: lon1,lat1 lon2,lat2 ... lonn,latn
- Overrides:
setPointsin classTLcdNVG15Polyline- Parameters:
aValue- the value to set for thePOINTS_PROPERTYproperty.
-
getEndCapStyle
public int getEndCapStyle()Description copied from interface:ILcdGeoBufferReturns the end cap style of this buffer, which defines the representation of the contour at the endings of the base shape. This is one ofILcdGeoBuffer.CAP_ROUNDorILcdGeoBuffer.CAP_BUTT.- Specified by:
getEndCapStylein interfaceILcdGeoBuffer- Returns:
- the end cap style of the buffer.
-
getJoinStyle
public int getJoinStyle()Description copied from interface:ILcdGeoBufferReturns the join style for the contour of this buffer, which defines the representation of the contour at the joins between two line segments of the base shape. This is alwaysILcdGeoBuffer.JOIN_ROUND.- Specified by:
getJoinStylein interfaceILcdGeoBuffer- Returns:
- the join style of the buffer.
-
invalidateShape
public void invalidateShape()Description copied from interface:ILcd2DEditableGeoBufferIndicates that the base shape has been changed, and that the buffer should be recalculated.- Specified by:
invalidateShapein interfaceILcd2DEditableGeoBuffer
-
getEllipsoid
-
setEllipsoid
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdNVG15Polyline- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double x, double y) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Overrides:
contains2Din classTLcdNVG15Polyline- Parameters:
x- the x coordinate of the point.y- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Overrides:
getFocusPointin classTLcdNVG15Polyline- Returns:
- the focus point of this
ILcdShape.
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Overrides:
getBoundsin classTLcdNVG15Polyline- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
insertIntoCache
Description copied from interface:ILcdCacheInserts a cache Object corresponding to the given key Object.- Specified by:
insertIntoCachein interfaceILcdCache- Overrides:
insertIntoCachein classTLcdNVG15Polyline- Parameters:
aKey- the key Object that will be used to identify the Object. The key must therefore be a unique identifier, typically the caller itself:insertIntoCache(this, ...).aObject- the Object to be cached.
-
getCachedObject
Description copied from interface:ILcdCacheLooks up and returns the cached Object corresponding to the given key.- Specified by:
getCachedObjectin interfaceILcdCache- Overrides:
getCachedObjectin classTLcdNVG15Polyline- Parameters:
aKey- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there is no Object corresponding to the given key.
-
removeCachedObject
Description copied from interface:ILcdCacheLooks up and removes the cached Object corresponding to the given key.- Specified by:
removeCachedObjectin interfaceILcdCache- Overrides:
removeCachedObjectin classTLcdNVG15Polyline- Parameters:
aKey- the key Object that was used for storing the cache Object.- Returns:
- the cached Object, or null if there was no Object corresponding to the given key.
-
clearCache
public void clearCache()Description copied from interface:ILcdCacheClears the cache.- Specified by:
clearCachein interfaceILcdCache- Overrides:
clearCachein classTLcdNVG15Polyline
-
move2D
Description copied from interface:ILcd2DEditableShapeMoves thisILcd2DEditableShapeto the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of theILcdShapeand theILcdPointare considered. The third dimension is left unchanged.- Specified by:
move2Din interfaceILcd2DEditableShape- Overrides:
move2Din classTLcdNVG15Polyline- Parameters:
aPoint- theILcdPointto move to.- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdNVG15Polyline- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdNVG15Polyline- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
move2D
public void move2D(double aX, double aY) Description copied from interface:ILcd2DEditableShapeMoves thisILcd2DEditableShapeto the given point in the 2D space. The focus point is used as the handle by which the shape is moved. Only the first two dimensions of theILcdShapeare considered. The third dimension is left unchanged.- Specified by:
move2Din interfaceILcd2DEditableShape- Overrides:
move2Din classTLcdNVG15Polyline- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.
-
translate2D
public void translate2D(double aX, double aY) Description copied from interface:ILcd2DEditableShapeTranslates thisILcd2DEditableShapefrom its current position over the given translation vector in the 2D space. Only the first two dimensions of theILcdShapeare considered. The third dimension is left unchanged.- Specified by:
translate2Din interfaceILcd2DEditablePointList- Specified by:
translate2Din interfaceILcd2DEditableShape- Overrides:
translate2Din classTLcdNVG15Polyline- Parameters:
aX- the x coordinate of the translation vector.aY- the y coordinate of the translation vector.
-
getWidthNVG
public double getWidthNVG()Returns the value of the property that maps to thewidthattribute.Width of the corridor (distance)
- Returns:
- the value of the
WIDTH_NVG_PROPERTYproperty.
-
getLegType
Returns the value of the property that maps to theleg-typeattribute.- Returns:
- the value of the
LEG_TYPE_PROPERTYproperty.
-
getPoints
Returns the value of the property that maps to thepointsattribute.Point list in decimal degrees, coordinate pairs, separated by spaces: lon1,lat1 lon2,lat2 ... lonn,latn
- Returns:
- the value of the
POINTS_PROPERTYproperty.
-
getModifiers
Returns the value of the property that maps to themodifiersattribute.Modifiers to the specified symbology, possibly including rendering hints.
- Returns:
- the value of the
MODIFIERS_PROPERTYproperty.
-
setModifiers
Sets the value of the property that maps to themodifiersattribute.Modifiers to the specified symbology, possibly including rendering hints.
- Parameters:
aValue- the value to set for theMODIFIERS_PROPERTYproperty.
-
getSymbol
Returns the value of the property that maps to thesymbolattribute.The symbol attribute is used to associate symbology with a given shape. Its format is the name of a standard followed by a colon and the text representation of the element in that standard. That standard can be used to derive the graphical representation of the element.
- Returns:
- the value of the
SYMBOL_PROPERTYproperty.
-
setSymbol
Sets the value of the property that maps to thesymbolattribute.The symbol attribute is used to associate symbology with a given shape. Its format is the name of a standard followed by a colon and the text representation of the element in that standard. That standard can be used to derive the graphical representation of the element.
- Parameters:
aValue- the value to set for theSYMBOL_PROPERTYproperty.
-
getLabel
Returns the value of the property that maps to thelabelattribute.A textual representation of this element.
- Returns:
- the value of the
LABEL_PROPERTYproperty.
-
setLabel
Sets the value of the property that maps to thelabelattribute.A textual representation of this element.
- Parameters:
aValue- the value to set for theLABEL_PROPERTYproperty.
-
getStyle
Returns the value of the property that maps to thestyleattribute.CSS based style description which indicates how this element should be rendered graphically.
- Returns:
- the value of the
STYLE_PROPERTYproperty.
-
setStyle
Sets the value of the property that maps to thestyleattribute.CSS based style description which indicates how this element should be rendered graphically.
- Parameters:
aValue- the value to set for theSTYLE_PROPERTYproperty.
-
getUri
Returns the value of the property that maps to theuriattribute.URI schema that uniquely identifies the object. See the URI Scheme for more details.
- Returns:
- the value of the
URI_PROPERTYproperty.
-
setUri
Sets the value of the property that maps to theuriattribute.URI schema that uniquely identifies the object. See the URI Scheme for more details.
- Parameters:
aValue- the value to set for theURI_PROPERTYproperty.
-