jhplot
Class SHPlot
- java.lang.Object
-
- jhplot.gui.GHPanel
-
- jhplot.gui.GHFrame
-
- jhplot.HPlot
-
- 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
doc()
Show online documentation.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, add, analF, axisLengthX, axisLengthY, clear, clear, clearAll, clearAllData, clearAllLabels, clearData, clearData, clearData, clearLabels, clearLabels, close, distroy, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, drawStatBox, drawStatBox, 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, resizePad, resizePad, setAntiAlias, setAntiAliasAll, setAttResizable, setAttResizableAll, 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, setGraphSettings, setGrid, 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, setNumberOfTicsFixed, setNumberOfTicsFixed, setPanelSize, setPenWidthAxis, setPrimitivesToFront, setRange, setRange, setRangeAll, setRangeAll, setRangeX, setRangeY, 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, visible, write
-
Methods inherited from class jhplot.gui.GHFrame
addGraph, cd, componentHidden, componentMoved, componentShown, getCdX, getCdY, getFrame, getHTMLUrl, getNtotX, getNtotY, setPlotsNum, updateFrame
-
Methods inherited from class jhplot.gui.GHPanel
addComp, componentResized, convertSVG, convertSVG, disableDoubleBuffering, enableDoubleBuffering, export, 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
-
-
-
-
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
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- 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 canvasxs
- size in xys
- 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
-
-
DMelt 3.0 © DataMelt by jWork.ORG