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