Class TLcdAPP6AGXYLabelPainterProvider
java.lang.Object
com.luciad.symbology.app6a.view.gxy.painter.TLcdAPP6AGXYLabelPainterProvider
- All Implemented Interfaces:
ILcdGXYLabelPainterProvider
,Serializable
,Cloneable
The label painter provider for a layer containing
ILcdAPP6AShape
objects.
To find a label painter for a given object, the label painter provider will search a properties
file based on the object's signature. If none can be found it will return a
default ILcdGXYLabelPainter
.
If the object set on this painter is an instance of ILcdStyledMilitarySymbol
,
the TLcdMilitarySymbolStyle
returned by ILcdStyledMilitarySymbol.getMilitarySymbolStyle()
will be used to place the labels and to determine what the labels should look like. Otherwise, a default style
will be used which can be customized using the method setDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle)
.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdAPP6AGXYLabelPainterProvider
object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Clones this object using the default constructor.Returns the defaultTLcdMilitarySymbolStyle
that is used for objects which don't implementILcdStyledMilitarySymbol
.Deprecated.getGXYLabelPainter
(Object aObject) Finds a label painter for the object passed.void
setDefaultMilitarySymbolStyle
(TLcdMilitarySymbolStyle aDefaultStyle) Sets a defaultTLcdMilitarySymbolStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.void
setDefaultStyle
(ILcdAPP6AStyle aDefaultAPP6AStyle) Deprecated.
-
Constructor Details
-
TLcdAPP6AGXYLabelPainterProvider
public TLcdAPP6AGXYLabelPainterProvider()Creates a newTLcdAPP6AGXYLabelPainterProvider
object.
-
-
Method Details
-
getGXYLabelPainter
Finds a label painter for the object passed. This is done by getting the objects line property (sign of the object+LINE_PROPERTY_LABEL_PAINTER).- Specified by:
getGXYLabelPainter
in interfaceILcdGXYLabelPainterProvider
- Parameters:
aObject
- An object representing an APP-6A symbol. This means that it should at least implement the interfaceILcdAPP6AShape
.- Returns:
- a label painter for aObject.
- Throws:
IllegalArgumentException
- if aObject doesn't implementILcdAPP6AShape
or doesn't represent a valid APP-6A code.
-
clone
Clones this object using the default constructor.- Specified by:
clone
in interfaceILcdGXYLabelPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a cloned instance
-
setDefaultStyle
Deprecated.Sets a defaultILcdAPP6AStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.- Parameters:
aDefaultAPP6AStyle
- AILcdAPP6AStyle
instance.
-
getDefaultStyle
Deprecated.usegetDefaultMilitarySymbolStyle()
instead.Returns the defaultILcdAPP6AStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.- Returns:
- the default
ILcdAPP6AStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.
-
setDefaultMilitarySymbolStyle
Sets a defaultTLcdMilitarySymbolStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.- Parameters:
aDefaultStyle
- ATLcdMilitarySymbolStyle
instance. Nevernull
.- Throws:
NullPointerException
- If the givenTLcdMilitarySymbolStyle
isnull
.- Since:
- 2024.0
-
getDefaultMilitarySymbolStyle
Returns the defaultTLcdMilitarySymbolStyle
that is used for objects which don't implementILcdStyledMilitarySymbol
.- Returns:
- the default
TLcdMilitarySymbolStyle
that is used for objects which don't implementILcdStyledMilitarySymbol
. - Since:
- 2024.0
-
getDefaultMilitarySymbolStyle()
instead.