Package com.bc.ceres.grender.support
Class BufferedImageRendering
- java.lang.Object
-
- com.bc.ceres.grender.support.BufferedImageRendering
-
-
Constructor Summary
Constructors Constructor Description BufferedImageRendering(int width, int height)
BufferedImageRendering(BufferedImage image)
BufferedImageRendering(BufferedImage image, Viewport viewport)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
finalize()
Graphics2D
getGraphics()
BufferedImage
getImage()
Viewport
getViewport()
void
setImage(BufferedImage image)
void
setViewport(Viewport viewport)
-
-
-
Constructor Detail
-
BufferedImageRendering
public BufferedImageRendering(int width, int height)
-
BufferedImageRendering
public BufferedImageRendering(BufferedImage image)
-
BufferedImageRendering
public BufferedImageRendering(BufferedImage image, Viewport viewport)
-
-
Method Detail
-
getGraphics
public Graphics2D getGraphics()
- Specified by:
getGraphics
in interfaceRendering
- Returns:
- The graphics context associated with this rendering.
-
getViewport
public Viewport getViewport()
- Specified by:
getViewport
in interfaceRendering
- Returns:
- The porthole through which the model is viewed.
-
setViewport
public void setViewport(Viewport viewport)
-
getImage
public BufferedImage getImage()
-
setImage
public void setImage(BufferedImage image)
-
-