|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Canvas jass.utils.Plot
public class Plot
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[] |
axisTicks
|
protected double[][] |
copy
|
protected int[] |
dashLength
|
protected double[][] |
data
|
protected static double |
dataFill
|
protected boolean[] |
errorBar
|
protected double[][] |
errors
|
protected double[][] |
errorsCopy
|
protected int |
fontSize
|
protected java.lang.String |
graphTitle
|
protected java.lang.String |
graphTitle2
|
protected int[] |
lineOpt
|
protected boolean[] |
minMaxOpt
|
protected int |
nCurves
|
protected int |
niPoints
|
protected int |
nmPoints
|
protected boolean |
noXoffset
|
protected boolean |
noXunits
|
protected boolean |
noYoffset
|
protected boolean |
noYunits
|
protected int[] |
nPoints
|
protected int |
npTypes
|
protected int[] |
pointOpt
|
protected int[] |
pointSize
|
protected boolean[] |
trimOpt
|
protected java.lang.String[] |
xAxisChar
|
protected java.lang.String |
xAxisLegend
|
protected double[] |
xAxisNo
|
protected java.lang.String |
xAxisUnits
|
protected int |
xBot
|
protected int |
xFac
|
protected double |
xHigh
|
protected int |
xLen
|
protected double |
xLow
|
protected double |
xLowFac
|
protected double |
xMax
|
protected double |
xMin
|
protected double |
xOffset
|
protected int |
xTicks
|
protected int |
xTop
|
protected boolean |
xZero
|
protected java.lang.String[] |
yAxisChar
|
protected java.lang.String |
yAxisLegend
|
protected double[] |
yAxisNo
|
protected java.lang.String |
yAxisUnits
|
protected int |
yBot
|
protected int |
yFac
|
protected double |
yHigh
|
protected int |
yLen
|
protected double |
yLow
|
protected double |
yLowFac
|
protected double |
yMax
|
protected double |
yMin
|
protected double |
yOffset
|
protected int |
yTicks
|
protected int |
yTop
|
protected boolean |
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 | |
---|---|
Plot(double[][] data)
|
|
Plot(double[] xdata,
double[] ydata)
|
Method Summary | |
---|---|
void |
axesScaleOffset()
|
static double[][] |
data(int n,
int m)
|
int[] |
getDashlength()
|
static double |
getDataFillValue()
|
int |
getFontSize()
|
int[] |
getLine()
|
int |
getNiPoints()
|
boolean |
getNoXoffset()
|
boolean |
getNoYoffset()
|
int[] |
getPoint()
|
int[] |
getPointsize()
|
int |
getXaxisLen()
|
int |
getXlow()
|
double |
getXlowFac()
|
double |
getXmax()
|
double |
getXmin()
|
int |
getYaxisLen()
|
int |
getYhigh()
|
double |
getYlowFac()
|
double |
getYmax()
|
double |
getYmin()
|
void |
graph(java.awt.Graphics g)
|
void |
initialise(double[][] cdata)
|
static void |
limits(double low,
double high,
double lowfac,
double[] limits)
|
void |
minMax()
|
static double |
offset(double low,
double high)
|
protected static java.lang.String |
offsetString(double offset)
|
boolean |
printCheck(boolean trim,
int xoldpoint,
int xnewpoint,
int yoldpoint,
int ynewpoint)
|
static int |
scale(double mmin,
double mmax)
|
static double[][] |
selectionSort(double[][] aa)
|
void |
setDashLength(int sdashLength)
|
void |
setDashLength(int[] dashLength)
|
static void |
setDataFillValue(double dataFill)
|
void |
setErrorBars(int nc,
double[] err)
|
void |
setFontSize(int fontSize)
|
void |
setGraphTitle(java.lang.String graphTitle)
|
void |
setGraphTitle2(java.lang.String graphTitle2)
|
void |
setLine(int slineOpt)
|
void |
setLine(int[] lineOpt)
|
void |
setMinMaxOpt(boolean[] minmax)
|
void |
setNiPoints(int niPoints)
|
void |
setNoOffset(boolean nooffset)
|
void |
setNoXoffset(boolean noXoffset)
|
void |
setNoYoffset(boolean noYoffset)
|
void |
setPoint(int spointOpt)
|
void |
setPoint(int[] pointOpt)
|
void |
setPointSize(int spointSize)
|
void |
setPointSize(int[] mpointSize)
|
void |
setTrimOpt(boolean[] trim)
|
void |
setXaxisLegend(java.lang.String xAxisLegend)
|
void |
setXaxisLen(int xLen)
|
void |
setXaxisUnitsName(java.lang.String xAxisUnits)
|
void |
setXlow(int xBot)
|
void |
setXlowFac(double xLowFac)
|
void |
setYaxisLegend(java.lang.String yAxisLegend)
|
void |
setYaxisLen(int yLen)
|
void |
setYaxisUnitsName(java.lang.String yAxisUnits)
|
void |
setYhigh(int yTop)
|
void |
setYlowFac(double yLowFac)
|
static int |
ticks(double low,
double high,
double[] tickval,
java.lang.String[] tickchar)
|
protected void |
update()
|
Methods inherited from class java.awt.Canvas |
---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy, paint, 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 |
---|
protected double[][] data
protected double[][] copy
protected int nCurves
protected int[] nPoints
protected int nmPoints
protected int niPoints
protected int[] pointOpt
protected int[] pointSize
protected int npTypes
protected boolean[] errorBar
protected double[][] errors
protected double[][] errorsCopy
protected int[] lineOpt
protected int[] dashLength
protected boolean[] minMaxOpt
protected boolean[] trimOpt
protected int fontSize
protected int xLen
protected int yLen
protected int xBot
protected int xTop
protected int yTop
protected int yBot
protected double xLow
protected double xHigh
protected double yLow
protected double yHigh
protected int xFac
protected int yFac
protected int xTicks
protected int yTicks
protected double xMin
protected double xMax
protected double yMin
protected double yMax
protected double xOffset
protected double yOffset
protected boolean noXoffset
protected boolean noYoffset
protected double xLowFac
protected double yLowFac
protected java.lang.String graphTitle
protected java.lang.String graphTitle2
protected java.lang.String xAxisLegend
protected java.lang.String xAxisUnits
protected java.lang.String yAxisLegend
protected java.lang.String yAxisUnits
protected boolean xZero
protected boolean yZero
protected boolean noXunits
protected boolean noYunits
protected double[] xAxisNo
protected double[] yAxisNo
protected java.lang.String[] xAxisChar
protected java.lang.String[] yAxisChar
protected int[] axisTicks
protected static double dataFill
Constructor Detail |
---|
public Plot(double[][] data)
public Plot(double[] xdata, double[] ydata)
Method Detail |
---|
public void initialise(double[][] cdata)
public static double[][] selectionSort(double[][] aa)
public static double[][] data(int n, int m)
public static void setDataFillValue(double dataFill)
public static double getDataFillValue()
public void setGraphTitle(java.lang.String graphTitle)
public void setGraphTitle2(java.lang.String graphTitle2)
public void setXaxisLegend(java.lang.String xAxisLegend)
public void setYaxisLegend(java.lang.String yAxisLegend)
public void setXaxisUnitsName(java.lang.String xAxisUnits)
public void setYaxisUnitsName(java.lang.String yAxisUnits)
public int getXaxisLen()
public int getYaxisLen()
public int getXlow()
public int getYhigh()
public int[] getPointsize()
public int[] getDashlength()
public double getXlowFac()
public double getYlowFac()
public double getXmin()
public double getXmax()
public double getYmin()
public double getYmax()
public int[] getLine()
public int[] getPoint()
public int getNiPoints()
public int getFontSize()
public void setXaxisLen(int xLen)
public void setYaxisLen(int yLen)
public void setXlow(int xBot)
public void setYhigh(int yTop)
public void setXlowFac(double xLowFac)
public void setYlowFac(double yLowFac)
public void setNoXoffset(boolean noXoffset)
public void setNoYoffset(boolean noYoffset)
public void setNoOffset(boolean nooffset)
public boolean getNoXoffset()
public boolean getNoYoffset()
protected void update()
public void setLine(int[] lineOpt)
public void setLine(int slineOpt)
public void setDashLength(int[] dashLength)
public void setDashLength(int sdashLength)
public void setPoint(int[] pointOpt)
public void setPoint(int spointOpt)
public void setPointSize(int[] mpointSize)
public void setPointSize(int spointSize)
public void setErrorBars(int nc, double[] err)
public void setNiPoints(int niPoints)
public void setFontSize(int fontSize)
public void setTrimOpt(boolean[] trim)
public void setMinMaxOpt(boolean[] minmax)
public static int scale(double mmin, double mmax)
public static void limits(double low, double high, double lowfac, double[] limits)
public static double offset(double low, double high)
public void axesScaleOffset()
public static int ticks(double low, double high, double[] tickval, java.lang.String[] tickchar)
public void minMax()
protected static java.lang.String offsetString(double offset)
public boolean printCheck(boolean trim, int xoldpoint, int xnewpoint, int yoldpoint, int ynewpoint)
public void graph(java.awt.Graphics g)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |