gov.nasa.worldwind.data
Class BufferedImageRaster
java.lang.Object
gov.nasa.worldwind.avlist.AVListImpl
gov.nasa.worldwind.data.AbstractDataRaster
gov.nasa.worldwind.data.BufferedImageRaster
- All Implemented Interfaces:
- AVList, Cacheable, DataRaster, Disposable
- Direct Known Subclasses:
- MipMappedBufferedImageRaster
public class BufferedImageRaster
- extends AbstractDataRaster
- implements Cacheable, Disposable
| Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface gov.nasa.worldwind.avlist.AVList |
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValues |
BufferedImageRaster
public BufferedImageRaster(int width,
int height,
int transparency,
Sector sector)
BufferedImageRaster
public BufferedImageRaster(Sector sector,
BufferedImage bufferedImage)
BufferedImageRaster
public BufferedImageRaster(Sector sector,
BufferedImage bufferedImage,
AVList list)
dispose
public void dispose()
- Description copied from interface:
Disposable
- Disposes of any internal resources allocated by the object.
- Specified by:
dispose in interface Disposable
doDrawOnTo
protected void doDrawOnTo(BufferedImageRaster canvas)
drawOnTo
public void drawOnTo(DataRaster canvas)
- Description copied from interface:
DataRaster
- Copies this raster into a specified raster.
- Specified by:
drawOnTo in interface DataRaster
- Parameters:
canvas - - the raster to copy into.
fill
public void fill(Color color)
getBufferedImage
public BufferedImage getBufferedImage()
getGraphics
public Graphics2D getGraphics()
getSizeInBytes
public long getSizeInBytes()
- Description copied from interface:
Cacheable
- Retrieves the approximate size of this object in bytes. Implementors are encouraged to calculate the exact size
for smaller objects, but use approximate values for objects that include such large components that the
approximation would produce an error so small that the extra computation would be wasteful.
- Specified by:
getSizeInBytes in interface Cacheable
- Returns:
- this
Cacheable object's size in bytes
wrap
public static DataRaster wrap(BufferedImage image,
AVList params)
wrapAsGeoreferencedRaster
public static DataRaster wrapAsGeoreferencedRaster(BufferedImage image,
AVList params)