public abstract class CustomImageGlobeOverlay extends GlobeImageOverlay implements IDisposable
GlobeImageOverlay that allows for a user defined image to be specified.| Constructor and Description |
|---|
CustomImageGlobeOverlay()
Initializes a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears the image data cache associated with this instance.
|
protected void |
dispose(boolean disposing) |
CartographicExtent |
getExtent()
Gets the
CartographicExtent that represents the area covered by the GlobeOverlay. |
boolean |
getIsTranslucent()
Gets whether the overlay contains translucent imagery.
|
double |
getMaximumMetersPerPixel()
Gets the maximum resolution of the inlay in meters per pixel.
|
MapProjection |
getProjection()
Gets the map projection.
|
Tiler |
getTiler()
Gets a custom tiler, if the plugin requires it.
|
URI |
getUri()
Gets the URI, if applicable.
|
abstract boolean |
read(CartographicExtent extent,
Object userTileData,
BufferedImage image)
Reads a tile from the specified
extent, scales it to and stores the result in image. |
void |
reload()
Reloads the image data associated with this instance.
|
void |
setExtent(CartographicExtent value)
Gets the
CartographicExtent that represents the area covered by the GlobeOverlay. |
void |
setIsTranslucent(boolean value)
Gets whether the overlay contains translucent imagery.
|
void |
setMaximumMetersPerPixel(double value)
Gets the maximum resolution of the inlay in meters per pixel.
|
void |
setProjection(MapProjection value)
Gets the map projection.
|
void |
setTiler(Tiler value)
Sets a custom tiler, if the plugin requires it.
|
void |
shutDown(Scene scene)
Called automatically when imagery is being removed from the globe.
|
void |
shuttingDown(Scene scene)
Called by the base class when imagery is being removed from the globe.
|
void |
startingUp(Scene scene)
Called by the base class when imagery is being added to the globe.
|
void |
startUp(Scene scene)
Called automatically when imagery is being added to the globe.
|
getAltitudeBasedTranslucencyLowerAltitude, getAltitudeBasedTranslucencyLowerTranslucency, getAltitudeBasedTranslucencyUpperAltitude, getAltitudeBasedTranslucencyUpperTranslucency, getMoreThanOneImageGlobeOverlaySupported, getTranslucency, getUseAltitudeBasedTranslucency, setAltitudeBasedTranslucencyLowerAltitude, setAltitudeBasedTranslucencyLowerTranslucency, setAltitudeBasedTranslucencyUpperAltitude, setAltitudeBasedTranslucencyUpperTranslucency, setTranslucency, setUseAltitudeBasedTranslucencydispose, getCentralBody, getDisplayCondition, getIsValid, getRole, getTag, setDisplayCondition, setTagclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, disposepublic CustomImageGlobeOverlay()
protected void dispose(boolean disposing)
dispose in class GlobeImageOverlaypublic CartographicExtent getExtent()
CartographicExtent that represents the area covered by the GlobeOverlay.getExtent in class GlobeOverlaypublic void setExtent(CartographicExtent value)
CartographicExtent that represents the area covered by the GlobeOverlay.setExtent in class GlobeOverlaypublic final Tiler getTiler()
Read.public final void setTiler(Tiler value)
Read.public final boolean getIsTranslucent()
public final void setIsTranslucent(boolean value)
public final double getMaximumMetersPerPixel()
public final void setMaximumMetersPerPixel(double value)
public final MapProjection getProjection()
MapProjection.Mercator and MapProjection.EquidistantCylindical.public final void setProjection(MapProjection value)
MapProjection.Mercator and MapProjection.EquidistantCylindical.public URI getUri()
getUri in class GlobeOverlaypublic final void startUp(Scene scene)
scene - The Scene the imagery is being added to.public void startingUp(Scene scene)
scene - The Scene the imagery is being added to.public final void shutDown(Scene scene)
scene - The Scene the imagery is being added to.public void shuttingDown(Scene scene)
scene - The Scene the imagery is being added to.public void clearCache()
public void reload()
public abstract boolean read(CartographicExtent extent, Object userTileData, BufferedImage image)
extent, scales it to and stores the result in image.extent - The extent of the tile.userTileData - User specified tile data for the tile. This will only be provided if Tiler is not null.image - A preallocated bitmap that the tile should be drawn to. Read should always overwrite the entire contents of the image.true if the read was successful; otherwise false.