jmathlib.core.graphics.axes
Class Axes3DObject

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.TreeMap
          extended by jmathlib.core.graphics.PropertySet
              extended by jmathlib.core.graphics.HandleObject
                  extended by jmathlib.core.graphics.GraphicalObject
                      extended by jmathlib.core.graphics.FigureObject
                          extended by jmathlib.core.graphics.axes.AxesObject
                              extended by jmathlib.core.graphics.axes.Axes3DObject
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.WindowListener, java.awt.print.Printable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, java.util.Map, java.util.SortedMap, PropertyListener

public class Axes3DObject
extends AxesObject
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener

created and holds the axes of a plot

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class jmathlib.core.graphics.axes.AxesObject
AxesObject.AxesComponent
 
Field Summary
(package private)  boolean boxVisible
           
(package private)  Matrix3D mat
           
(package private)  java.lang.String mdname
           
(package private)  boolean painted
           
(package private)  double prevx
           
(package private)  double prevy
           
(package private)  Matrix3D rotMat
           
(package private)  double scalefudge
           
(package private)  double xfac
           
(package private)  double xtheta
           
(package private)  double ztheta
           
 
Fields inherited from class jmathlib.core.graphics.axes.AxesObject
ActivePositionPropertyP, ALimModeP, ALimP, AmbientLightColorP, backBuffer, backEnabled, backGC, backSize, BoxP, CameraPositionModeP, CameraPositionP, CameraTargetModeP, CameraTargetP, CameraUpVectorModeP, CameraUpVectorP, CameraViewAngleModeP, CameraViewAngleP, ChildrenP, CLimModeP, CLimP, ColorOrderP, ColorP, component, CurrentPointP, DataAspectRatioModeP, DataAspectRatioP, DrawModeP, dxFrame, dyFrame, FontAngleP, FontNameP, FontSizeP, FontUnitsP, FontWeightP, GridLineStyleP, LayerP, LineWidthP, MinorGridLineStyleP, OuterPositionP, PlotBoxAspectRatioModeP, PlotBoxAspectRatioP, ProjectionP, TickDirModeP, TickDirP, TickLengthP, TightInsetP, title, TitleP, XAxisLocationP, XColorP, XDirP, XGridP, XGridStyleP, xLabel, XLimModeP, XLimP, XMinorGridP, XMinorTickP, XScaleP, XTickLabelModeP, XTickLabelP, XTickModeP, XTickP, YAxisLocationP, YColorP, YDirP, YGridP, YGridStyleP, yLabel, YLimModeP, YLimP, YMinorGridP, YMinorTickP, YScaleP, YTickLabelModeP, YTickLabelP, YTickModeP, YTickP, ZAxisLocationP, ZColorP, ZDirP, ZGridP, ZGridStyleP, zLabel, ZLimModeP, ZLimP, ZMinorGridP, ZMinorTickP, ZScaleP, ZTickLabelModeP, ZTickLabelP, ZTickModeP, ZTickP
 
Fields inherited from class jmathlib.core.graphics.FigureObject
AlphamapP, BeingDeletedP, CloseRequestFcnP, ColormapP, CreateFcnP, CurrentCharacterP, DeleteFcnP, DockControlsP, DoubleBufferP, FileNameP, FixedColorsP, IntegerHandleP, InvertHardcopyP, KeyPressFcnP, KeyReleaseFcnP, MenuBarP, MinColormapP, NameP, NextPlotP, NumberTitleP, PaperOrientationP, PaperPositionModeP, PaperPositionP, PaperSizeP, PaperTypeP, PaperUnitsP, PointerP, PointerShapeCDataP, PointerShapeHotSpotP, PositionP, RendererModeP, RendererP, ResizeFcnP, ResizeP, SelectionTypeP, ShareColorsP, ToolBarP, UnitsP, VisualModeP, WindowButtonDownFcnP, WindowButtonMotionFcnP, WindowButtonUpFcnP, WindowScrollWheelFcnP, WindowStyleP, WVisualModeP
 
Fields inherited from class jmathlib.core.graphics.GraphicalObject
ax_xmax, ax_xmin, ax_ymax, ax_ymin, ax_zmax, ax_zmin, BusyActionP, ButtonDownFcnP, ClippingP, DiaryFileP, DiaryP, EchoP, ErrorMessageP, FormatSpacingP, HandleVisibilityP, height, HitTestP, InterruptibleP, LanguageP, parent, SelectedP, SelectionHighlightP, ShowHiddenHandlesP, TagP, TypeP, VisibileP, width, xmax, xmin, xOrig, ymax, ymin, yOrig, zmax, zmin, zOrig
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
Axes3DObject()
          ??
 
Method Summary
 void add3DLine(double[] _x, double[] _y, double[] _z)
          add a line to the current plot
 void add3DLines(double[][] _x, double[][] _y, double[][] _z, java.lang.String color, java.lang.String lineStyle, java.lang.String marker)
          add lines to the current plot
 void addSurface(double[][] _x, double[][] _y, double[][] _z)
          add a surface to the current axes
 void draw3DLine(java.awt.Graphics g, double x0, double y0, double z0, double x1, double y1, double z1)
           
private  void fill3DPlane(java.awt.Graphics g, double[] x, double[] y, double z)
           
private  void fill3DPlane(java.awt.Graphics g, double[] x, double[] y, double[] z)
           
private  void fill3DPlane(java.awt.Graphics g, double[] x, double y, double[] z)
           
private  void fill3DPlane(java.awt.Graphics g, double x, double[] y, double[] z)
           
private  Matrix3D makeRotMatrix()
           
 void mouseClicked(java.awt.event.MouseEvent e)
           
 void mouseDragged(java.awt.event.MouseEvent e)
           
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mouseMoved(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 void paint(java.awt.Graphics _g)
           
 void rotate(double phiX, double phiY, double phiZ)
           
private  void setPainted()
           
 
Methods inherited from class jmathlib.core.graphics.axes.AxesObject
addLine, addLine, addLines, autoScale, autoScaleX, autoScaleY, autoScaleZ, autoTick, autoTickLabel, autoTickLabelX, autoTickLabelY, autoTickLabelZ, autoTickX, autoTickY, autoTickZ, clearAxes, flushBackBuffer, getComponent, getMinimumSize, getSize, initBackBuffer, propertyChanged, repaint, setBackBuffer, setHold, setTitle, setXLabel, setYLabel, setZLabel
 
Methods inherited from class jmathlib.core.graphics.FigureObject
actionPerformed, clearFigure, close, close, convertCurrentAxesTo3DAxes, getCurrentAxes, getCurrentPolarAxes, getFigureNumber, print, setGraphicsManager, setSubPlot, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class jmathlib.core.graphics.GraphicalObject
getXMax, getXMin, getYMax, getYMin, getZMax, getZMin, setAxesBoundaries, setAxesBoundaries, setParent, setPlotArea
 
Methods inherited from class jmathlib.core.graphics.HandleObject
addProperty, finalize, get, getHandle, getHandleObject, getProperty, removeHandleObject, set, show
 
Methods inherited from class jmathlib.core.graphics.PropertySet
show
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode, isEmpty
 

Field Detail

painted

boolean painted

boxVisible

boolean boxVisible

xfac

double xfac

prevx

double prevx

prevy

double prevy

xtheta

double xtheta

ztheta

double ztheta

scalefudge

double scalefudge

rotMat

Matrix3D rotMat

mat

Matrix3D mat

mdname

java.lang.String mdname
Constructor Detail

Axes3DObject

public Axes3DObject()
??

Method Detail

makeRotMatrix

private Matrix3D makeRotMatrix()

add3DLine

public void add3DLine(double[] _x,
                      double[] _y,
                      double[] _z)
add a line to the current plot


add3DLines

public void add3DLines(double[][] _x,
                       double[][] _y,
                       double[][] _z,
                       java.lang.String color,
                       java.lang.String lineStyle,
                       java.lang.String marker)
add lines to the current plot


addSurface

public void addSurface(double[][] _x,
                       double[][] _y,
                       double[][] _z)
add a surface to the current axes


paint

public void paint(java.awt.Graphics _g)
Overrides:
paint in class AxesObject

draw3DLine

public void draw3DLine(java.awt.Graphics g,
                       double x0,
                       double y0,
                       double z0,
                       double x1,
                       double y1,
                       double z1)

fill3DPlane

private void fill3DPlane(java.awt.Graphics g,
                         double[] x,
                         double y,
                         double[] z)

fill3DPlane

private void fill3DPlane(java.awt.Graphics g,
                         double x,
                         double[] y,
                         double[] z)

fill3DPlane

private void fill3DPlane(java.awt.Graphics g,
                         double[] x,
                         double[] y,
                         double z)

fill3DPlane

private void fill3DPlane(java.awt.Graphics g,
                         double[] x,
                         double[] y,
                         double[] z)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener

setPainted

private void setPainted()

rotate

public void rotate(double phiX,
                   double phiY,
                   double phiZ)

FOOTER

BOTTOM