Package com.luciad.symbology.app6a.view
Class TLcdAPP6AObjectIconProvider
java.lang.Object
com.luciad.symbology.app6a.view.TLcdAPP6AObjectIconProvider
- All Implemented Interfaces:
ILcdObjectIconProvider
Icon provider for
ILcdAPP6ACoded objects. When an object also implements
ILcdStyledMilitarySymbol, its style will be associated with the icon. Otherwise, a default
style will be used. This default style can be customized using the methods
getDefaultMilitarySymbolStyle() and setDefaultMilitarySymbolStyle(TLcdMilitarySymbolStyle).
The icons generated by this ILcdObjectIconProvider are cached using a simple LRU cache.
The default maximum cache size is 5000 icons.
If you wish to adjust the max cache size, you can do this using the following property:
com.luciad.symbology.iconsymbols.MAX_CACHE_SIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanGetIcon(Object aObject) Returns whether an icon can be returned for a given object.Returns the defaultTLcdMilitarySymbolStylethat is used for objects which don't implementILcdStyledMilitarySymbol.Deprecated.Returns an icon forILcdAPP6ACodedobjects.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.voidsetIconSize(int aSize) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle).voidsetOutlined(boolean aIsOutlined) Deprecated.Replaced by the more general methodsetDefaultStyle(ILcdAPP6AStyle).
-
Constructor Details
-
TLcdAPP6AObjectIconProvider
public TLcdAPP6AObjectIconProvider()
-
-
Method Details
-
setDefaultStyle
Deprecated.Sets a defaultILcdAPP6AStyleinstance that is used for objects which don't implementILcdStyledMilitarySymbol.- Parameters:
aDefaultAPP6AStyle- AILcdAPP6AStyleinstance.
-
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 that 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 that 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.
-
getIcon
Returns an icon forILcdAPP6ACodedobjects. If the given object also implements theILcdAPP6AStyledinterface, its style will be associated with the icon. When this is not the case, a default style will be used. This default style can be customized using the methodsgetDefaultStyle()andsetDefaultStyle(ILcdAPP6AStyle).- Specified by:
getIconin interfaceILcdObjectIconProvider- Parameters:
aObject- Should be an instance ofILcdAPP6ACodedand optionally also an instance ofILcdAPP6AStyled.- Returns:
- An
ILcdIconthat also implementsILcdAnchoredIcon. - Throws:
IllegalArgumentException- if the given object isn't an instance ofILcdAPP6ACoded.
-
canGetIcon
Description copied from interface:ILcdObjectIconProviderReturns whether an icon can be returned for a given object.- Specified by:
canGetIconin interfaceILcdObjectIconProvider- Parameters:
aObject- to object to check whether an icon can be provided for it.- Returns:
- whether an icon can be returned for a given object.
-
getDefaultMilitarySymbolStyle()instead.