|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectscenic.ImageRenderer
public class ImageRenderer
This class is used to render a scene graph to an image. The rendering does not take place automatically, instead, the render() method must be called to do the rendering.
| Constructor Summary | |
|---|---|
ImageRenderer(ScenicImage image,
SceneNode scene)
Creates a new ImageRenderer object. |
|
| Method Summary | |
|---|---|
void |
childChanged(java.awt.Rectangle area)
Automatically called when the image changes. |
ScenicColor |
getBgColor()
Gets the current background color. |
SceneNode |
getScene()
Gets the scene that is used for rendering. |
void |
render()
Renders the scene to the image. |
void |
setBgColor(ScenicColor color)
Sets the background color for the image. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageRenderer(ScenicImage image,
SceneNode scene)
image - the image that is used as the rendering targetscene - the scene that is rendered to the image.| Method Detail |
|---|
public void setBgColor(ScenicColor color)
color - the background colorpublic ScenicColor getBgColor()
public SceneNode getScene()
public void render()
public void childChanged(java.awt.Rectangle area)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||