public class TLcdNVG20MultiPoint extends TLcdNVG20SymbolizedContent implements ILcd2DEditablePolypoint, ILcdCache, ILcdInvalidateable
ILcd2DEditablePolypoint
that represents an NVG 2.0 MultiPoint.TLcdNVG20Content.ShapeType, TLcdNVG20Content.TimeSpan
Modifier and Type | Field and Description |
---|---|
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 |
POINTS_PROPERTY
Data property that maps to the
points 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. |
Constructor and Description |
---|
TLcdNVG20MultiPoint() |
TLcdNVG20MultiPoint(TLcdDataType aDataType)
Constructs a new instance of TLcdNVG20MultiPoint with the given data type.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the cache.
|
TLcdDataObject |
clone()
Returns a deep clone of this object.
|
TLcdDataObject |
clone(Map aObjectDictionary)
Returns a deep clone of this object.
|
boolean |
contains2D(double aX,
double aY)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aPoint)
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 aPoint)
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.
|
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. |
ILcdPoint |
getPoint(int aIndex)
Returns the
ILcdPoint at a given index. |
int |
getPointCount()
Returns the number of
ILcdPoint objects in the list. |
ILcd2DEditablePointList |
getPoints()
Returns the value of the property that maps to the
points 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. |
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. |
void |
insert2DPoint(int aIndex,
double aX,
double aY)
Inserts a point at the given index into this
ILcd2DEditablePointList . |
void |
insertIntoCache(Object aKey,
Object aObject)
Inserts a cache Object corresponding to the given key Object.
|
void |
invalidateObject()
Invalidates all cached values of this object.
|
void |
move2D(double aX,
double aY)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move2D(ILcdPoint aPoint)
Moves this
ILcd2DEditableShape to the given point in the 2D space. |
void |
move2DPoint(int aIndex,
double aX,
double aY)
Moves the specified point of this
ILcd2DEditablePointList to the given point in the 2D space. |
void |
move3D(double aX,
double aY,
double aZ) |
void |
move3D(ILcdPoint aPoint) |
void |
move3DPoint(int aIndex,
double aX,
double aY,
double aZ) |
Object |
removeCachedObject(Object aKey)
Looks up and removes the cached Object corresponding to the given key.
|
void |
removePointAt(int aIndex)
Removes the point at the given index from this
ILcd2DEditablePointList . |
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 |
setPoints(ILcd2DEditablePointList aValue)
Sets the value of the property that maps to the
points 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 |
translate2D(double aDeltaX,
double aDeltaY)
Translates this
ILcd2DEditableShape from its current position over the given translation
vector in the 2D space. |
void |
translate2DPoint(int aIndex,
double aDeltaX,
double aDeltaY)
Translates the specified point of this
ILcd2DEditablePointList from its current position
over the given translation vector in the 2D space. |
void |
translate3D(double aDeltaX,
double aDeltaY,
double aDeltaZ) |
void |
translate3DPoint(int aIndex,
double aDeltaX,
double aDeltaY,
double aDeltaZ) |
getAPP6CodedFromMapObject, getMS2525CodedFromMapObject, setSymbolFromAPP6, setSymbolFromMS2525
getParent, getShapeType, setParent
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
append2DPoint
getPointSFCT, getX, getY, getZ
public static final TLcdDataProperty POINTS_PROPERTY
points
attribute.
The possible values for this property are instances of ILcd2DEditablePointList
.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 TLcdNVG20MultiPoint()
public TLcdNVG20MultiPoint(TLcdDataType aDataType)
aDataType
- the data type of the multipointpublic void invalidateObject()
ILcdInvalidateable
invalidateObject
in interface ILcdInvalidateable
public void setPoints(ILcd2DEditablePointList aValue)
points
attribute.
Reference points
aValue
- the value to set for the POINTS_PROPERTY
property.public boolean contains3D(ILcdPoint aPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains2D(ILcdPoint aPoint)
ILcdShape
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
aPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains3D(double aX, double aY, double aZ)
ILcdShape
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 void move2D(ILcdPoint aPoint)
ILcd2DEditableShape
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
aPoint
- the ILcdPoint
to move to.ILcd2DEditableShape.move2D(double, double)
public void move3D(double aX, double aY, double aZ)
public void move3D(ILcdPoint aPoint)
public void clearCache()
ILcdCache
clearCache
in interface ILcdCache
public Object removeCachedObject(Object aKey)
ILcdCache
removeCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public Object getCachedObject(Object aKey)
ILcdCache
getCachedObject
in interface ILcdCache
aKey
- the key Object that was used for storing the cache Object.public void insertIntoCache(Object aKey, Object aObject)
ILcdCache
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 ILcdBounds getBounds()
ILcdBounded
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 boolean contains2D(double aX, double aY)
ILcdShape
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 ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public void move2D(double aX, double aY)
ILcd2DEditableShape
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 void translate2D(double aDeltaX, double aDeltaY)
ILcd2DEditableShape
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 ILcd2DEditablePointList
translate2D
in interface ILcd2DEditableShape
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.public void translate3D(double aDeltaX, double aDeltaY, double aDeltaZ)
public void translate2DPoint(int aIndex, double aDeltaX, double aDeltaY)
ILcd2DEditablePointList
ILcd2DEditablePointList
from its current position
over the given translation vector in the 2D space. Only the first two
dimensions of the points are considered. The third dimension is left unchanged.translate2DPoint
in interface ILcd2DEditablePointList
aDeltaX
- the x coordinate of the translation vector.aDeltaY
- the y coordinate of the translation vector.public void move2DPoint(int aIndex, double aX, double aY)
ILcd2DEditablePointList
ILcd2DEditablePointList
to the given point in the 2D space. Only the first
two dimensions of the ILcdShape
are considered.
The third dimension is left unchanged.move2DPoint
in interface ILcd2DEditablePointList
aIndex
- a valid index in the list of points.aX
- the x coordinate of the point.aY
- the y coordinate of the point.public void translate3DPoint(int aIndex, double aDeltaX, double aDeltaY, double aDeltaZ)
public void move3DPoint(int aIndex, double aX, double aY, double aZ)
public void insert2DPoint(int aIndex, double aX, double aY)
ILcd2DEditablePointList
ILcd2DEditablePointList
.insert2DPoint
in interface ILcd2DEditablePointList
aIndex
- a valid new index in the list of points.aX
- the x coordinate of the new point.aY
- the y coordinate of the new point.public void removePointAt(int aIndex)
ILcd2DEditablePointList
ILcd2DEditablePointList
.removePointAt
in interface ILcd2DEditablePointList
aIndex
- a valid index in the list of ILcdPoint
objects.public int getPointCount()
ILcdPointList
ILcdPoint
objects in the list.getPointCount
in interface ILcdPointList
ILcdPoint
objects in the list.public ILcdPoint getPoint(int aIndex) throws IndexOutOfBoundsException
ILcdPointList
ILcdPoint
at a given index.getPoint
in interface ILcdPointList
aIndex
- a valid index in the list of ILcdPoint
objects.ILcdPoint
at the given index.IndexOutOfBoundsException
- if the given index is out of bounds.public TLcdDataObject 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 TLcdDataObject clone()
TLcdDataObject
TLcdDataObject.clone(Map)
.clone
in interface ILcdCloneable
clone
in class TLcdDataObject
Object.clone()
public ILcd2DEditablePointList getPoints()
points
attribute.
Reference points
POINTS_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.