jhplot
Class SHPlotJa

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by jhplot.HPlotJa
                  extended by jhplot.SHPlotJa
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class SHPlotJa
extends HPlotJa

A class to create a canvas with several plots and Feynman diagrams. Unlike HPlotJa, it creates a singleton, i.e only one instance is allowed

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class jhplot.HPlotJa
Exponent, JAVA_CLASSPATH, JAVA_HOME, JAVA_RUNTIME_VERSION, JAVA_VERSION, Key, LabelX, LabelY, OS_ARCH, OS_NAME, OS_VERSION, PREFS_FILENAME, StatBox, Title, USER_HOME, USER_NAME, VERSION, VERSION_NUMBER, WEB_SITE
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
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
 
Method Summary
 void doc()
          Show online documentation.
static SHPlotJa getCanvas()
          Construct a HPlotJa canvas with a plot with the default size 600x400.
static SHPlotJa getCanvas(String title)
          Construct a HPlot canvas with a plot with the default size 600x400.
static SHPlotJa getCanvas(String title, int xsize, int ysize)
          Construct a HPlot canvas with a single plot.
static SHPlotJa getCanvas(String title, int xsize, int ysize, int n1, int n2)
          Create HPlot canvas with several plots.
static SHPlotJa getCanvas(String title, int xsize, int ysize, int n1, int n2, boolean setaxes)
          Create HPlotJa canvas with several plots.
static void reloadCanvas()
          Reload the canvas by removing components
 
Methods inherited from class jhplot.HPlotJa
add, addKey, addStatBox, addToBack, addToFront, analF, buildPads, cd, clearAll, clearAllData, clearData, clearData, close, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, export, factories, fit, fitF, funcF, getArrayList, getAxisLabel, getCdX, getCdY, getContourBinsX, getContourBinsY, getContourLevels, getCurDir, getData, getGTitle, getJaAxes, getKeyTextSpace, getLabelX, getLabelY, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginX, getMarginY, getNtotX, getNtotY, getPad, getPad, getPadHeight, getPadPositionX, getPadPositionY, getPadWidth, getPreferences, getSizeX, getSizeY, getStatistics, getStatistics, getSymbol, histF, isContour, isContourBar, isShowStatBox, main, removeAxes, removeObject, setAntiAlias, setAutoRange, setAutoRange, setAutoRange, setAutoRangeAll, setAutoRangeAll, setAutoRangeAll, setAxesFrame, setAxisAll, setContour, setContourBar, setContourBins, setContourLevels, setCurDir, setGridAll, setGTitle, setGTitle, setGTitle, setGTitle, setGTitle, setKeyTextSpace, setLabelShift, setLabelX, setLabelY, setLabelY, setLegendFont, setLegendFont, setLocationAtCenter, setLogScale, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarginX, setMarginY, setNameX, setNameX, setNameX, setNameY, setNameY, setNameY, setPad, setPad, setPad, setPadLocation, setPadSize, setRange, setRangeX, setRangeX, setRangeY, setRangeY, setShowMirror, setShowStatBox, setStatBox, setTicFont, setTicksLabels, showAxis, showBrowser, showEditor, showEditor, showKey, treeF, update, visible, visible
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getCanvas

public static SHPlotJa getCanvas(String title,
                                 int xsize,
                                 int ysize,
                                 int n1,
                                 int n2,
                                 boolean setaxes)
Create HPlotJa 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
setaxes - set or not the graph

getCanvas

public static SHPlotJa getCanvas(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 SHPlotJa getCanvas(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 SHPlotJa getCanvas(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 SHPlotJa getCanvas()
Construct a HPlotJa 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


doc

public void doc()
Show online documentation.

Overrides:
doc in class HPlotJa


jHepWork 3.0 ©