vmm.core3D
Class Axes3D

java.lang.Object
  extended by vmm.core.Decoration
      extended by vmm.core.Axes2D
          extended by vmm.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 of Axes2D so that both 2D and 3D axes can be treated uniformly.


Field Summary
 
Fields inherited from class vmm.core.Decoration
decorationNeedsRedraw
 
Constructor Summary
Axes3D()
          Create an Axes3D decoration, which is in layer 1 by default.
 
Method Summary
 void doDraw(java.awt.Graphics2D g, View view, Transform transform)
          Draws a set of axes in the specified View.
 
Methods inherited from class vmm.core.Axes2D
getColor, setColor
 
Methods inherited from class vmm.core.Decoration
addChangeListener, addExtraXML, computeDrawData, fireDecorationChangeEvent, forceRedraw, getLayer, readExtraXML, removeChangeListener, setLayer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(java.awt.Graphics2D 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:
doDraw in class Axes2D
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)