gov.nasa.worldwind.data
Class BufferedImageRaster
java.lang.Object
gov.nasa.worldwind.data.BufferedImageRaster
- All Implemented Interfaces:
- Cacheable, DataRaster, Disposable
- Direct Known Subclasses:
- MipMappedBufferedImageRaster
public class BufferedImageRaster
- extends java.lang.Object
- implements DataRaster, Cacheable, Disposable
|
Method Summary |
protected java.awt.Rectangle |
computeClipRect(Sector clipSector,
DataRaster clippedRaster)
|
protected java.awt.geom.AffineTransform |
computeGeographicToRasterTransform(int width,
int height,
Sector sector)
|
protected java.awt.geom.AffineTransform |
computeSourceToDestTransform(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector)
|
void |
dispose()
|
protected void |
doDrawOnCanvas(BufferedImageRaster canvas,
Sector clipSector)
|
void |
drawOnCanvas(DataRaster canvas)
|
void |
drawOnCanvas(DataRaster canvas,
Sector clipSector)
|
void |
fill(java.awt.Color color)
|
java.awt.image.BufferedImage |
getBufferedImage()
|
java.awt.Graphics2D |
getGraphics()
|
int |
getHeight()
|
Sector |
getSector()
|
long |
getSizeInBytes()
Retrieves the approximate size of this object in bytes. |
int |
getWidth()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedImageRaster
public BufferedImageRaster(int width,
int height,
int transparency,
Sector sector)
BufferedImageRaster
public BufferedImageRaster(Sector sector,
java.awt.image.BufferedImage bufferedImage)
computeClipRect
protected java.awt.Rectangle computeClipRect(Sector clipSector,
DataRaster clippedRaster)
computeGeographicToRasterTransform
protected java.awt.geom.AffineTransform computeGeographicToRasterTransform(int width,
int height,
Sector sector)
computeSourceToDestTransform
protected java.awt.geom.AffineTransform computeSourceToDestTransform(int sourceWidth,
int sourceHeight,
Sector sourceSector,
int destWidth,
int destHeight,
Sector destSector)
dispose
public void dispose()
- Specified by:
dispose in interface Disposable
doDrawOnCanvas
protected void doDrawOnCanvas(BufferedImageRaster canvas,
Sector clipSector)
drawOnCanvas
public void drawOnCanvas(DataRaster canvas)
- Specified by:
drawOnCanvas in interface DataRaster
drawOnCanvas
public void drawOnCanvas(DataRaster canvas,
Sector clipSector)
- Specified by:
drawOnCanvas in interface DataRaster
fill
public void fill(java.awt.Color color)
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
getGraphics
public java.awt.Graphics2D getGraphics()
getHeight
public int getHeight()
- Specified by:
getHeight in interface DataRaster
getSector
public Sector getSector()
- Specified by:
getSector in interface DataRaster
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
getWidth
public int getWidth()
- Specified by:
getWidth in interface DataRaster