jmathlib.core.graphics.axes
Class AxesObject

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
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.WindowListener, java.awt.print.Printable, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, java.util.Map, java.util.SortedMap, PropertyListener
Direct Known Subclasses:
Areaseries, Axes3DObject, Barseries, CartesianAxesObject, CircleObject, Countergroup, Errorbarseries, ImageObject, LightObject, LineObject, Lineseries, PatchObject, PolarAxesObject, Quivergroup, RectangleObject, Scattergroup, Stairseries, Stemseries, Surfaceplot, TextObject

public class AxesObject
extends FigureObject
implements PropertyListener

created and holds the axes of a plot

See Also:
Serialized Form

Nested Class Summary
protected  class AxesObject.AxesComponent
           
 
Field Summary
 RadioProperty ActivePositionPropertyP
          axes properties
 RadioProperty ALimModeP
           
 DoubleStructProperty ALimP
           
 ColorProperty AmbientLightColorP
           
protected  java.awt.Image backBuffer
          double-buffering data
protected  boolean backEnabled
           
protected  java.awt.Graphics backGC
           
protected  java.awt.Dimension backSize
           
 BooleanProperty BoxP
           
 RadioProperty CameraPositionModeP
           
 DoubleVectorProperty CameraPositionP
           
 RadioProperty CameraTargetModeP
           
 DoubleVectorProperty CameraTargetP
           
 RadioProperty CameraUpVectorModeP
           
 DoubleVectorProperty CameraUpVectorP
           
 RadioProperty CameraViewAngleModeP
           
 DoubleProperty CameraViewAngleP
           
 HandleObjectListProperty ChildrenP
           
 RadioProperty CLimModeP
           
 DoubleVectorProperty CLimP
           
 ColormapProperty ColorOrderP
           
 ColorProperty ColorP
           
protected  AxesObject.AxesComponent component
          internal component
 DoubleVectorProperty CurrentPointP
           
 RadioProperty DataAspectRatioModeP
           
 DoubleVectorProperty DataAspectRatioP
           
 RadioProperty DrawModeP
           
protected  int dxFrame
           
protected  int dyFrame
           
 RadioProperty FontAngleP
           
 StringProperty FontNameP
           
 IntegerProperty FontSizeP
           
 RadioProperty FontUnitsP
           
 RadioProperty FontWeightP
           
 RadioProperty GridLineStyleP
           
 RadioProperty LayerP
           
 DoubleProperty LineWidthP
           
 RadioProperty MinorGridLineStyleP
           
 DoubleVectorProperty OuterPositionP
           
 RadioProperty PlotBoxAspectRatioModeP
           
 DoubleVectorProperty PlotBoxAspectRatioP
           
 RadioProperty ProjectionP
           
 RadioProperty TickDirModeP
           
 RadioProperty TickDirP
           
 DoubleVectorProperty TickLengthP
           
 DoubleVectorProperty TightInsetP
           
protected  TextObject title
          title of this axis
 StringProperty TitleP
           
 RadioProperty XAxisLocationP
           
 ColorProperty XColorP
           
 RadioProperty XDirP
           
 BooleanProperty XGridP
           
 LineStyleProperty XGridStyleP
           
 TextObject xLabel
           
 RadioProperty XLimModeP
           
 DoubleVectorProperty XLimP
           
 BooleanProperty XMinorGridP
           
 BooleanProperty XMinorTickP
           
 RadioProperty XScaleP
           
 RadioProperty XTickLabelModeP
           
 StringArrayProperty XTickLabelP
           
 RadioProperty XTickModeP
           
 DoubleVectorProperty XTickP
           
 RadioProperty YAxisLocationP
           
 ColorProperty YColorP
           
 RadioProperty YDirP
           
 BooleanProperty YGridP
           
 LineStyleProperty YGridStyleP
           
 TextObject yLabel
           
 RadioProperty YLimModeP
           
 DoubleVectorProperty YLimP
           
 BooleanProperty YMinorGridP
           
 BooleanProperty YMinorTickP
           
 RadioProperty YScaleP
           
 RadioProperty YTickLabelModeP
           
 StringArrayProperty YTickLabelP
           
 RadioProperty YTickModeP
           
 DoubleVectorProperty YTickP
           
 RadioProperty ZAxisLocationP
           
 ColorProperty ZColorP
           
 RadioProperty ZDirP
           
 BooleanProperty ZGridP
           
 LineStyleProperty ZGridStyleP
           
 TextObject zLabel
           
 RadioProperty ZLimModeP
           
 DoubleVectorProperty ZLimP
           
 BooleanProperty ZMinorGridP
           
 BooleanProperty ZMinorTickP
           
 RadioProperty ZScaleP
           
 RadioProperty ZTickLabelModeP
           
 StringArrayProperty ZTickLabelP
           
 RadioProperty ZTickModeP
           
 DoubleVectorProperty 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, mat, 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
AxesObject()
           
 
Method Summary
 void addLine(double[] _x, double[] _y)
          add a line to the current plot
 void addLine(double[] _x, double[] _y, java.lang.String color, java.lang.String lineStyle, java.lang.String marker)
           
 void addLines(double[] _x, double[][] _y, java.lang.String color, java.lang.String lineStyle, java.lang.String marker)
          add lines to the current plot
protected  void autoScale()
           
protected  void autoScaleX()
           
protected  void autoScaleY()
           
protected  void autoScaleZ()
           
protected  void autoTick()
           
protected  void autoTickLabel()
           
protected  void autoTickLabelX()
           
protected  void autoTickLabelY()
           
protected  void autoTickLabelZ()
           
protected  void autoTickX()
           
protected  void autoTickY()
           
protected  void autoTickZ()
           
 void clearAxes()
           
protected  void flushBackBuffer(java.awt.Graphics g, java.awt.Graphics backGC)
           
 java.awt.Component getComponent()
           
 java.awt.Dimension getMinimumSize()
           
 java.awt.Dimension getSize()
           
protected  java.awt.Graphics initBackBuffer(java.awt.Graphics g)
           
private  void newBackBuffer()
           
 void paint(java.awt.Graphics _g)
           
 void propertyChanged(Property p)
           
 void repaint()
           
 void setBackBuffer(boolean flag)
           
 void setHold(boolean _holdSwitch)
          Indicate wether calls to addLine() will add lines or clear the axes before adding new lines
 void setTitle(java.lang.String _title)
          add a title to the current axes
 void setXLabel(java.lang.String _xLabel)
          add text to the x-axis of this axes
 void setYLabel(java.lang.String _yLabel)
          add text to the y-axis of this axes
 void setZLabel(java.lang.String _zLabel)
          add text to the z-axis of this axes
 
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

dyFrame

protected int dyFrame

dxFrame

protected int dxFrame

title

protected TextObject title
title of this axis


backBuffer

protected java.awt.Image backBuffer
double-buffering data


backGC

protected java.awt.Graphics backGC

backSize

protected java.awt.Dimension backSize

backEnabled

protected boolean backEnabled

component

protected AxesObject.AxesComponent component
internal component


ActivePositionPropertyP

public RadioProperty ActivePositionPropertyP
axes properties


ALimP

public DoubleStructProperty ALimP

ALimModeP

public RadioProperty ALimModeP

AmbientLightColorP

public ColorProperty AmbientLightColorP

BoxP

public BooleanProperty BoxP

CameraPositionP

public DoubleVectorProperty CameraPositionP

CameraPositionModeP

public RadioProperty CameraPositionModeP

CameraTargetP

public DoubleVectorProperty CameraTargetP

CameraTargetModeP

public RadioProperty CameraTargetModeP

CameraUpVectorP

public DoubleVectorProperty CameraUpVectorP

CameraUpVectorModeP

public RadioProperty CameraUpVectorModeP

CameraViewAngleP

public DoubleProperty CameraViewAngleP

CameraViewAngleModeP

public RadioProperty CameraViewAngleModeP

ChildrenP

public HandleObjectListProperty ChildrenP

CLimP

public DoubleVectorProperty CLimP

CLimModeP

public RadioProperty CLimModeP

ColorP

public ColorProperty ColorP

ColorOrderP

public ColormapProperty ColorOrderP

CurrentPointP

public DoubleVectorProperty CurrentPointP

DataAspectRatioP

public DoubleVectorProperty DataAspectRatioP

DataAspectRatioModeP

public RadioProperty DataAspectRatioModeP

DrawModeP

public RadioProperty DrawModeP

FontAngleP

public RadioProperty FontAngleP

FontNameP

public StringProperty FontNameP

FontSizeP

public IntegerProperty FontSizeP

FontUnitsP

public RadioProperty FontUnitsP

FontWeightP

public RadioProperty FontWeightP

GridLineStyleP

public RadioProperty GridLineStyleP

LayerP

public RadioProperty LayerP

LineWidthP

public DoubleProperty LineWidthP

MinorGridLineStyleP

public RadioProperty MinorGridLineStyleP

OuterPositionP

public DoubleVectorProperty OuterPositionP

PlotBoxAspectRatioP

public DoubleVectorProperty PlotBoxAspectRatioP

PlotBoxAspectRatioModeP

public RadioProperty PlotBoxAspectRatioModeP

ProjectionP

public RadioProperty ProjectionP

TickDirP

public RadioProperty TickDirP

TickDirModeP

public RadioProperty TickDirModeP

TickLengthP

public DoubleVectorProperty TickLengthP

TightInsetP

public DoubleVectorProperty TightInsetP

TitleP

public StringProperty TitleP

XAxisLocationP

public RadioProperty XAxisLocationP

YAxisLocationP

public RadioProperty YAxisLocationP

ZAxisLocationP

public RadioProperty ZAxisLocationP

XColorP

public ColorProperty XColorP

YColorP

public ColorProperty YColorP

ZColorP

public ColorProperty ZColorP

XDirP

public RadioProperty XDirP

YDirP

public RadioProperty YDirP

ZDirP

public RadioProperty ZDirP

XGridP

public BooleanProperty XGridP

YGridP

public BooleanProperty YGridP

ZGridP

public BooleanProperty ZGridP

xLabel

public TextObject xLabel

yLabel

public TextObject yLabel

zLabel

public TextObject zLabel

XLimP

public DoubleVectorProperty XLimP

YLimP

public DoubleVectorProperty YLimP

ZLimP

public DoubleVectorProperty ZLimP

XLimModeP

public RadioProperty XLimModeP

YLimModeP

public RadioProperty YLimModeP

ZLimModeP

public RadioProperty ZLimModeP

XMinorGridP

public BooleanProperty XMinorGridP

YMinorGridP

public BooleanProperty YMinorGridP

ZMinorGridP

public BooleanProperty ZMinorGridP

XMinorTickP

public BooleanProperty XMinorTickP

YMinorTickP

public BooleanProperty YMinorTickP

ZMinorTickP

public BooleanProperty ZMinorTickP

XScaleP

public RadioProperty XScaleP

YScaleP

public RadioProperty YScaleP

ZScaleP

public RadioProperty ZScaleP

XTickP

public DoubleVectorProperty XTickP

YTickP

public DoubleVectorProperty YTickP

ZTickP

public DoubleVectorProperty ZTickP

XTickLabelP

public StringArrayProperty XTickLabelP

YTickLabelP

public StringArrayProperty YTickLabelP

ZTickLabelP

public StringArrayProperty ZTickLabelP

XTickModeP

public RadioProperty XTickModeP

YTickModeP

public RadioProperty YTickModeP

ZTickModeP

public RadioProperty ZTickModeP

XTickLabelModeP

public RadioProperty XTickLabelModeP

YTickLabelModeP

public RadioProperty YTickLabelModeP

ZTickLabelModeP

public RadioProperty ZTickLabelModeP

XGridStyleP

public LineStyleProperty XGridStyleP

YGridStyleP

public LineStyleProperty YGridStyleP

ZGridStyleP

public LineStyleProperty ZGridStyleP
Constructor Detail

AxesObject

public AxesObject()
Method Detail

getComponent

public java.awt.Component getComponent()

newBackBuffer

private void newBackBuffer()

initBackBuffer

protected java.awt.Graphics initBackBuffer(java.awt.Graphics g)

flushBackBuffer

protected void flushBackBuffer(java.awt.Graphics g,
                               java.awt.Graphics backGC)

addLine

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


addLine

public void addLine(double[] _x,
                    double[] _y,
                    java.lang.String color,
                    java.lang.String lineStyle,
                    java.lang.String marker)

addLines

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


setTitle

public void setTitle(java.lang.String _title)
add a title to the current axes


setXLabel

public void setXLabel(java.lang.String _xLabel)
add text to the x-axis of this axes


setYLabel

public void setYLabel(java.lang.String _yLabel)
add text to the y-axis of this axes


setZLabel

public void setZLabel(java.lang.String _zLabel)
add text to the z-axis of this axes


setHold

public void setHold(boolean _holdSwitch)
Indicate wether calls to addLine() will add lines or clear the axes before adding new lines


getMinimumSize

public java.awt.Dimension getMinimumSize()

getSize

public java.awt.Dimension getSize()

repaint

public void repaint()
Overrides:
repaint in class FigureObject

setBackBuffer

public void setBackBuffer(boolean flag)

autoScale

protected void autoScale()

autoScaleX

protected void autoScaleX()

autoScaleY

protected void autoScaleY()

autoScaleZ

protected void autoScaleZ()

autoTick

protected void autoTick()

autoTickX

protected void autoTickX()

autoTickY

protected void autoTickY()

autoTickZ

protected void autoTickZ()

autoTickLabel

protected void autoTickLabel()

autoTickLabelX

protected void autoTickLabelX()

autoTickLabelY

protected void autoTickLabelY()

autoTickLabelZ

protected void autoTickLabelZ()

paint

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

propertyChanged

public void propertyChanged(Property p)
Specified by:
propertyChanged in interface PropertyListener
Overrides:
propertyChanged in class FigureObject

clearAxes

public void clearAxes()

FOOTER

BOTTOM