Package com.luciad.format.mif.gxy
Class TLcdMIFSymbolIconProvider
java.lang.Object
com.luciad.format.mif.gxy.TLcdMIFSymbolIconProvider
This
ILcdMIFSymbolIconProvider
provides icons corresponding to
given MIF symbols, as defined by the MIF standard.
If MapInfo fonts are not installed, default symbols are returned.-
Constructor Summary
ConstructorDescriptionConstructs an icon provider that returns a filled rectangle as a default symbol.TLcdMIFSymbolIconProvider
(ILcdIcon aDefaultIcon) Constructs an icon provider with a default icon. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(ILcdMIFSymbol aMIFSymbol) Returns the icon corresponding to the given MIF symbol.
-
Constructor Details
-
TLcdMIFSymbolIconProvider
public TLcdMIFSymbolIconProvider()Constructs an icon provider that returns a filled rectangle as a default symbol. -
TLcdMIFSymbolIconProvider
Constructs an icon provider with a default icon.- Parameters:
aDefaultIcon
- the icon to return for unresolved objects.
-
-
Method Details
-
getIcon
Returns the icon corresponding to the given MIF symbol. The icon is then typically used for painting. The MIF symbol can be a MapInfo 3.0 symbol, a TrueType symbol, or a custom bitmap symbol.- Parameters:
aMIFSymbol
- the object to provide a symbol for.- Returns:
- the icon corresponding to the given MIF symbol.
-