public class TLcdMIFGXYPainterProvider extends Object implements ILcdGXYPainterProvider
ILcdGXYPainterProvider
for MIF objects.Constructor and Description |
---|
TLcdMIFGXYPainterProvider(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.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
ILcdGXYPainter |
getGXYPainter(Object aObject)
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache)
aMIFModelDescriptor
- the TLcdMIFModelDescriptor that contains information
to be used by the painters.aUsePaintCache
- specifies whether the painters should cache transformed
coordinates.public TLcdMIFGXYPainterProvider(TLcdMIFModelDescriptor aMIFModelDescriptor, boolean aUsePaintCache, TLcdMIFSymbolIconProvider aIconProvider, TLcdMIFPenGXYPainterStyle aPenStyle, TLcdMIFBrushGXYPainterStyle aBrushStyle, TLcdMIFTextGXYFontStyle aTextFontStyle, TLcdMIFTextGXYFillStyle aTextFillStyle)
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.public ILcdGXYPainter getGXYPainter(Object aObject)
ILcdGXYPainterProvider
ILcdGXYPainter
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;
}
getGXYPainter
in interface ILcdGXYPainterProvider
aObject
- the object to find a painter forpublic Object clone()
ILcdGXYPainterProvider
Object.clone
to make it public.clone
in interface ILcdCloneable
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()