jmathlib.core.graphics
Class FigureObject

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
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:
AxesObject

public class FigureObject
extends GraphicalObject
implements java.awt.event.WindowListener, java.awt.print.Printable, java.awt.event.ActionListener, PropertyListener

created and holds the axes of a plot, there can be multiple axes in one plot

See Also:
Serialized Form

Nested Class Summary
private  class FigureObject.FigurePanel
           
 
Field Summary
 DoubleVectorProperty AlphamapP
           
 BooleanProperty BeingDeletedP
           
 FunctionalHandleProperty CloseRequestFcnP
           
 ColormapProperty ColormapP
           
 ColorProperty ColorP
           
 FunctionalHandleProperty CreateFcnP
           
private  int currentAxes
          The current axes where all plot commands will be directed to
 StringProperty CurrentCharacterP
           
 FunctionalHandleProperty DeleteFcnP
           
 BooleanProperty DockControlsP
           
 BooleanProperty DoubleBufferP
           
private  int dxFrame
           
private  int dyFrame
           
private  java.awt.Frame fig
           
private  AxesObject[][] figureElements
          An array of the axes
private  int figureNo
          The number of this figure
 StringProperty FileNameP
           
 ColormapProperty FixedColorsP
           
private  GraphicsManager gM
          A pointer to the graphics manager
private  int gridX
          number of tiles in horizontal direction
private  int gridY
          number of tiles in vertical direction
 BooleanProperty IntegerHandleP
           
 BooleanProperty InvertHardcopyP
           
 FunctionalHandleProperty KeyPressFcnP
           
 FunctionalHandleProperty KeyReleaseFcnP
           
(package private)  java.awt.MenuBar mbar
           
 RadioProperty MenuBarP
           
 DoubleProperty MinColormapP
           
 StringProperty NameP
           
 RadioProperty NextPlotP
           
 BooleanProperty NumberTitleP
           
private  FigureObject.FigurePanel p
           
 RadioProperty PaperOrientationP
           
 RadioProperty PaperPositionModeP
           
 DoubleVectorProperty PaperPositionP
           
 DoubleVectorProperty PaperSizeP
           
 StringProperty PaperTypeP
           
 RadioProperty PaperUnitsP
           
 RadioProperty PointerP
           
 DoubleVectorProperty PointerShapeCDataP
           
 DoubleVectorProperty PointerShapeHotSpotP
           
 DoubleVectorProperty PositionP
           
 RadioProperty RendererModeP
           
 RadioProperty RendererP
           
 FunctionalHandleProperty ResizeFcnP
           
 BooleanProperty ResizeP
           
 RadioProperty SelectionTypeP
           
 BooleanProperty ShareColorsP
           
 RadioProperty ToolBarP
           
 UnitsProperty UnitsP
           
 RadioProperty VisualModeP
           
 FunctionalHandleProperty WindowButtonDownFcnP
           
 FunctionalHandleProperty WindowButtonMotionFcnP
           
 FunctionalHandleProperty WindowButtonUpFcnP
           
 FunctionalHandleProperty WindowScrollWheelFcnP
           
 RadioProperty WindowStyleP
           
 RadioProperty WVisualModeP
           
 
Fields inherited from class jmathlib.core.graphics.GraphicalObject
ax_xmax, ax_xmin, ax_ymax, ax_ymin, ax_zmax, ax_zmin, BusyActionP, ButtonDownFcnP, ChildrenP, 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
FigureObject()
           
FigureObject(int _figureNo)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 void clearFigure()
           
 void close()
           
 void close(boolean notify)
           
 void convertCurrentAxesTo3DAxes()
           
private  void doPrint()
           
 AxesObject getCurrentAxes()
           
 PolarAxesObject getCurrentPolarAxes()
           
 int getFigureNumber()
           
private  void initMenuBar()
          set up menue for figure window
 int print(java.awt.Graphics g, java.awt.print.PageFormat pf, int page)
          method for printing the graphics window to an external printer
 void propertyChanged(Property p)
           
 void repaint()
           
 void setGraphicsManager(GraphicsManager _gM)
           
 void setSubPlot(int _gridY, int _gridX, int _currentAxes)
          devide the current figure into n*m tiles
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
           
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class jmathlib.core.graphics.GraphicalObject
getXMax, getXMin, getYMax, getYMin, getZMax, getZMin, paint, 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

figureNo

private int figureNo
The number of this figure


gridX

private int gridX
number of tiles in horizontal direction


gridY

private int gridY
number of tiles in vertical direction


figureElements

private AxesObject[][] figureElements
An array of the axes


currentAxes

private int currentAxes
The current axes where all plot commands will be directed to


gM

private GraphicsManager gM
A pointer to the graphics manager


dyFrame

private int dyFrame

dxFrame

private int dxFrame

fig

private java.awt.Frame fig

p

private FigureObject.FigurePanel p

mbar

java.awt.MenuBar mbar

AlphamapP

public DoubleVectorProperty AlphamapP

BeingDeletedP

public BooleanProperty BeingDeletedP

CloseRequestFcnP

public FunctionalHandleProperty CloseRequestFcnP

ColorP

public ColorProperty ColorP

ColormapP

public ColormapProperty ColormapP

CreateFcnP

public FunctionalHandleProperty CreateFcnP

CurrentCharacterP

public StringProperty CurrentCharacterP

DeleteFcnP

public FunctionalHandleProperty DeleteFcnP

DockControlsP

public BooleanProperty DockControlsP

DoubleBufferP

public BooleanProperty DoubleBufferP

FileNameP

public StringProperty FileNameP

FixedColorsP

public ColormapProperty FixedColorsP

IntegerHandleP

public BooleanProperty IntegerHandleP

InvertHardcopyP

public BooleanProperty InvertHardcopyP

KeyPressFcnP

public FunctionalHandleProperty KeyPressFcnP

KeyReleaseFcnP

public FunctionalHandleProperty KeyReleaseFcnP

MenuBarP

public RadioProperty MenuBarP

MinColormapP

public DoubleProperty MinColormapP

NameP

public StringProperty NameP

NextPlotP

public RadioProperty NextPlotP

NumberTitleP

public BooleanProperty NumberTitleP

PaperOrientationP

public RadioProperty PaperOrientationP

PaperPositionP

public DoubleVectorProperty PaperPositionP

PaperPositionModeP

public RadioProperty PaperPositionModeP

PaperSizeP

public DoubleVectorProperty PaperSizeP

PaperTypeP

public StringProperty PaperTypeP

PaperUnitsP

public RadioProperty PaperUnitsP

PointerP

public RadioProperty PointerP

PointerShapeCDataP

public DoubleVectorProperty PointerShapeCDataP

PointerShapeHotSpotP

public DoubleVectorProperty PointerShapeHotSpotP

PositionP

public DoubleVectorProperty PositionP

RendererP

public RadioProperty RendererP

RendererModeP

public RadioProperty RendererModeP

ResizeP

public BooleanProperty ResizeP

ResizeFcnP

public FunctionalHandleProperty ResizeFcnP

SelectionTypeP

public RadioProperty SelectionTypeP

ShareColorsP

public BooleanProperty ShareColorsP

ToolBarP

public RadioProperty ToolBarP

UnitsP

public UnitsProperty UnitsP

WindowButtonDownFcnP

public FunctionalHandleProperty WindowButtonDownFcnP

WindowButtonMotionFcnP

public FunctionalHandleProperty WindowButtonMotionFcnP

WindowButtonUpFcnP

public FunctionalHandleProperty WindowButtonUpFcnP

WindowScrollWheelFcnP

public FunctionalHandleProperty WindowScrollWheelFcnP

WindowStyleP

public RadioProperty WindowStyleP

WVisualModeP

public RadioProperty WVisualModeP

VisualModeP

public RadioProperty VisualModeP
Constructor Detail

FigureObject

public FigureObject()

FigureObject

public FigureObject(int _figureNo)
Method Detail

initMenuBar

private void initMenuBar()
set up menue for figure window


getCurrentAxes

public AxesObject getCurrentAxes()

getCurrentPolarAxes

public PolarAxesObject getCurrentPolarAxes()

convertCurrentAxesTo3DAxes

public void convertCurrentAxesTo3DAxes()

getFigureNumber

public int getFigureNumber()

setSubPlot

public void setSubPlot(int _gridY,
                       int _gridX,
                       int _currentAxes)
devide the current figure into n*m tiles


clearFigure

public void clearFigure()

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pf,
                 int page)
          throws java.awt.print.PrinterException
method for printing the graphics window to an external printer

Specified by:
print in interface java.awt.print.Printable
Throws:
java.awt.print.PrinterException

close

public void close()

close

public void close(boolean notify)

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Specified by:
windowClosing in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

setGraphicsManager

public void setGraphicsManager(GraphicsManager _gM)

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

doPrint

private void doPrint()

repaint

public void repaint()
Overrides:
repaint in class GraphicalObject

propertyChanged

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

FOOTER

BOTTOM