public class TLcdVPFGXYPainterProvider extends Object implements ILcdGXYPainterProvider, ILcdGXYLabelPainterProvider
ILcdVPFLayerFactoryModel
will be used.Constructor and Description |
---|
TLcdVPFGXYPainterProvider()
Constructs a new
TLcdVPFPainterProvider , initialized with
the default style provider. |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
TLcdVPFGeoSymProvider |
getGeoSymProvider()
Returns the
TLcdVPFGeoSymProvider that is used. |
ILcdGXYLabelPainter |
getGXYLabelPainter(Object aObject)
Finds an
ILcdGXYLabelPainter that can be used to label the object passed. |
ILcdGXYPainter |
getGXYPainter(Object aObject)
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
ILcdVPFLayerFactoryModel |
getVPFLayerFactoryModel()
Returns the
ILcdVPFLayerFactoryModel that is used when GeoSym is not active. |
boolean |
isUsePaintCache()
Returns whether caching is used when painting this painter's object.
|
void |
setGeoSymProvider(TLcdVPFGeoSymProvider aGeoSymProvider)
Sets the
TLcdVPFGeoSymProvider to be used. |
void |
setUsePaintCache(boolean aPaintCache)
Turns caching of the representation of the object on or off.
|
void |
setVPFLayerFactoryModel(ILcdVPFLayerFactoryModel aVPFLayerFactoryModel)
Sets the
ILcdVPFLayerFactoryModel to be used when GeoSym is not active. |
public TLcdVPFGXYPainterProvider()
TLcdVPFPainterProvider
, initialized with
the default style provider.public void setVPFLayerFactoryModel(ILcdVPFLayerFactoryModel aVPFLayerFactoryModel)
ILcdVPFLayerFactoryModel
to be used when GeoSym is not active.aVPFLayerFactoryModel
- the ILcdVPFLayerFactoryModel
to be usedgetVPFLayerFactoryModel()
public ILcdVPFLayerFactoryModel getVPFLayerFactoryModel()
ILcdVPFLayerFactoryModel
that is used when GeoSym is not active.ILcdVPFLayerFactoryModel
that is usedsetVPFLayerFactoryModel(com.luciad.format.vpf.ILcdVPFLayerFactoryModel)
public void setGeoSymProvider(TLcdVPFGeoSymProvider aGeoSymProvider)
TLcdVPFGeoSymProvider
to be used.aGeoSymProvider
- the GeoSym provider to be used.getGeoSymProvider()
public TLcdVPFGeoSymProvider getGeoSymProvider()
TLcdVPFGeoSymProvider
that is used.setGeoSymProvider(com.luciad.format.vpf.TLcdVPFGeoSymProvider)
public void setUsePaintCache(boolean aPaintCache)
aPaintCache
- A flag indicating whether to use caching when painting an object.isUsePaintCache()
public boolean isUsePaintCache()
true
if caching is used to paint this painter's object,
false
otherwise.setUsePaintCache(boolean)
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 ILcdGXYLabelPainterProvider
clone
in interface ILcdGXYPainterProvider
clone
in class Object
Object.clone()
public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject)
ILcdGXYLabelPainterProvider
ILcdGXYLabelPainter
that can be used to label the object passed.
The label painter provider is responsible for setting the object to the label painter before returning the label painter. An implementation should therefore have the following structure:
public ILcdGXYLabelPainter getGXYLabelPainter(Object aObject) {
ILcdGXYLabelPainter labelPainter = ... // find the label painter for the object
if (labelPainter != null) {
labelPainter.setObject(aObject);
}
return labelPainter;
}
getGXYLabelPainter
in interface ILcdGXYLabelPainterProvider
aObject
- the object to find a label painter for