public class TLcdCollectedLabeledObjectInfo extends Object
ILcdLayer
and an Object
.
It also contains properties that can be used to store custom information.Modifier and Type | Field and Description |
---|---|
static String |
LAYER_INDEX_KEY
This key is used to store a layer index.
|
static String |
OBJECT_ANCHOR_POINT_KEY
This key is used to store the anchor point of an object.
|
static String |
OBJECT_SELECTED_KEY
This key is used to store if an object is selected.
|
Constructor and Description |
---|
TLcdCollectedLabeledObjectInfo(Object aDomainObject,
ILcdLayer aLayer)
Creates a new
TLcdCollectedLabeledObjectInfo for the given object and layer. |
Modifier and Type | Method and Description |
---|---|
Object |
getDomainObject()
Returns the labeled object.
|
ILcdLayer |
getLayer()
Returns the layer which contains the labeled object.
|
Integer |
getLayerIndex()
Returns the layer index set in this labeled object.
|
Point |
getObjectAnchorPoint()
Returns the anchor point of this labeled object.
|
Map<String,Object> |
getProperties()
Returns a map that can be used to store and retrieve info properties using a String key.
|
Boolean |
isObjectSelected()
Returns if this labeled object is selected.
|
void |
setLayer(ILcdLayer aLayer)
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.
|
public static final String OBJECT_SELECTED_KEY
Boolean
.public static final String OBJECT_ANCHOR_POINT_KEY
Point
.public static final String LAYER_INDEX_KEY
Object
is an Integer
.public Map<String,Object> getProperties()
public Object getDomainObject()
public ILcdLayer getLayer()
public void setLayer(ILcdLayer aLayer)
aLayer
- a layer.public Boolean isObjectSelected()
This method is a convenience method. It uses getProperties()
internally with
OBJECT_SELECTED_KEY
as key.
public void setObjectSelected(Boolean aSelected)
This method is a convenience method. It uses getProperties()
internally with
OBJECT_SELECTED_KEY
as key.
aSelected
- the selected status of the object set in this labeled object.public Point getObjectAnchorPoint()
This method is a convenience method. It uses getProperties()
internally with
OBJECT_ANCHOR_POINT_KEY
as key.
null
if it does not exist.public void setObjectAnchorPoint(Point aAnchorPoint)
This method is a convenience method. It uses getProperties()
internally with
OBJECT_ANCHOR_POINT_KEY
as key.
aAnchorPoint
- the anchor point of this labeled object.public Integer getLayerIndex()
This method is a convenience method. It uses getProperties()
internally with
LAYER_INDEX_KEY
as key.
null
if it does not exist.public void setLayerIndex(Integer aLayerIndex)
This method is a convenience method. It uses getProperties()
internally with
LAYER_INDEX_KEY
as key.
aLayerIndex
- a layer index.