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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canGetIcon
(Object aObject) Returns whether an icon can be returned for a given object.Returns the defaultTLcdMilitarySymbolStyle
that is used for objects which don't implementILcdStyledMilitarySymbol
.Deprecated.Returns an icon forILcdAPP6ACoded
objects.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
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
-
TLcdAPP6AObjectIconProvider
public TLcdAPP6AObjectIconProvider()
-
-
Method Details
-
setDefaultStyle
Deprecated.Sets a defaultILcdAPP6AStyle
instance that is used for objects which don't implementILcdStyledMilitarySymbol
.- Parameters:
aDefaultAPP6AStyle
- AILcdAPP6AStyle
instance.
-
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 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 forILcdAPP6ACoded
objects. If the given object also implements theILcdAPP6AStyled
interface, 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:
getIcon
in interfaceILcdObjectIconProvider
- Parameters:
aObject
- Should be an instance ofILcdAPP6ACoded
and optionally also an instance ofILcdAPP6AStyled
.- Returns:
- An
ILcdIcon
that also implementsILcdAnchoredIcon
. - Throws:
IllegalArgumentException
- if the given object isn't an instance ofILcdAPP6ACoded
.
-
canGetIcon
Description copied from interface:ILcdObjectIconProvider
Returns whether an icon can be returned for a given object.- Specified by:
canGetIcon
in 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.