Class TLcdAPP6AGXYPainterProvider
java.lang.Object
com.luciad.symbology.app6a.view.gxy.painter.TLcdAPP6AGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYPainterProvider
,Serializable
,Cloneable
A painter provider for a layer containing
ILcdAPP6AShape
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
,
the 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
(ILcdAPP6AStyle aDefaultAPP6AStyle) Deprecated.void
setIconProvider
(ILcdObjectIconProvider aObjectIconProvider) Sets the icon provider to be used.void
setIconSize
(int aSize) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle)
.void
setOutlined
(boolean aIsOutlined) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle)
.
-
Constructor Details
-
TLcdAPP6AGXYPainterProvider
public TLcdAPP6AGXYPainterProvider()
-
-
Method Details
-
getGXYPainter
Returns a validILcdGXYPainter
for painting aObject.- Specified by:
getGXYPainter
in interfaceILcdGXYPainterProvider
- Parameters:
aObject
- An object representing an APP-6A symbol. This means that it should at least implement the interfaceILcdAPP6AShape
.- Returns:
- a valid
ILcdGXYPainter
for painting the given object. - Throws:
IllegalArgumentException
- if the given object doesn't implementILcdAPP6AShape
or doesn't represent a valid APP-6A 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 ofTLcdAPP6AObjectIconProvider
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 classTLcdAPP6AObjectIconProvider
.- Returns:
- the icon provider that is used.
-
setDefaultStyle
Deprecated.Sets a defaultILcdAPP6AStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
. -
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
-
setIconSize
Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle)
.Sets the default icon size that is used for objects which don't implementILcdAPP6AStyled
.- 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(ILcdAPP6AStyle)
.Sets the default outline property that is used for objects which don't implementILcdAPP6AStyled
.- 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.