org.jscience.engineering.control.gui
Class PlotGraph

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Canvas
          extended by org.jscience.engineering.control.gui.Plot
              extended by org.jscience.engineering.control.gui.PlotGraph
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class PlotGraph
extends Plot

DOCUMENT ME!

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  int closeChoice
          DOCUMENT ME!
protected  int graphHeight
          DOCUMENT ME!
protected  int graphWidth
          DOCUMENT ME!
protected  javax.swing.JFrame window
          DOCUMENT ME!
 
Fields inherited from class org.jscience.engineering.control.gui.Plot
axisTicks, copy, dashLength, data, dataFill, errorBar, errors, errorsCopy, fontSize, graphTitle, graphTitle2, lineOpt, minMaxOpt, nCurves, niPoints, nmPoints, noXoffset, noXunits, noYoffset, noYunits, nPoints, npTypes, pointOpt, pointSize, trimOpt, xAxisChar, xAxisLegend, xAxisNo, xAxisUnits, xBot, xFac, xHigh, xLen, xLow, xLowFac, xMax, xMin, xOffset, xTicks, xTop, xZero, yAxisChar, yAxisLegend, yAxisNo, yAxisUnits, yBot, yFac, yHigh, yLen, yLow, yLowFac, yMax, yMin, yOffset, yTicks, yTop, yZero
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
PlotGraph(double[][] data)
          Creates a new PlotGraph object.
PlotGraph(double[] xData, double[] yData)
          Creates a new PlotGraph object.
 
Method Summary
 void endProgram()
          DOCUMENT ME!
 int getCloseChoice()
          DOCUMENT ME!
 int getGraphHeight()
          DOCUMENT ME!
 int getGraphWidth()
          DOCUMENT ME!
 void paint(java.awt.Graphics g)
          DOCUMENT ME!
 void plot()
          DOCUMENT ME!
 void rescaleX(double xScaleFactor)
          DOCUMENT ME!
 void rescaleY(double yScaleFactor)
          DOCUMENT ME!
 void setCloseChoice(int choice)
          DOCUMENT ME!
 void setGraphHeight(int graphHeight)
          DOCUMENT ME!
 void setGraphWidth(int graphWidth)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.engineering.control.gui.Plot
axesScaleOffset, data, getDashlength, getDataFillValue, getFontSize, getLine, getNiPoints, getNoXoffset, getNoYoffset, getPoint, getPointsize, getXaxisLen, getXlow, getXlowFac, getXmax, getXmin, getYaxisLen, getYhigh, getYlowFac, getYmax, getYmin, graph, limits, minMax, offset, offsetString, printCheck, scale, setDashLength, setDashLength, setDataFillValue, setErrorBars, setFontSize, setGraphTitle, setGraphTitle2, setLine, setLine, setMinMaxOpt, setNiPoints, setNoOffset, setNoXoffset, setNoYoffset, setPoint, setPoint, setPointSize, setPointSize, setTrimOpt, setXaxisLegend, setXaxisLen, setXaxisUnitsName, setXlow, setXlowFac, setYaxisLegend, setYaxisLen, setYaxisUnitsName, setYhigh, setYlowFac, ticks, update
 
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, update
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

graphWidth

protected int graphWidth
DOCUMENT ME!


graphHeight

protected int graphHeight
DOCUMENT ME!


closeChoice

protected int closeChoice
DOCUMENT ME!


window

protected javax.swing.JFrame window
DOCUMENT ME!

Constructor Detail

PlotGraph

public PlotGraph(double[][] data)
Creates a new PlotGraph object.

Parameters:
data - DOCUMENT ME!

PlotGraph

public PlotGraph(double[] xData,
                 double[] yData)
Creates a new PlotGraph object.

Parameters:
xData - DOCUMENT ME!
yData - DOCUMENT ME!
Method Detail

rescaleY

public void rescaleY(double yScaleFactor)
DOCUMENT ME!

Parameters:
yScaleFactor - DOCUMENT ME!

rescaleX

public void rescaleX(double xScaleFactor)
DOCUMENT ME!

Parameters:
xScaleFactor - DOCUMENT ME!

getGraphWidth

public int getGraphWidth()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getGraphHeight

public int getGraphHeight()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setGraphHeight

public void setGraphHeight(int graphHeight)
DOCUMENT ME!

Parameters:
graphHeight - DOCUMENT ME!

setGraphWidth

public void setGraphWidth(int graphWidth)
DOCUMENT ME!

Parameters:
graphWidth - DOCUMENT ME!

getCloseChoice

public int getCloseChoice()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setCloseChoice

public void setCloseChoice(int choice)
DOCUMENT ME!

Parameters:
choice - DOCUMENT ME!

paint

public void paint(java.awt.Graphics g)
DOCUMENT ME!

Overrides:
paint in class java.awt.Canvas
Parameters:
g - DOCUMENT ME!

plot

public void plot()
DOCUMENT ME!


endProgram

public void endProgram()
DOCUMENT ME!