Class TLcdMS2525bGXYPainterProvider
java.lang.Object
com.luciad.symbology.milstd2525b.view.gxy.painter.TLcdMS2525bGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYPainterProvider
,Serializable
,Cloneable
A painter provider for a layer containing
ILcdMS2525bStyled
objects.
The painter provider looks for a painter based on the object's signature.
If the object set on this painter is an instance of ILcdStyledMilitarySymbol
,
TLcdMilitarySymbolStyle
returned by ILcdStyledMilitarySymbol.getMilitarySymbolStyle()
will be used to determine the actual display of the object on the map. Otherwise, a default style will be used which
can be customized using the method setDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle)
.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
RedefinesObject.clone
to make it public.Returns the defaultTLcdMilitarySymbolStyle
that is used for objects which don't implementILcdStyledMilitarySymbol
.Deprecated.getGXYPainter
(Object aObject) Returns a validILcdGXYPainter
for painting aObject.Returns the icon provider that is used.int
Deprecated.Replaced by the more general methodgetDefaultStyle()
.boolean
Deprecated.Replaced by the more general methodgetDefaultStyle()
.void
setDefaultMilitarySymbolStyle
(TLcdMilitarySymbolStyle aDefaultStyle) Sets a defaultTLcdMilitarySymbolStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.void
setDefaultStyle
(ILcdMS2525bStyle aDefaultMS2525bStyle) Deprecated.void
setIconProvider
(ILcdObjectIconProvider aObjectIconProvider) Sets the icon provider to be used.void
setIconSize
(int aSize) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle)
.void
setOutlined
(boolean aIsOutlined) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle)
.
-
Constructor Details
-
TLcdMS2525bGXYPainterProvider
public TLcdMS2525bGXYPainterProvider()
-
-
Method Details
-
getGXYPainter
Returns a validILcdGXYPainter
for painting aObject.- Specified by:
getGXYPainter
in interfaceILcdGXYPainterProvider
- Parameters:
aObject
- An object representing a MIL-STD 2525b symbol. This means that it should at least implement the interfaceILcdMS2525bShape
.- Returns:
- a valid
ILcdGXYPainter
for painting the given object. - Throws:
IllegalArgumentException
- if the given object doesn't implementILcdMS2525bShape
or doesn't represent a valid MIL-STD 2525b code.
-
clone
Description copied from interface:ILcdGXYPainterProvider
RedefinesObject.clone
to make it public.- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of this painter provider.
- See Also:
-
setIconProvider
Sets the icon provider to be used. By default, an instance ofTLcdMS2525bObjectIconProvider
is used. A custom icon provider should use the default style associated with this painter provider (see methodgetDefaultStyle()
).- Parameters:
aObjectIconProvider
- An implementation ofILcdObjectIconProvider
.
-
getIconProvider
Returns the icon provider that is used. By default, this is an instance of the classTLcdMS2525bObjectIconProvider
.- Returns:
- the icon provider that is used.
-
setDefaultStyle
Deprecated.Sets a defaultILcdMS2525bStyle
instance that is used for objects which don't implementILcdMS2525bStyled
.- 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
-
setIconSize
Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle)
.Sets the default icon size that is used for objects which don't implementILcdMS2525bStyled
.- Parameters:
aSize
- the default icon size.
-
getIconSize
Deprecated.Replaced by the more general methodgetDefaultStyle()
.Returns the default icon size.- Returns:
- the default icon size.
-
setOutlined
Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle)
.Sets the default outline property that is used for objects which don't implementILcdMS2525bStyled
.- Parameters:
aIsOutlined
- the default outline property.
-
getOutlined
Deprecated.Replaced by the more general methodgetDefaultStyle()
.Returns the default outline property.- Returns:
- The default outline property.
-
getDefaultMilitarySymbolStyle()
instead.