public interface Drawable3D
Graphics2D instance. The Chart3D class
implements this interface.Panel3D| Modifier and Type | Method and Description |
|---|---|
RenderingInfo |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D bounds)
Draws the scene to the supplied
Graphics2D target and returns
an object containing state information about the rendering. |
Dimension3D |
getDimensions()
Returns the aggregate dimensions of the objects in the 3D scene.
|
double |
getProjDistance()
Returns the projection distance.
|
Offset2D |
getTranslate2D()
Returns the 2D offset for the scene.
|
ViewPoint3D |
getViewPoint()
Returns the point from which the 3D scene is viewed.
|
void |
setProjDistance(double dist)
Sets the projection distance.
|
void |
setTranslate2D(Offset2D offset)
Sets the translation offset.
|
void |
setViewPoint(ViewPoint3D viewPoint)
Sets a new view point.
|
Dimension3D getDimensions()
null).ViewPoint3D getViewPoint()
draw(java.awt.Graphics2D, java.awt.geom.Rectangle2D) method.null).void setViewPoint(ViewPoint3D viewPoint)
ViewPoint3D class is
implemented so that its position and orientation can be updated directly,
so you should use this method only when you want to set an entirely
new view point.viewPoint - the view point (null not permitted).double getProjDistance()
1500,
higher numbers flatten out the perspective and reduce distortion in the
projected image.void setProjDistance(double dist)
1500 (but this
will depend on the dimensions of the scene), higher numbers flatten out
the perspective and reduce distortion in the projected image.dist - the distance.Offset2D getTranslate2D()
(0, 0).null).void setTranslate2D(Offset2D offset)
offset - the translation offset (null not permitted).RenderingInfo draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D bounds)
Graphics2D target and returns
an object containing state information about the rendering.g2 - the graphics target (null not permitted).bounds - the bounds (null not permitted).null).