Class TLcdMS2525bGXYLabelPainterProvider
java.lang.Object
com.luciad.symbology.milstd2525b.view.gxy.painter.TLcdMS2525bGXYLabelPainterProvider
- All Implemented Interfaces:
ILcdGXYLabelPainterProvider,Serializable,Cloneable
public class TLcdMS2525bGXYLabelPainterProvider
extends Object
implements ILcdGXYLabelPainterProvider
The label painter provider for a layer containing
ILcdMS2525bShape 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 newTLcdMS2525bGXYLabelPainterProviderobject. -
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(ILcdMS2525bStyle aDefaultMS2525bStyle) Deprecated.
-
Constructor Details
-
TLcdMS2525bGXYLabelPainterProvider
public TLcdMS2525bGXYLabelPainterProvider()Creates a newTLcdMS2525bGXYLabelPainterProviderobject.
-
-
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 a MIL-STD 2525b symbol. This means that it should at least implement the interfaceILcdMS2525bShape.- Returns:
- a label painter for aObject.
- Throws:
IllegalArgumentException- if aObject doesn't implementILcdMS2525bShapeor doesn't represent a valid MIL-STD 2525b code.
-
clone
Clones this object using the default constructor.- Specified by:
clonein interfaceILcdGXYLabelPainterProvider- Overrides:
clonein classObject- Returns:
- a cloned instance
-
setDefaultStyle
Deprecated.Sets a defaultILcdMS2525bStyleinstance that is used for objects which don't implementILcdMS2525bStyle.- Parameters:
aDefaultMS2525bStyle- AILcdMS2525bStyleinstance.
-
getDefaultStyle
Deprecated.usegetDefaultMilitarySymbolStyle()instead.Returns the defaultILcdMS2525bStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.- Returns:
- the default
ILcdMS2525bStyleinstance 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.