Package com.luciad.format.mif.gxy
Class TLcdMIFGXYPainterProvider
java.lang.Object
com.luciad.format.mif.gxy.TLcdMIFGXYPainterProvider
- All Implemented Interfaces:
ILcdCloneable
,ILcdGXYPainterProvider
,Serializable
,Cloneable
This class implements an
ILcdGXYPainterProvider
for MIF objects.- See Also:
-
Constructor Summary
ConstructorDescriptionTLcdMIFGXYPainterProvider
(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache) Creates a new TLcdMIFGXYPainterProvider based on the given TLcdMIFModelDescriptor.TLcdMIFGXYPainterProvider
(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache, TLcdMIFSymbolIconProvider aIconProvider, TLcdMIFPenGXYPainterStyle aPenStyle, TLcdMIFBrushGXYPainterStyle aBrushStyle, TLcdMIFTextGXYFontStyle aTextFontStyle, TLcdMIFTextGXYFillStyle aTextFillStyle) Creates a new TLcdMIFGXYPainterProvider with the given level symbology and color table, and a set of painter styles to specify the drawing style of the ILcdMIFShape objects. -
Method Summary
Modifier and TypeMethodDescriptionclone()
RedefinesObject.clone
to make it public.getGXYPainter
(Object aObject) Finds anILcdGXYPainter
that can be used to paint or locate the object passed.
-
Constructor Details
-
TLcdMIFGXYPainterProvider
public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache) Creates a new TLcdMIFGXYPainterProvider based on the given TLcdMIFModelDescriptor. The painter styles that will be used by the painters are suitable for standard drawing of MIF files.- Parameters:
aMIFModelDescriptor
- the TLcdMIFModelDescriptor that contains information to be used by the painters.aUsePaintCache
- specifies whether the painters should cache transformed coordinates.
-
TLcdMIFGXYPainterProvider
public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache, TLcdMIFSymbolIconProvider aIconProvider, TLcdMIFPenGXYPainterStyle aPenStyle, TLcdMIFBrushGXYPainterStyle aBrushStyle, TLcdMIFTextGXYFontStyle aTextFontStyle, TLcdMIFTextGXYFillStyle aTextFillStyle) Creates a new TLcdMIFGXYPainterProvider with the given level symbology and color table, and a set of painter styles to specify the drawing style of the ILcdMIFShape objects.- Parameters:
aMIFModelDescriptor
- the TLcdMIFModelDescriptor that contains information to be used by the painters.aUsePaintCache
- specifies whether the painters should cache transformed coordinates.aIconProvider
- icon provider that the painters will use for determining which symbol corresponds to an object.aPenStyle
- the TLcdMIFPenGXYPainterStyle that the painters will use for painting lines.aBrushStyle
- the TLcdMIFBrushGXYPainterStyle that the painters will use for filling areas.aTextFontStyle
- the TLcdMIFTextGXYFontStyle that the painters will use for painting text.aTextFillStyle
- the TLcdMIFTextGXYFillStyle that the painters will use for painting text.
-
-
Method Details
-
getGXYPainter
Description copied from interface:ILcdGXYPainterProvider
Finds anILcdGXYPainter
that can be used to paint or locate the object passed.The painter provider is responsible for setting the object to the painter before returning the painter. An implementation should therefore have the following structure:
public ILcdGXYPainter getGXYPainter(Object aObject) { ILcdGXYPainter painter = ... // find the painter for the object if (painter != null) { painter.setObject(aObject); } return painter; }
- Specified by:
getGXYPainter
in interfaceILcdGXYPainterProvider
- Parameters:
aObject
- the object to find a painter for- Returns:
- a painter that can be used to paint or locate the object; or null if no painter could be found for the given object, or the object could not be set on the retrieved painter.
-
clone
Description copied from interface:ILcdGXYPainterProvider
RedefinesObject.clone
to make it public.- Specified by:
clone
in interfaceILcdCloneable
- Specified by:
clone
in interfaceILcdGXYPainterProvider
- Overrides:
clone
in classObject
- Returns:
- a clone of this painter provider.
- See Also:
-