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
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(ILcdMS2525bStyle aDefaultMS2525bStyle) Deprecated.voidsetIconProvider(ILcdObjectIconProvider aObjectIconProvider) Sets the icon provider to be used.voidsetIconSize(int aSize) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle).voidsetOutlined(boolean aIsOutlined) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdMS2525bStyle).
-
Constructor Details
-
TLcdMS2525bGXYPainterProvider
public TLcdMS2525bGXYPainterProvider()
-
-
Method Details
-
getGXYPainter
Returns a validILcdGXYPainterfor painting aObject.- Specified by:
getGXYPainterin interfaceILcdGXYPainterProvider- Parameters:
aObject- An object representing a MIL-STD 2525b symbol. This means that it should at least implement the interfaceILcdMS2525bShape.- Returns:
- a valid
ILcdGXYPainterfor painting the given object. - Throws:
IllegalArgumentException- if the given object doesn't implementILcdMS2525bShapeor doesn't represent a valid MIL-STD 2525b 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 ofTLcdMS2525bObjectIconProvideris 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 defaultILcdMS2525bStyleinstance that is used for objects which don't implementILcdMS2525bStyled.- 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
-
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.