|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
jass.utils.Plot
jass.utils.PlotGraph
public class PlotGraph
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
|
protected int |
graphHeight
|
protected int |
graphWidth
|
protected int |
topleft_x
|
protected int |
topleft_y
|
protected javax.swing.JFrame |
window
|
protected boolean |
windowExists
|
Fields inherited from class jass.utils.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)
|
|
PlotGraph(double[] xData,
double[] yData)
|
Method Summary | |
---|---|
void |
close()
|
void |
endProgram()
|
int |
getCloseChoice()
|
int |
getGraphHeight()
|
int |
getGraphWidth()
|
void |
paint(java.awt.Graphics g)
|
void |
plot()
|
void |
rescaleX(double xScaleFactor)
|
void |
rescaleY(double yScaleFactor)
|
void |
setCloseChoice(int choice)
|
void |
setGraphHeight(int graphHeight)
|
void |
setGraphWidth(int graphWidth)
|
void |
setLocation(int topleft_x,
int topleft_y)
|
Methods inherited from class jass.utils.Plot |
---|
axesScaleOffset, data, getDashlength, getDataFillValue, getFontSize, getLine, getNiPoints, getNoXoffset, getNoYoffset, getPoint, getPointsize, getXaxisLen, getXlow, getXlowFac, getXmax, getXmin, getYaxisLen, getYhigh, getYlowFac, getYmax, getYmin, graph, initialise, limits, minMax, offset, offsetString, printCheck, scale, selectionSort, 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, 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 |
---|
protected int graphWidth
protected int graphHeight
protected int closeChoice
protected int topleft_x
protected int topleft_y
protected javax.swing.JFrame window
protected boolean windowExists
Constructor Detail |
---|
public PlotGraph(double[][] data)
public PlotGraph(double[] xData, double[] yData)
Method Detail |
---|
public void rescaleY(double yScaleFactor)
public void rescaleX(double xScaleFactor)
public void setLocation(int topleft_x, int topleft_y)
setLocation
in class java.awt.Component
public int getGraphWidth()
public int getGraphHeight()
public void setGraphHeight(int graphHeight)
public void setGraphWidth(int graphWidth)
public int getCloseChoice()
public void setCloseChoice(int choice)
public void paint(java.awt.Graphics g)
paint
in class java.awt.Canvas
public void close()
public void plot()
public void endProgram()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |