jhplot
Class SJaPlot

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by jhplot.JaPlot
                  extended by jhplot.SJaPlot
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class SJaPlot
extends JaPlot

A class to create a canvas with several plots and Feynman diagrams. Unlike JaPlot, 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
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
 
Fields inherited from class jhplot.JaPlot
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 SJaPlot getCanvas()
          Construct a JaPlot canvas with a plot with the default size 600x400.
static SJaPlot getCanvas(java.lang.String title)
          Construct a HPlot canvas with a plot with the default size 600x400.
static SJaPlot getCanvas(java.lang.String title, int xsize, int ysize)
          Construct a HPlot canvas with a single plot.
static SJaPlot getCanvas(java.lang.String title, int xsize, int ysize, int n1, int n2)
          Create HPlot canvas with several plots.
static SJaPlot getCanvas(java.lang.String title, int xsize, int ysize, int n1, int n2, boolean setaxes)
          Create JaPlot canvas with several plots.
static void reloadCanvas()
          Reload the canvas by removing components
 
Methods inherited from class jhplot.JaPlot
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, export, factories, fit, fitF, funcF, getArrayList, getCdX, getCdY, getCurDir, getData, getJaAxes, getKeyTextSpace, getLabelX, getLabelXshift, getLabelY, getLabelYshift, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginX, getMarginY, getNtotX, getNtotY, getPad, getPad, getPreferences, getSizeX, getSizeY, getStatistics, getStatistics, getSymbol, histF, isShowStatBox, main, removeAxes, removeObject, setAntiAlias, setAutoRange, setAutoRange, setAutoRange, setAutoRangeAll, setAutoRangeAll, setAutoRangeAll, setAxesFrame, setAxisAll, setCurDir, setGridAll, setGTitle, setGTitle, setGTitle, setGTitle, setKeyTextSpace, setLabelX, setLabelXshift, setLabelY, setLabelY, setLabelYshift, setLegendFont, setLegendFont, setLocationAtCenter, setLogScale, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMarginX, setMarginY, setNameX, setNameX, setNameX, setNameY, setNameY, setNameY, setRange, setRangeX, setRangeX, setRangeY, setRangeY, setShowStatBox, setStatBox, setTicFont, 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 SJaPlot getCanvas(java.lang.String title,
                                int xsize,
                                int ysize,
                                int n1,
                                int n2,
                                boolean setaxes)
Create JaPlot 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 SJaPlot 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 SJaPlot 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 SJaPlot 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 SJaPlot getCanvas()
Construct a JaPlot 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 JaPlot


jHepWork 2.0 (C) S.Chekanov