public abstract static class ILspLabelingAlgorithm.LabelContext extends Object
placeLabels
and can
be used to retrieve and store 'context' information.Constructor and Description |
---|
LabelContext() |
Modifier and Type | Method and Description |
---|---|
abstract TLspContext |
getContext(ILspLayer aLayer,
ILspView aView)
Returns a context for the given label.
|
ILspWorldElevationStyle.ElevationMode |
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.
|
abstract Map<String,Object> |
getProperties()
Returns a custom properties mapping.
|
abstract Map<String,Object> |
getProperties(TLspLabelID aLabel)
Returns a custom properties mapping for the given label.
|
public abstract TLspContext getContext(ILspLayer aLayer, ILspView aView)
aLayer
- a layer.aView
- the view.public abstract int getPriority(TLspLabelID aLabel, ILspView aView)
aLabel
- a label.aView
- the view.ILspLabelPriorityProvider.getPriority
public abstract ALspLabelLocations.LocationInfo getPreviousLocation(TLspLabelID aLabel, ILspView aView)
aLabel
- an identifier for a label.aView
- the view.ALspLabelLocations.getLabelLocation(com.luciad.view.lightspeed.ILspView, com.luciad.view.lightspeed.painter.label.TLspLabelID)
public abstract TLspPaintState getPaintState(TLspLabelID aLabel, ILspView aView)
aLabel
- an identifier for a label.aView
- the view.public ILspWorldElevationStyle.ElevationMode getElevationMode(TLspLabelID aLabel, ILspView aView)
aLabel
- an identifier for a label.aView
- the view.public abstract Map<String,Object> getProperties()
public abstract Map<String,Object> getProperties(TLspLabelID aLabel)
aLabel
- an identifier for a label.