public class TLcdNVG20Point extends TLcdNVG20SymbolizedContent implements ILcd2DEditablePoint, ILcdCache
ILcd2DEditablePoint
that represents an NVG 2.0 Point.
Note TLcdNVG20Point inherits a TLcdNVGStyle
from TLcdNVG20Content
. However, the rendering of a point
is only based on its TLcdNVGSymbol
.
TLcdNVG20Content.ShapeType, TLcdNVG20Content.TimeSpan
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
COURSE_PROPERTY
Data property that maps to the
course attribute. |
static TLcdDataProperty |
EXTENDED_DATA_PROPERTY
Data property that maps to the
ExtendedData element. |
static TLcdDataProperty |
EXTENSION_PROPERTY
Data property that maps to the
extension element. |
static TLcdDataProperty |
HREF_PROPERTY
Data property that maps to the
href attribute. |
static TLcdDataProperty |
LABEL_PROPERTY
Data property that maps to the
label attribute. |
static TLcdDataProperty |
METADATA_PROPERTY
Data property that maps to the
metadata element. |
static TLcdDataProperty |
MODIFIERS_PROPERTY
Data property that maps to the
modifiers attribute. |
static TLcdDataProperty |
ROT_ANGLE_PROPERTY
Data property that maps to the
rotation attribute. |
static TLcdDataProperty |
SPEED_PROPERTY
Data property that maps to the
speed attribute. |
static TLcdDataProperty |
STYLE_PROPERTY
Data property that maps to the
style attribute. |
static TLcdDataProperty |
SYMBOL_PROPERTY
Data property that maps to the
symbol attribute. |
static TLcdDataProperty |
TEXT_INFO_PROPERTY
Data property that maps to the
textInfo element. |
static TLcdDataProperty |
TIME_SPAN_PROPERTY
Data property that maps to the
TimeSpan element. |
static TLcdDataProperty |
TIME_STAMP_PROPERTY
Data property that maps to the
TimeStamp element. |
static TLcdDataProperty |
URI_PROPERTY
Data property that maps to the
uri attribute. |
static TLcdDataProperty |
X_PROPERTY
Data property that maps to the
x attribute. |
static TLcdDataProperty |
Y_PROPERTY
Data property that maps to the
y attribute. |
static TLcdDataProperty |
Z_PROPERTY
Data property that maps to the
z attribute. |
Constructor and Description |
---|
TLcdNVG20Point() |
TLcdNVG20Point(TLcdDataType aDataType)
Constructs a new instance of TLcdNVG20Point with the given data type.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
TLcdNVG20Point |
clone()
Returns a deep clone of this object.
|
TLcdNVG20Point |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
ILcd2DEditablePoint |
cloneAs2DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd2DEditablePoint . |
ILcd3DEditablePoint |
cloneAs3DEditablePoint()
Returns a copy of this
ILcdPoint that is also an ILcd3DEditablePoint . |
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double aX,
double aY,
double aZ)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
Object |
getCachedObject(Object aKey)
Looks up and returns the cached Object corresponding to the given key.
|
double |
getCosX()
Returns cos(
getX() * DEG2RAD ). |
double |
getCosY()
Returns cos(
getY() * DEG2RAD ). |
Double |
getCourse()
Returns the value of the property that maps to the
course attribute. |
TLcdNVG20ExtendedData |
getExtendedData()
Returns the value of the property that maps to the
ExtendedData element. |
TLcdNVG20Extension |
getExtension()
Returns the value of the property that maps to the
extension element. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
URI |
getHref()
Returns the value of the property that maps to the
href attribute. |
String |
getLabel()
Returns the value of the property that maps to the
label attribute. |
TLcdNVG20Extension |
getMetadata()
Returns the value of the property that maps to the
metadata element. |
TLcdNVGModifiers |
getModifiers()
Returns the value of the property that maps to the
modifiers attribute. |
double |
getRotAngle()
Returns the value of the property that maps to the
rotation attribute. |
double |
getSinX()
Returns sin(
getX() * DEG2RAD ). |
double |
getSinY()
Returns sin(
getY() * DEG2RAD ). |
Double |
getSpeed()
Returns the value of the property that maps to the
speed attribute. |
TLcdNVGStyle |
getStyle()
Returns the value of the property that maps to the
style attribute. |
TLcdNVGSymbol |
getSymbol()
Returns the value of the property that maps to the
symbol attribute. |
double |
getTanX()
Returns tan(
getX() * DEG2RAD ). |
double |
getTanY()
Returns tan(
getY() * DEG2RAD ). |
String |
getTextInfo()
Returns the value of the property that maps to the
textInfo element. |
TLcdNVG20Content.TimeSpan |
getTimeSpan()
Returns the value of the property that maps to the
TimeSpan element. |
XMLGregorianCalendar |
getTimeStamp()
Returns the value of the property that maps to the
TimeStamp element. |
URI |
getUri()
Returns the value of the property that maps to the
uri attribute. |
double |
getX()
Returns the value of the property that maps to the
x attribute. |
double |
getY()
Returns the value of the property that maps to the
y attribute. |
double |
getZ()
Returns the value of the property that maps to the
z attribute. |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
void |
move2D(double aX,
double aY)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move2D(ILcdPoint aILcdPoint)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void |
setCourse(Double aValue)
Sets the value of the property that maps to the
course attribute. |
void |
setExtendedData(TLcdNVG20ExtendedData aValue)
Sets the value of the property that maps to the
ExtendedData element. |
void |
setExtension(TLcdNVG20Extension aValue)
Sets the value of the property that maps to the
extension element. |
void |
setHref(URI aValue)
Sets the value of the property that maps to the
href attribute. |
void |
setLabel(String aValue)
Sets the value of the property that maps to the
label attribute. |
void |
setMetadata(TLcdNVG20Extension aValue)
Sets the value of the property that maps to the
metadata element. |
void |
setModifiers(TLcdNVGModifiers aValue)
Sets the value of the property that maps to the
modifiers attribute. |
void |
setRotAngle(double aValue)
Sets the value of the property that maps to the
rotation attribute. |
void |
setSpeed(Double aValue)
Sets the value of the property that maps to the
speed attribute. |
void |
setStyle(TLcdNVGStyle aValue)
Sets the value of the property that maps to the
style attribute. |
void |
setSymbol(TLcdNVGSymbol aValue)
Sets the value of the property that maps to the
symbol attribute. |
void |
setTextInfo(String aValue)
Sets the value of the property that maps to the
textInfo element. |
void |
setTimeSpan(TLcdNVG20Content.TimeSpan aValue)
Sets the value of the property that maps to the
TimeSpan element. |
void |
setTimeStamp(XMLGregorianCalendar aValue)
Sets the value of the property that maps to the
TimeStamp element. |
void |
setUri(URI aValue)
Sets the value of the property that maps to the
uri attribute. |
void |
setValue(TLcdDataProperty aProperty,
Object aValue)
Sets the value of the given property for this data object.
|
void |
setX(double aValue)
Sets the value of the property that maps to the
x attribute. |
void |
setY(double aValue)
Sets the value of the property that maps to the
y attribute. |
void |
setZ(double aValue)
Sets the value of the property that maps to the
z attribute. |
void |
translate2D(double aDeltaX,
double aDeltaY)
Translates this
ILcd2DEditableShape from its current position over the given translation
vector in the 2D space. |
getAPP6CodedFromMapObject, getMS2525CodedFromMapObject, setSymbolFromAPP6, setSymbolFromMS2525
getParent, getShapeType, setParent
getDataType, getValue, getValue, hasValue, hasValue, setValue, toString
public static final TLcdDataProperty COURSE_PROPERTY
course
attribute.
The possible values for this property are instances of Double
.public static final TLcdDataProperty ROT_ANGLE_PROPERTY
rotation
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty SPEED_PROPERTY
speed
attribute.
The possible values for this property are instances of Double
.public static final TLcdDataProperty X_PROPERTY
x
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty Y_PROPERTY
y
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty Z_PROPERTY
z
attribute.
The possible values for this property are instances of double
.public static final TLcdDataProperty MODIFIERS_PROPERTY
modifiers
attribute.
The possible values for this property are instances of TLcdNVGModifiers
.public static final TLcdDataProperty SYMBOL_PROPERTY
symbol
attribute.
The possible values for this property are instances of TLcdNVGSymbol
.public static final TLcdDataProperty HREF_PROPERTY
href
attribute.
The possible values for this property are instances of URI
.public static final TLcdDataProperty LABEL_PROPERTY
label
attribute.
The possible values for this property are instances of String
.public static final TLcdDataProperty STYLE_PROPERTY
style
attribute.
The possible values for this property are instances of TLcdNVGStyle
.public static final TLcdDataProperty URI_PROPERTY
uri
attribute.
The possible values for this property are instances of URI
.public static final TLcdDataProperty METADATA_PROPERTY
metadata
element.
The possible values for this property are instances of TLcdNVG20Extension
.public static final TLcdDataProperty EXTENDED_DATA_PROPERTY
ExtendedData
element.
The possible values for this property are instances of TLcdNVG20ExtendedData
.public static final TLcdDataProperty TEXT_INFO_PROPERTY
textInfo
element.
The possible values for this property are instances of String
.public static final TLcdDataProperty TIME_STAMP_PROPERTY
TimeStamp
element.
The possible values for this property are instances of XMLGregorianCalendar
.public static final TLcdDataProperty TIME_SPAN_PROPERTY
TimeSpan
element.
The possible values for this property are instances of TimeSpan
.public static final TLcdDataProperty EXTENSION_PROPERTY
extension
element.
The possible values for this property are instances of TLcdNVG20Extension
.public TLcdNVG20Point()
public TLcdNVG20Point(TLcdDataType aDataType)
aDataType
- The data type of the pointpublic TLcdNVG20Point clone()
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public TLcdNVG20Point clone(Map aObjectDictionary)
TLcdDataObject
ILcdDataObject
, the value is cloned by first creating a new instance via
the value.getDataType().newInstance()
method, and then cloning its properties one by one.ILcdDeepCloneable
or
ILcdCloneable
then this interface is used to clone the value.clone
in interface ILcdDeepCloneable
clone
in class TLcdDataObject
aObjectDictionary
- the Object dictionary that keeps track of the objects for which a clone has already been made,
and their corresponding clone Object.public void insertIntoCache(Object aKey, Object aObject)
insertIntoCache
in interface ILcdCache
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.public Object getCachedObject(Object aKey)
getCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object removeCachedObject(Object aKey)
removeCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void clearCache()
clearCache
in interface ILcdCache
public void move2D(ILcdPoint aILcdPoint)
ILcd2DEditableShape
to 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 the ILcdShape
and the ILcdPoint
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
aILcdPoint
- the ILcdPoint
to move to.ILcd2DEditableShape.move2D(double, double)
public double getCosX()
getX()
* DEG2RAD ).public void move2D(double aX, double aY)
ILcd2DEditableShape
to 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 the ILcdShape
are considered.
The third dimension is left unchanged.move2D
in interface ILcd2DEditableShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public double getCosY()
getY()
* DEG2RAD ).public double getSinX()
getX()
* DEG2RAD ).public void translate2D(double aDeltaX, double aDeltaY)
ILcd2DEditableShape
from its current position over the given translation
vector in the 2D space. Only the first two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.translate2D
in interface ILcd2DEditableShape
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.public double getSinY()
getY()
* DEG2RAD ).public double getTanX()
getX()
* DEG2RAD ).public double getTanY()
getY()
* DEG2RAD ).public ILcd2DEditablePoint cloneAs2DEditablePoint()
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,cloneAs2DEditablePoint
in interface ILcdPoint
ILcdPoint
that is also an ILcd2DEditablePoint
.
This makes sure that the first two dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd2DEditablePoint
public ILcd3DEditablePoint cloneAs3DEditablePoint()
ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,cloneAs3DEditablePoint
in interface ILcdPoint
ILcdPoint
that is also an ILcd3DEditablePoint
.
This makes sure that all three dimensions of the copy are writable,
even if the original ILcdPoint
object may be read-only.ILcd3DEditablePoint
public ILcdPoint getFocusPoint()
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public boolean contains2D(ILcdPoint aILcdPoint)
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double aX, double aY)
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.public boolean contains3D(ILcdPoint aILcdPoint)
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
aX
- the x coordinate of the point.aY
- the y coordinate of the point.aZ
- the z coordinate of the point.public ILcdBounds getBounds()
ILcdBounds
by which the geometry of this ILcdBounded
object
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 undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public void setValue(TLcdDataProperty aProperty, Object aValue)
ILcdDataObject
Sets the value of the given property for this data object. The implementation is allowed to throw an exception if the given value can't be set.
The given property must be declared in thedata object's type
or in one of its super types. In
other words, getDataType().getProperties().contains( aProperty ) should always be true.
Otherwise, the implementation should throw an IllegalArgumentException
.setValue
in interface ILcdDataObject
setValue
in class TLcdDataObject
aProperty
- the property for which the value is to be setaValue
- the value to setTLcdDataType.getProperty(String)
public double getZ()
z
attribute.
Measure of altitude distances are expressed in meters relative (positive or negative) to the datum surface of WGS-84
getZ
in interface ILcdPoint
Z_PROPERTY
property.public void setX(double aValue)
x
attribute.
Longitude in decimal degrees (WGS84)
aValue
- the value to set for the X_PROPERTY
property.public void setY(double aValue)
y
attribute.
Latitude in decimal degrees (WGS84)
aValue
- the value to set for the Y_PROPERTY
property.public void setZ(double aValue)
z
attribute.
Measure of altitude distances are expressed in meters relative (positive or negative) to the datum surface of WGS-84
aValue
- the value to set for the Z_PROPERTY
property.public Double getCourse()
course
attribute.
Course in degrees (0 = north)
COURSE_PROPERTY
property.public void setCourse(Double aValue)
course
attribute.
Course in degrees (0 = north)
aValue
- the value to set for the COURSE_PROPERTY
property.public double getRotAngle()
rotation
attribute.
Rotation of the symbol in degrees. The default value is 0.0 degrees rotation
ROT_ANGLE_PROPERTY
property.public void setRotAngle(double aValue)
rotation
attribute.
Rotation of the symbol in degrees. The default value is 0.0 degrees rotation
aValue
- the value to set for the ROT_ANGLE_PROPERTY
property.public Double getSpeed()
speed
attribute.
Speed in kilometers per hour (>= 0)
SPEED_PROPERTY
property.public void setSpeed(Double aValue)
speed
attribute.
Speed in kilometers per hour (>= 0)
aValue
- the value to set for the SPEED_PROPERTY
property.public double getX()
x
attribute.
Longitude in decimal degrees (WGS84)
X_PROPERTY
property.public double getY()
y
attribute.
Latitude in decimal degrees (WGS84)
Y_PROPERTY
property.public TLcdNVGModifiers getModifiers()
modifiers
attribute.
The modifiers attribute is used to associate additional information with the the symbol attribute
MODIFIERS_PROPERTY
property.public void setModifiers(TLcdNVGModifiers aValue)
modifiers
attribute.
The modifiers attribute is used to associate additional information with the the symbol attribute
aValue
- the value to set for the MODIFIERS_PROPERTY
property.public TLcdNVGSymbol getSymbol()
symbol
attribute.
Symbology attribute that binds the content to a specific symbol scheme and code. Format:
SYMBOL_PROPERTY
property.public void setSymbol(TLcdNVGSymbol aValue)
symbol
attribute.
Symbology attribute that binds the content to a specific symbol scheme and code. Format:
aValue
- the value to set for the SYMBOL_PROPERTY
property.public URI getHref()
href
attribute.
A URL to human readable content providing more information about the ContentType. Typically the NVG document will contain just a small amount of metadata required to render the content. The URL allows the user to drill-down (click through) to the full content.
HREF_PROPERTY
property.public void setHref(URI aValue)
href
attribute.
A URL to human readable content providing more information about the ContentType. Typically the NVG document will contain just a small amount of metadata required to render the content. The URL allows the user to drill-down (click through) to the full content.
aValue
- the value to set for the HREF_PROPERTY
property.public String getLabel()
label
attribute.
A short text label describing the content. Long text should be placed in the text element.
LABEL_PROPERTY
property.public void setLabel(String aValue)
label
attribute.
A short text label describing the content. Long text should be placed in the text element.
aValue
- the value to set for the LABEL_PROPERTY
property.public TLcdNVGStyle getStyle()
style
attribute.
A text string (inline CSS string) that defines how objects should be rendered graphically.
STYLE_PROPERTY
property.public void setStyle(TLcdNVGStyle aValue)
style
attribute.
A text string (inline CSS string) that defines how objects should be rendered graphically.
aValue
- the value to set for the STYLE_PROPERTY
property.public URI getUri()
uri
attribute.
The unique identifier for the content. The URI is immutable and shall remain constant across documents produced by the same source. Furthermore, the URI shall remain constant as the document is transferred through a mediation service/process.
URI_PROPERTY
property.public void setUri(URI aValue)
uri
attribute.
The unique identifier for the content. The URI is immutable and shall remain constant across documents produced by the same source. Furthermore, the URI shall remain constant as the document is transferred through a mediation service/process.
aValue
- the value to set for the URI_PROPERTY
property.public TLcdNVG20Extension getMetadata()
metadata
element.
named container for NDMS / Dublin Core defined metadata
METADATA_PROPERTY
property.public void setMetadata(TLcdNVG20Extension aValue)
metadata
element.
named container for NDMS / Dublin Core defined metadata
aValue
- the value to set for the METADATA_PROPERTY
property.public TLcdNVG20ExtendedData getExtendedData()
ExtendedData
element.EXTENDED_DATA_PROPERTY
property.public void setExtendedData(TLcdNVG20ExtendedData aValue)
ExtendedData
element.aValue
- the value to set for the EXTENDED_DATA_PROPERTY
property.public String getTextInfo()
textInfo
element.
Additional human readable text in addition to @label. Long text content should be placed here.
TEXT_INFO_PROPERTY
property.public void setTextInfo(String aValue)
textInfo
element.
Additional human readable text in addition to @label. Long text content should be placed here.
aValue
- the value to set for the TEXT_INFO_PROPERTY
property.public XMLGregorianCalendar getTimeStamp()
TimeStamp
element.
comparable point in time (DTG) to represent the last state change of this element
TIME_STAMP_PROPERTY
property.public void setTimeStamp(XMLGregorianCalendar aValue)
TimeStamp
element.
comparable point in time (DTG) to represent the last state change of this element
aValue
- the value to set for the TIME_STAMP_PROPERTY
property.public TLcdNVG20Content.TimeSpan getTimeSpan()
TimeSpan
element.
Define a show/hide period (based on strict DTG) for the shape as defined by KML on https://developers.google.com/kml/documentation/kmlreference#timespan
TIME_SPAN_PROPERTY
property.public void setTimeSpan(TLcdNVG20Content.TimeSpan aValue)
TimeSpan
element.
Define a show/hide period (based on strict DTG) for the shape as defined by KML on https://developers.google.com/kml/documentation/kmlreference#timespan
aValue
- the value to set for the TIME_SPAN_PROPERTY
property.public TLcdNVG20Extension getExtension()
extension
element.
Extension point for structured community of interest specific content.
EXTENSION_PROPERTY
property.public void setExtension(TLcdNVG20Extension aValue)
extension
element.
Extension point for structured community of interest specific content.
aValue
- the value to set for the EXTENSION_PROPERTY
property.