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
ConstructorsConstructorDescriptionCreates a newTLcdAPP6AGXYLabelPainterProviderobject. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clones this object using the default constructor.Returns the defaultTLcdMilitarySymbolStylethat is used for objects which don't implementILcdStyledMilitarySymbol.Deprecated.getGXYLabelPainter(Object aObject) Finds a label painter for the object passed.voidsetDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle aDefaultStyle) Sets a defaultTLcdMilitarySymbolStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.voidsetDefaultStyle(ILcdAPP6AStyle aDefaultAPP6AStyle) Deprecated.
-
Constructor Details
-
TLcdAPP6AGXYLabelPainterProvider
public TLcdAPP6AGXYLabelPainterProvider()Creates a newTLcdAPP6AGXYLabelPainterProviderobject.
-
-
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:
getGXYLabelPainterin 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 implementILcdAPP6AShapeor doesn't represent a valid APP-6A code.
-
clone
Clones this object using the default constructor.- Specified by:
clonein interfaceILcdGXYLabelPainterProvider- Overrides:
clonein classObject- Returns:
- a cloned instance
-
setDefaultStyle
Deprecated.Sets a defaultILcdAPP6AStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.- Parameters:
aDefaultAPP6AStyle- AILcdAPP6AStyleinstance.
-
getDefaultStyle
Deprecated.usegetDefaultMilitarySymbolStyle()instead.Returns the defaultILcdAPP6AStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.- Returns:
- the default
ILcdAPP6AStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.
-
setDefaultMilitarySymbolStyle
Sets a defaultTLcdMilitarySymbolStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.- Parameters:
aDefaultStyle- ATLcdMilitarySymbolStyleinstance. Nevernull.- Throws:
NullPointerException- If the givenTLcdMilitarySymbolStyleisnull.- Since:
- 2024.0
-
getDefaultMilitarySymbolStyle
Returns the defaultTLcdMilitarySymbolStylethat is used for objects which don't implementILcdStyledMilitarySymbol.- Returns:
- the default
TLcdMilitarySymbolStylethat is used for objects which don't implementILcdStyledMilitarySymbol. - Since:
- 2024.0
-
getDefaultMilitarySymbolStyle()instead.