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
ConstructorDescriptionCreates a newTLcdMS2525bGXYLabelPainterProvider
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
(ILcdMS2525bStyle aDefaultMS2525bStyle) Deprecated.
-
Constructor Details
-
TLcdMS2525bGXYLabelPainterProvider
public TLcdMS2525bGXYLabelPainterProvider()Creates a newTLcdMS2525bGXYLabelPainterProvider
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 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 implementILcdMS2525bShape
or doesn't represent a valid MIL-STD 2525b 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 defaultILcdMS2525bStyle
instance that is used for objects which don't implementILcdMS2525bStyle
.- Parameters:
aDefaultMS2525bStyle
- AILcdMS2525bStyle
instance.
-
getDefaultStyle
Deprecated.usegetDefaultMilitarySymbolStyle()
instead.Returns the defaultILcdMS2525bStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.- Returns:
- the default
ILcdMS2525bStyle
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.