Class ILspLabelingAlgorithm.LabelContext
java.lang.Object
com.luciad.view.lightspeed.label.algorithm.ILspLabelingAlgorithm.LabelContext
- Enclosing interface:
ILspLabelingAlgorithm
This object as passed to
placeLabels
and can
be used to retrieve and store 'context' information.- Since:
- 2012.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract TLspContext
getContext
(ILspLayer aLayer, ILspView aView) Returns a context for the given label.getElevationMode
(TLspLabelID aLabel, ILspView aView) Returns the elevation mode of the anchor object of the given label.abstract TLspPaintState
getPaintState
(TLspLabelID aLabel, ILspView aView) Returns the paint state to be used for the given label.abstract ALspLabelLocations.LocationInfo
getPreviousLocation
(TLspLabelID aLabel, ILspView aView) Returns the previous label location and visibility of the given label.abstract int
getPriority
(TLspLabelID aLabel, ILspView aView) This method returns the priority for the given label.Returns a custom properties mapping.getProperties
(TLspLabelID aLabel) Returns a custom properties mapping for the given label.
-
Constructor Details
-
LabelContext
public LabelContext()
-
-
Method Details
-
getContext
Returns a context for the given label.- Parameters:
aLayer
- a layer.aView
- the view.- Returns:
- a context for the given label.
-
getPriority
This method returns the priority for the given label.- Parameters:
aLabel
- a label.aView
- the view.- Returns:
- the priority for the given label
- See Also:
-
getPreviousLocation
public abstract ALspLabelLocations.LocationInfo getPreviousLocation(TLspLabelID aLabel, ILspView aView) Returns the previous label location and visibility of the given label.- Parameters:
aLabel
- an identifier for a label.aView
- the view.- Returns:
- the previous label location and visibility.
- See Also:
-
getPaintState
Returns the paint state to be used for the given label.- Parameters:
aLabel
- an identifier for a label.aView
- the view.- Returns:
- the paint state to be used.
-
getElevationMode
Returns the elevation mode of the anchor object of the given label.- Parameters:
aLabel
- an identifier for a label.aView
- the view.- Returns:
- the elevation mode of the anchor object of the given label.
-
getProperties
Returns a custom properties mapping.- Returns:
- a custom properties mapping.
-
getProperties
Returns a custom properties mapping for the given label.- Parameters:
aLabel
- an identifier for a label.- Returns:
- a custom properties mapping.
-