Class TLcdCollectedLabeledObjectInfo
java.lang.Object
com.luciad.view.labeling.algorithm.TLcdCollectedLabeledObjectInfo
This class contains all information about a labeled object for which labels can be placed.
A labeled object can be identified by an
ILcdLayer
and an Object
.
It also contains properties that can be used to store custom information.- Since:
- 10.1
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTLcdCollectedLabeledObjectInfo
(Object aDomainObject, ILcdLayer aLayer) Creates a newTLcdCollectedLabeledObjectInfo
for the given object and layer. -
Method Summary
Modifier and TypeMethodDescriptionReturns the labeled object.getLayer()
Returns the layer which contains the labeled object.Returns the layer index set in this labeled object.Returns the anchor point of this labeled object.Returns a map that can be used to store and retrieve info properties using a String key.Returns if this labeled object is selected.void
Sets the layer to the given layer.void
setLayerIndex
(Integer aLayerIndex) Sets a layer index in this labeled object.void
setObjectAnchorPoint
(Point aAnchorPoint) Sets the anchor point of this labeled object.void
setObjectSelected
(Boolean aSelected) Sets if this labeled object is selected or not.
-
Field Details
-
OBJECT_SELECTED_KEY
This key is used to store if an object is selected. The returned Object is aBoolean
.- See Also:
-
OBJECT_ANCHOR_POINT_KEY
This key is used to store the anchor point of an object. The returned Object is aPoint
.- See Also:
-
LAYER_INDEX_KEY
This key is used to store a layer index. This index can for example be used to give priorities to layer, or to sort labels. The returnedObject
is anInteger
.- See Also:
-
-
Constructor Details
-
TLcdCollectedLabeledObjectInfo
Creates a newTLcdCollectedLabeledObjectInfo
for the given object and layer.- Parameters:
aDomainObject
- the object to be labeled.aLayer
- the layer which contains the labeled object.
-
-
Method Details
-
getProperties
Returns a map that can be used to store and retrieve info properties using a String key.- Returns:
- a map that can be used to store and retrieve info properties using a String key.
-
getDomainObject
Returns the labeled object.- Returns:
- the labeled object.
-
getLayer
Returns the layer which contains the labeled object.- Returns:
- the layer which contains the labeled object.
-
setLayer
Sets the layer to the given layer.- Parameters:
aLayer
- a layer.
-
isObjectSelected
Returns if this labeled object is selected.This method is a convenience method. It uses
getProperties()
internally withOBJECT_SELECTED_KEY
as key.- Returns:
- the selected status of the object set in this labeled info object.
-
setObjectSelected
Sets if this labeled object is selected or not.This method is a convenience method. It uses
getProperties()
internally withOBJECT_SELECTED_KEY
as key.- Parameters:
aSelected
- the selected status of the object set in this labeled object.
-
getObjectAnchorPoint
Returns the anchor point of this labeled object.This method is a convenience method. It uses
getProperties()
internally withOBJECT_ANCHOR_POINT_KEY
as key.- Returns:
- the anchor point of the object set in this labeled info object, or
null
if it does not exist.
-
setObjectAnchorPoint
Sets the anchor point of this labeled object.This method is a convenience method. It uses
getProperties()
internally withOBJECT_ANCHOR_POINT_KEY
as key.- Parameters:
aAnchorPoint
- the anchor point of this labeled object.
-
getLayerIndex
Returns the layer index set in this labeled object.This method is a convenience method. It uses
getProperties()
internally withLAYER_INDEX_KEY
as key.- Returns:
- the layer index set in this labeled info object, or
null
if it does not exist.
-
setLayerIndex
Sets a layer index in this labeled object.This method is a convenience method. It uses
getProperties()
internally withLAYER_INDEX_KEY
as key.- Parameters:
aLayerIndex
- a layer index.
-