vmm3d.core3D
Class Axes3D
- java.lang.Object
-
- vmm3d.core.Decoration
-
- vmm3d.core.Axes2D
-
- vmm3d.core3D.Axes3D
-
public class Axes3D extends Axes2D
A Decoration that displays x-, y-, and z-axes in three-space. The axes are drawn as line segments from the origin to the points (1,0,0), (0,1,0), and (0,0,1). This is a subclass ofAxes2Dso that both 2D and 3D axes can be treated uniformly.
-
-
Constructor Summary
Constructors Constructor and Description Axes3D()Create an Axes3D decoration, which is in layer 1 by default.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddoDraw(org.freehep.graphics2d.VectorGraphics g, View view, Transform transform)Draws a set of axes in the specified View.-
Methods inherited from class vmm3d.core.Decoration
addChangeListener, addExtraXML, computeDrawData, forceRedraw, getLayer, readExtraXML, removeChangeListener, setLayer
-
-
-
-
Constructor Detail
-
Axes3D
public Axes3D()
Create an Axes3D decoration, which is in layer 1 by default.- See Also:
Decoration.setLayer(int)
-
-
Method Detail
-
doDraw
public void doDraw(org.freehep.graphics2d.VectorGraphics g, View view, Transform transform)Draws a set of axes in the specified View. If the view is not in fact a three dimensionsal view, then a set of two dimensional axes is drawn.- Overrides:
doDrawin classAxes2D- Parameters:
g- The graphics context where the Exhibit and its decorations are being drawn.view- The View that is drawing the Exhibit; this object contains other information that might be of use, such as the Display, if any, associated with the View, and the the actual Exhibit that is being drawn.transform- Contains information about the rectangular area in the xy-plane that is being drawn and about the rectangle of pixels in the graphics context where it is drawn. Note that at least for the top-level View class, transform.getX() and transform.getY() can be assumed to be zero.- See Also:
Exhibit#render(Graphics2D, View, Transform, ArrayList),Decoration.computeDrawData(View, boolean, Transform, Transform)
-
-
DMelt 3.0 © DataMelt by jWork.ORG