Package 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
-
-
Field Summary
-
Fields inherited from class gov.nasa.worldwind.data.AbstractDataRaster
height, width
-
-
Constructor Summary
Constructors Constructor Description BufferedImageRaster(int width, int height, int transparency, Sector sector)BufferedImageRaster(Sector sector, java.awt.image.BufferedImage bufferedImage)BufferedImageRaster(Sector sector, java.awt.image.BufferedImage bufferedImage, AVList list)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes of any internal resources allocated by the object.protected voiddoDrawOnTo(BufferedImageRaster canvas)voiddrawOnTo(DataRaster canvas)Copies this raster into a specified raster.voidfill(java.awt.Color color)java.awt.image.BufferedImagegetBufferedImage()java.awt.Graphics2DgetGraphics()longgetSizeInBytes()Retrieves the approximate size of this object in bytes.static DataRasterwrap(java.awt.image.BufferedImage image, AVList params)static DataRasterwrapAsGeoreferencedRaster(java.awt.image.BufferedImage image, AVList params)-
Methods inherited from class gov.nasa.worldwind.data.AbstractDataRaster
computeClipRect, computeGeographicToRasterTransform, computeSourceToDestTransform, getHeight, getSector, getSubRaster, getSubRaster, getWidth, setValue
-
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, 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
-
-
-
-
Constructor Detail
-
BufferedImageRaster
public BufferedImageRaster(Sector sector, java.awt.image.BufferedImage bufferedImage)
-
BufferedImageRaster
public BufferedImageRaster(Sector sector, java.awt.image.BufferedImage bufferedImage, AVList list)
-
BufferedImageRaster
public BufferedImageRaster(int width, int height, int transparency, Sector sector)
-
-
Method Detail
-
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
-
getGraphics
public java.awt.Graphics2D getGraphics()
-
drawOnTo
public void drawOnTo(DataRaster canvas)
Description copied from interface:DataRasterCopies this raster into a specified raster.- Specified by:
drawOnToin interfaceDataRaster- Parameters:
canvas- - the raster to copy into.
-
fill
public void fill(java.awt.Color color)
-
getSizeInBytes
public long getSizeInBytes()
Description copied from interface:CacheableRetrieves 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:
getSizeInBytesin interfaceCacheable- Returns:
- this
Cacheableobject's size in bytes
-
dispose
public void dispose()
Description copied from interface:DisposableDisposes of any internal resources allocated by the object.- Specified by:
disposein interfaceDisposable
-
doDrawOnTo
protected void doDrawOnTo(BufferedImageRaster canvas)
-
wrap
public static DataRaster wrap(java.awt.image.BufferedImage image, AVList params)
-
wrapAsGeoreferencedRaster
public static DataRaster wrapAsGeoreferencedRaster(java.awt.image.BufferedImage image, AVList params)
-
-