Class ALspLabelLocation
java.lang.Object
com.luciad.view.lightspeed.label.location.ALspLabelLocation
- All Implemented Interfaces:
ILcdCloneable
,Cloneable
- Direct Known Subclasses:
ALspStampLabelLocation
,TLspPathLabelLocation
Instances of this class contain the location information about a specific label.
It is used as the data transfer object between ALspLabelLocations
and the various
parties that need to know the location of a label.
This class can be sub-classed if you want to add properties about the location of a label.
Note: When creating an extension of this class, also overwrite the copyFrom
and clone
method to make sure your extra properties are copied.
- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
MakesObject.clone()
public.void
copyFrom
(ALspLabelLocation aLabelLocation) Copies the location settings from the given label location.boolean
int
hashCode()
boolean
Checks if this location was created or edited by an editor.boolean
Returns if this location was created or edited by a label placer.boolean
isSticky()
Returns if this label is sticky.void
setEditedByEditor
(boolean aEdited) Marks this location as edited by an editor.void
setEditedByPlacer
(boolean aEdited) Marks this location as edited by a placer.void
setSticky
(boolean aSticky) Sets if this location is sticky.toString()
-
Constructor Details
-
ALspLabelLocation
public ALspLabelLocation()
-
-
Method Details
-
isEditedByEditor
public boolean isEditedByEditor()Checks if this location was created or edited by an editor.- Returns:
- if this location was created or edited by an editor.
- See Also:
-
setEditedByEditor
public void setEditedByEditor(boolean aEdited) Marks this location as edited by an editor.- Parameters:
aEdited
-true
to mark this location as edited by an editor.- See Also:
-
isEditedByPlacer
public boolean isEditedByPlacer()Returns if this location was created or edited by a label placer.- Returns:
- if this location was created or edited by a label placer.
- See Also:
-
setEditedByPlacer
public void setEditedByPlacer(boolean aEdited) Marks this location as edited by a placer.- Parameters:
aEdited
-true
to mark this location as edited by a placer.- See Also:
-
isSticky
public boolean isSticky()Returns if this label is sticky. If a label editor or label placer sets a label location to sticky, it means that no other label placer or editor should modify the label.- Returns:
- if this label is sticky.
- See Also:
-
setSticky
public void setSticky(boolean aSticky) Sets if this location is sticky.- Parameters:
aSticky
-true
to make this location sticky.- See Also:
-
copyFrom
Copies the location settings from the given label location.
When creating an extension of this class, also overwrite this method to make sure your extra properties are copied.
- Parameters:
aLabelLocation
- the label location to copy properties from.
-
clone
Description copied from interface:ILcdCloneable
Makes
When for example extending fromObject.clone()
public.java.lang.Object
, it can be implemented like this:public Object clone() { try { return super.clone(); } catch ( CloneNotSupportedException e ) { // Cannot happen: extends from Object and implements Cloneable (see also Object.clone) throw new RuntimeException( e ); } }
- Specified by:
clone
in interfaceILcdCloneable
- Overrides:
clone
in classObject
- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-