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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()RedefinesObject.cloneto make it public.Returns the defaultTLcdMilitarySymbolStylethat is used for objects which don't implementILcdStyledMilitarySymbol.Deprecated.getGXYPainter(Object aObject) Returns a validILcdGXYPainterfor painting aObject.Returns the icon provider that is used.intDeprecated.Replaced by the more general methodgetDefaultStyle().booleanDeprecated.Replaced by the more general methodgetDefaultStyle().voidsetDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle aDefaultStyle) Sets a defaultTLcdMilitarySymbolStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.voidsetDefaultStyle(ILcdAPP6AStyle aDefaultAPP6AStyle) Deprecated.voidsetIconProvider(ILcdObjectIconProvider aObjectIconProvider) Sets the icon provider to be used.voidsetIconSize(int aSize) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle).voidsetOutlined(boolean aIsOutlined) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle).
-
Constructor Details
-
TLcdAPP6AGXYPainterProvider
public TLcdAPP6AGXYPainterProvider()
-
-
Method Details
-
getGXYPainter
Returns a validILcdGXYPainterfor painting aObject.- Specified by:
getGXYPainterin interfaceILcdGXYPainterProvider- Parameters:
aObject- An object representing an APP-6A symbol. This means that it should at least implement the interfaceILcdAPP6AShape.- Returns:
- a valid
ILcdGXYPainterfor painting the given object. - Throws:
IllegalArgumentException- if the given object doesn't implementILcdAPP6AShapeor doesn't represent a valid APP-6A code.
-
clone
Description copied from interface:ILcdGXYPainterProviderRedefinesObject.cloneto make it public.- Specified by:
clonein interfaceILcdCloneable- Specified by:
clonein interfaceILcdGXYPainterProvider- Overrides:
clonein classObject- Returns:
- a clone of this painter provider.
- See Also:
-
setIconProvider
Sets the icon provider to be used. By default, an instance ofTLcdAPP6AObjectIconProvideris 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 defaultILcdAPP6AStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol. -
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
-
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.