public class TLcdKML22GXYPainterProvider extends Object implements ILcdGXYPainterProvider
The main ILcdGXYPainterProvider for KML 2.2 abstract features
This painter provider is capable of providing painters for the following KML 2.2 domain objects:
All of the painters returned by the TLcdKML22GXYPainterProvider
are
capable of retrieving TLcdKML22Style
instances for the KML features they paint.
Constructor and Description |
---|
TLcdKML22GXYPainterProvider(TLcdKML22ResourceProvider aResourceProvider)
Creates a new KML GXY Painter Provider with the given arguments.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Redefines
Object.clone to make it public. |
ILcdIcon |
getDefaultLoadingIcon()
Gets the default icon used while loading is in progress.
|
ILcdRasterPainter |
getGroundOverlayPainter()
Gets the ILcdRasterPainter that is used to paint
TLcdKML22PaintableGroundOverlay instances.
|
ILcdGXYPainter |
getGXYPainter(Object aObject)
Finds an
ILcdGXYPainter that can be used to paint or locate the object passed. |
void |
setDefaultLoadingIcon(ILcdIcon aDefaultLoadingIcon)
Sets the default icon used while loading is in progress.
|
public TLcdKML22GXYPainterProvider(TLcdKML22ResourceProvider aResourceProvider)
aResourceProvider
- a TLcdKML22ResourceProvider capable
of resolving images and styles for KML features that require them.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()
public ILcdRasterPainter getGroundOverlayPainter()
public ILcdIcon getDefaultLoadingIcon()
Gets the default icon used while loading is in progress. By default this is null, which indicates that there is no loading icon for point-based placemarks.
The loading icon is displayed while the icon of a point-based Placemark is being retrieved over a network.
public void setDefaultLoadingIcon(ILcdIcon aDefaultLoadingIcon)
Sets the default icon used while loading is in progress. If this is null, it indicates that there is no loading icon to be displayed for point-based placemarks.
The loading icon is displayed while the icon of a point-based Placemark is being retrieved over a network.
aDefaultLoadingIcon
- the default loading icon for point-based placemarks, or null if no icon needs to be displayed.