jhplot
Class SHPlot

java.lang.Object
  extended by jhplot.GHPanel
      extended by jhplot.GHFrame
          extended by jhplot.HPlot
              extended by jhplot.SHPlot
All Implemented Interfaces:
java.awt.event.ComponentListener, java.io.Serializable, java.util.EventListener

public class SHPlot
extends HPlot

A class to create a 2D canvas with several plots. Unlike HPlot, it creates a singleton, i.e only one instance is allowed

See Also:
Serialized Form

Method Summary
static SHPlot getCanvas()
          Construct a HPlot canvas with a plot with the default size 600x400.
static SHPlot getCanvas(java.lang.String title)
          Construct a HPlot canvas with a plot with the default size 600x400.
static SHPlot getCanvas(java.lang.String title, int xsize, int ysize)
          Construct a HPlot canvas with a single plot.
static SHPlot getCanvas(java.lang.String title, int xsize, int ysize, int n1, int n2)
          Create HPlot canvas with several plots.
static void reloadCanvas()
          Reload the canvas by removing components
 
Methods inherited from class jhplot.HPlot
add, add, add, add, analF, axisLengthX, axisLengthY, clear, clear, clearAll, clearAllData, clearData, clearData, clearData, close, distroy, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, drawStatBox, drawTextBox, factories, fit, fitF, funcF, getAntiAlias, getAxesColor, getAxesRatio, getAxesRatioUse, getAxisArrow, getAxisPenTicWidth, getBackgColor, getBackgColorGraph, getBoxColor, getBoxFillColor, getBoxOffset, getData, getGraphSettings, getGraphSettings, getGridColor, getInnerColor, getJPlot, getJPlot, getLegendFont, getLegendPos, getLegendPosUse, getLegendSpacing, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxNumberOfSubticsLog, getMaxValue, getMinValue, getNumberOfTics, getPanelSize, getPenWidthAxis, getShadow, getSubTicLength, getSubTicNumber, getTicColor, getTicFont, getTicLength, getTicsMirror, getTicsRotate, histF, isAxisShown, isGridToFront, isMirrorAxisShown, isPrimitivesToFront, isTicLabelsShown, isTicsShown, numberLabels, numberPrimitives, printGraphSettings, printGraphSettings, quit, read, RefreshFrame, removeAxes, removeGraph, removeLabel, removeLabels, removeLabelsAll, removePrimitives, removePrimitives, removePrimitivesAll, resetStyle, resetStyleAll, setAntiAlias, setAntiAliasAll, setAutoRange, setAutoRange, setAutoRange, setAutoRangeAll, setAutoRangeAll, setAutoRangeAll, setAxesColor, setAxesRatio, setAxesRatioUse, setAxis, setAxisAll, setAxisArrow, setAxisMirror, setAxisPenTicWidth, setAxisX, setAxisY, setBackgColor, setBackgColorForAllGraph, setBackgColorGraph, setBox, setBoxColor, setBoxFillColor, setBoxOffset, setContour, setContourBar, setContourBins, setContourGray, setContourLevels, setDataPers, setGraph, setGrid, setGridAll, setGridColorAll, setGridToFront, setInnerColor, setLegend, setLegendFont, setLegendFont, setLegendPos, setLegendPos, setLegendPosUse, setLegendSpac, setLogScale, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxNumberOfSubticsLog, setMaxValue, setMinValue, setName, setName, setName, setNamePos, setNamePos, setNameX, setNameX, setNameX, setNameXpos, setNameXpos, setNameY, setNameY, setNameY, setNameYpos, setNameYpos, setNumberOfTics, setNumberOfTics, setNumberOfTics, setPanelSize, setPenWidthAxis, setPrimitivesToFront, setRange, setRange, setRangeAll, setRangeAll, setShadow, setSubTicLength, setSubTicLength, setSubTicNumber, setTicColor, setTicColor, setTicFont, setTicFont, setTicLabels, setTicLabels, setTicLength, setTicLength, setTics, setTics, setTicsMirror, setTicsMirror, setTicsRotate, showAllGraph, showGraph, sizeData, toX, toY, treeF, update, update, updateAll, updateGraphIfShowing, useNumberOfTics, viewHisto, visible, visible, write
 
Methods inherited from class jhplot.GHFrame
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame
 
Methods inherited from class jhplot.GHPanel
addComp, componentResized, export, exportDialog, exportImage, getCanvasPanel, getMarginBackground, getMarginPanelBottom, getMarginPanelCenter, getMarginPanelLeft, getMarginPanelRight, getMarginPanelTop, getMarginSizeBottom, getMarginSizeLeft, getMarginSizeRight, getMarginSizeTop, getSizeX, getSizeY, getTextBottom, getTextBottomColor, getTextBottomColorBack, getTextBottomFont, getTextLeft, getTextLeftColor, getTextLeftColorBack, getTextLeftFont, getTextPosBottomX, getTextPosBottomY, getTextPosLeftX, getTextPosLeftY, getTextPosRightX, getTextPosRightY, getTextPosTopX, getTextPosTopY, getTextRight, getTextRightColor, getTextRightColorBack, getTextRightFont, getTextRotationBottom, getTextRotationLeft, getTextRotationRight, getTextRotationTop, getTextTop, getTextTopColor, getTextTopColorBack, getTextTopFont, isBorderShown, printGraph, resetMargins, setGTitle, setGTitle, setGTitle, setGTitle, setGTitle, setMarginBackground, setMarginSizeBottom, setMarginSizeLeft, setMarginSizeRight, setMarginSizeTop, setSizePanel, setTextBottom, setTextBottom, setTextBottom, setTextBottom, setTextBottomColorBack, setTextLeft, setTextLeft, setTextLeft, setTextLeft, setTextLeftColorBack, setTextPosBottomX, setTextPosBottomY, setTextPosLeftX, setTextPosLeftY, setTextPosRightX, setTextPosRightY, setTextPosTopX, setTextPosTopY, setTextRight, setTextRight, setTextRight, setTextRight, setTextRightColorBack, setTextRotationBottom, setTextRotationLeft, setTextRotationRight, setTextRotationTop, setTextTop, setTextTop, setTextTop, setTextTopColorBack, showBorders
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCanvas

public static SHPlot getCanvas(java.lang.String title,
                               int xsize,
                               int ysize,
                               int n1,
                               int n2)
Create HPlot canvas with several plots. If canvas exits, it will be cleared.

Parameters:
title - Title
xsize - size in x direction
ysize - size in y direction
n1 - number of plots/graphs in x
n2 - number of plots/graphs in y

getCanvas

public static SHPlot getCanvas(java.lang.String title,
                               int xsize,
                               int ysize)
Construct a HPlot canvas with a single plot. If canvas exits, it will be cleared.

Parameters:
title - Title for the canvas
xs - size in x
ys - size in y

getCanvas

public static SHPlot getCanvas(java.lang.String title)
Construct a HPlot canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.

Parameters:
title - Title

getCanvas

public static SHPlot getCanvas()
Construct a HPlot canvas with a plot with the default size 600x400. If canvas exits, it will be cleared.


reloadCanvas

public static void reloadCanvas()
Reload the canvas by removing components



jHepWork 1.7 (C) Chekanov