|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
jhplot.JaPlot
public class JaPlot
A canvas to display all graphical objects including Feynman diagrams. Can be used for drawing Feynman diagrams using JaxoDraw, H1D, P1D and H2D objects.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Field Summary | |
---|---|
static int |
Exponent
|
static java.lang.String |
JAVA_CLASSPATH
The current Java class path. |
static java.lang.String |
JAVA_HOME
The directory where Java is installed on the current machine. |
static java.lang.String |
JAVA_RUNTIME_VERSION
The current Java runtime version. |
static java.lang.String |
JAVA_VERSION
The current Java version. |
static int |
Key
|
static int |
LabelX
|
static int |
LabelY
|
static java.lang.String |
OS_ARCH
The architecture of the current operating system. |
static java.lang.String |
OS_NAME
The name of the current operating system. |
static java.lang.String |
OS_VERSION
The version of the current operating system. |
static java.lang.String |
PREFS_FILENAME
The file where user-selected preferences will be stored. |
static int |
StatBox
|
static int |
Title
|
static java.lang.String |
USER_HOME
The current user's home directory. |
static java.lang.String |
USER_NAME
The current user. |
static java.lang.String |
VERSION
The current version of japlot.jaxodraw. |
static java.lang.String |
VERSION_NUMBER
The version number of this release of japlot.jaxodraw. |
static java.lang.String |
WEB_SITE
The japlot.jaxodraw 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 |
Constructor Summary | |
---|---|
JaPlot()
Default constructor |
|
JaPlot(java.lang.String title)
Construct a japlot.jaxodraw canvas with a plot with the default parameters 600 by 400, and 10% space for the global title |
|
JaPlot(java.lang.String title,
int n1,
int n2)
Construct a japlot.jaxodraw with a single plot/graph. |
|
JaPlot(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2)
Create JaPlot canvas with several pads and axes. |
|
JaPlot(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2,
boolean setgraph)
Create JaPlot canvas with several pads. |
Method Summary | |
---|---|
void |
add(JaObject ob)
Add an object to the frame |
void |
addKey(jplot.DataArray data,
int padx,
int pady)
|
void |
addStatBox(int padx,
int pady)
|
void |
addToBack(JaObject ob)
Add an object to background. |
void |
addToFront(JaObject ob)
Add an object to foreground. |
hep.aida.IAnalysisFactory |
analF()
Return IAnalysisFactory associated with the plot |
void |
buildPads(int n1,
int n2)
Build axes frames and show them. |
void |
cd(int cols,
int rows)
Navigate to a selected plot. |
void |
clearAll()
Clear the canvas from all objects |
void |
clearAllData()
Clear all data from all graphs. |
void |
clearData()
Clear the axis frame from the data for the current pad. |
void |
clearData(int padx,
int pady)
Clear the axis frame from the data |
void |
close()
Close the canvas (and dispose all components). |
void |
draw(jplot.DataArray inputDA,
java.lang.String title)
Draw data represented by DataArray on the current pad. |
void |
draw(F1D f1)
Draw an one-dimensional function on the current pad. |
void |
draw(F1D[] f)
Draw array of F1D holders |
void |
draw(F1D f1,
int padx,
int pady)
Draw an one-dimensional function on the current pad. |
void |
draw(H1D h1)
Draw H1D histogram on the current pad. |
void |
draw(H1D h1,
int padx,
int pady)
Draw H1D histogram on pad X and pad Y |
void |
draw(H2D h2d)
Draw H2D histogram on the current pad. |
void |
draw(H2D h2,
int padx,
int pady)
Draw 2D histogram on pads given by X and Y |
void |
draw(JaObject jo)
Draw JaObject. |
void |
draw(P1D p1d)
Draw H2D histogram on the current pad. |
void |
draw(P1D[] d)
Draw array of P1D holders |
void |
draw(P1D p1d,
int padx,
int pady)
Draw P1D object on the pad |
void |
export(java.lang.String file)
Fast export of the canvas to an image file (depends on the extension, i.e. |
void |
factories()
Create various JAIDA factories: IAnalysisFactory, ITree, IFitFactory, IFunctionFactory |
int |
fit(H1D h1,
java.lang.String predefFunc,
java.lang.String method)
Fit 1D histogram with the function F1D |
hep.aida.IFitFactory |
fitF()
Return FitFactory associated with the plot |
hep.aida.IFunctionFactory |
funcF()
Return FunctionFactory associated with the plot |
java.util.ArrayList |
getArrayList()
Get list of all objects on the frame. |
int |
getCdX()
Get location of the graph in the main canvas in X |
int |
getCdY()
Get location of the graph on the main canvas in Y |
static java.lang.String |
getCurDir()
Returns the current working directory. |
java.util.Vector<jplot.DataArray> |
getData()
Get the vector which keeps all the data |
JaAxes |
getJaAxes()
Get the current JaAxes frame |
double |
getKeyTextSpace()
Get current space between the key symbol and the text for legends |
JaText[][] |
getLabelX()
Get labels on X |
double |
getLabelXshift()
Get distance between X axis and label |
JaText[][] |
getLabelY()
Get label on Y |
double |
getLabelYshift()
Distance between an axis and a Y label |
double |
getMarginBottom()
Get size of bottom margin |
double |
getMarginLeft()
Get margin from left side |
double |
getMarginRight()
Get margin from right |
double |
getMarginTop()
Get the size of the top margin |
double |
getMarginX()
Get margin in X between pads |
double |
getMarginY()
Get space between any 2 plots in Y |
int |
getNtotX()
Get the total number of graphs in X |
int |
getNtotY()
Get the total number of the graphs in Y |
JaAxes |
getPad()
Get current pad |
JaAxes |
getPad(int n1,
int n2)
Get pad characterised by n1 and n2 |
static void |
getPreferences()
Checks whether preferences have been saved from an earlier session and if yes, imports them. |
int |
getSizeX()
get X size |
int |
getSizeY()
get Y size |
java.lang.String[] |
getStatistics(H1D h1)
Get statistics in form of strings |
java.lang.String[] |
getStatistics(P1D h1)
Get strings representing the statistics for the given object |
static int |
getSymbol(jplot.DataArray d)
|
hep.aida.IHistogramFactory |
histF()
Return IHistogramFactory associated with the plot |
boolean |
isShowStatBox()
Is stat box is shown on the current pad? |
static void |
main(java.lang.String[] args)
The main method of japlot.jaxodraw: determines system properties, preferences and command line arguments, before bringing up the graphical user interface. |
void |
removeAxes()
remove X and Y axes, tics, axis labels on the current plot. |
void |
removeObject(int type,
int padx,
int pady)
Remove a particular object |
void |
setAntiAlias(boolean setit)
Set antialiasing for the graphics of the current plot |
void |
setAutoRange()
Set autorange in X and Y at the same time for the current plot |
void |
setAutoRange(boolean b)
Set autorange in X and Y at the same time |
void |
setAutoRange(int axis,
boolean b)
Sets true or false to use automatic scaling for the current plot. |
void |
setAutoRangeAll()
Set autorange in X and Y at the same time for all plots |
void |
setAutoRangeAll(boolean b)
Set auto-range in X and Y at the same time for all plots |
void |
setAutoRangeAll(int axis,
boolean b)
Sets true or false to use automatic scaling for all plots. |
void |
setAxesFrame(int n1,
int n2)
Set axes frames or pads. |
void |
setAxisAll(boolean show)
Sets whether all axis lines will be drawn or not. |
static void |
setCurDir(java.lang.String newDir)
Sets the current working directory. |
void |
setGridAll(int axis,
boolean b)
Sets or not the grid lines for all plots on the same canvas |
void |
setGTitle(java.lang.String sname)
Set the global title with default attributes. |
void |
setGTitle(java.lang.String sname,
java.awt.Color color)
Set the global title with default attributes. |
void |
setGTitle(java.lang.String sname,
java.awt.Font f)
Sets the global title using black color. |
void |
setGTitle(java.lang.String sname,
java.awt.Font f,
java.awt.Color c)
Sets the global title |
void |
setKeyTextSpace(double space)
Set space between the key symbol and the text in a legend. |
void |
setLabelX(java.lang.String label,
int n1,
int n2)
Sets a label for X at the default location |
void |
setLabelXshift(double labelXshift)
Distance between an axis and a X label |
void |
setLabelY(JaText[][] labelY)
Set labels on Y |
void |
setLabelY(java.lang.String label,
int n1,
int n2)
|
void |
setLabelYshift(double labelYshift)
Distance between an axis and a Y label |
void |
setLegendFont(java.awt.Font font)
Sets the actual font of the legend. |
void |
setLegendFont(java.lang.String name)
Set the label font, which is used for axis labels and legend labels. |
void |
setLocationAtCenter(JaText text)
Sets the location of a text object at the center of the canvas |
void |
setLogScale(int axis,
boolean b)
Sets true or false to plot on a log scale. |
void |
setMarginBottom(double marginBottom)
Margin from bottom. |
void |
setMarginLeft(double marginLeft)
Margin from left |
void |
setMarginRight(double marginRight)
Set margin from right |
void |
setMarginTop(double marginTop)
Margin from top |
void |
setMarginX(double marginX)
Margin in X between pads |
void |
setMarginY(double marginY)
Margin in Y between pads |
void |
setNameX(java.lang.String s)
Sets the name for X axis. |
void |
setNameX(java.lang.String s,
java.awt.Font f)
Sets the name for X axis. |
void |
setNameX(java.lang.String s,
java.awt.Font f,
java.awt.Color c)
Set the label for the axis in X |
void |
setNameY(java.lang.String s)
Sets the name for Y axis. |
void |
setNameY(java.lang.String s,
java.awt.Font f)
Sets the name for Y axis. |
void |
setNameY(java.lang.String s,
java.awt.Font f,
java.awt.Color c)
Set the label for the axis in Y |
void |
setRange(double minX,
double maxX,
double minY,
double maxY)
Set ranges on X and Y on the current pad. |
void |
setRangeX(double min,
double max)
Set range on X. |
void |
setRangeX(double min,
double max,
int padx,
int pady)
Set X range on pad defined by x and y on the canvas. |
void |
setRangeY(double min,
double max)
Set range on Y on the current pad. |
void |
setRangeY(double min,
double max,
int padx,
int pady)
Set Y range on pad defined by x and y on the canvas. |
void |
setShowStatBox(boolean showStatBox)
Show a box with statistics (only for last plotted object) on the current pad |
void |
setStatBox(java.lang.String[] label,
int n1,
int n2)
|
void |
setTicFont(java.awt.Font font)
Sets the font used by the labels drawn at each tick. |
void |
showAxis(int axis)
Show a particular axis (no mirror) |
void |
showBrowser(java.lang.String file)
Show a browser with objects loaded from ROOT or AIDA objects. |
void |
showEditor()
Show object editor on the left of the canvas. |
void |
showEditor(boolean show)
Show object editor (or not) |
void |
showKey(boolean show)
Show or not keys for the current plot |
hep.aida.ITree |
treeF()
Return TreeFactory associated with the plot |
void |
update()
Update the canvas by repainting all objects |
void |
visible()
Set the canvas frame visible |
void |
visible(boolean vs)
Set the canvas frame visible or not |
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, 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, 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 |
Field Detail |
---|
public static final int LabelX
public static final int LabelY
public static final int Title
public static final int StatBox
public static final int Exponent
public static final int Key
public static final java.lang.String VERSION_NUMBER
public static final java.lang.String VERSION
public static final java.lang.String WEB_SITE
public static final java.lang.String USER_NAME
public static final java.lang.String USER_HOME
public static final java.lang.String OS_NAME
public static final java.lang.String OS_ARCH
public static final java.lang.String OS_VERSION
public static final java.lang.String JAVA_VERSION
public static final java.lang.String JAVA_RUNTIME_VERSION
public static final java.lang.String JAVA_HOME
public static final java.lang.String JAVA_CLASSPATH
public static java.lang.String PREFS_FILENAME
Constructor Detail |
---|
public JaPlot(java.lang.String title, int xsize, int ysize, int n1, int n2, boolean setgraph)
title
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- number of plots/graphs in ysetgraph
- true if initials graph with axes should be set Set to false if
you want just empty canvas.public JaPlot(java.lang.String title, int xsize, int ysize, int n1, int n2)
title
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- number of plots/graphs in ypublic JaPlot(java.lang.String title, int n1, int n2)
title
- title for the canvasn1
- pads in Xn2
- pads in Ypublic JaPlot(java.lang.String title)
title
- Titlepublic JaPlot()
Method Detail |
---|
public void setAxesFrame(int n1, int n2)
n1
- number of pads in Xn2
- number of pads in Ypublic void buildPads(int n1, int n2)
n1
- number of pads in Xn2
- number of pads in Ypublic void cd(int cols, int rows)
cols
- Set the location of the current plot in xrows
- Set the location of the current plot in ypublic int getCdX()
public int getNtotX()
public int getNtotY()
public int getCdY()
public JaAxes getJaAxes()
public void add(JaObject ob)
ob
- input objectpublic void addToBack(JaObject ob)
ob
- input objectpublic void addToFront(JaObject ob)
ob
- input objectpublic void clearAll()
public void clearAllData()
public void clearData(int padx, int pady)
padx
- No of pads in Xpady
- No of pads in Ypublic void removeObject(int type, int padx, int pady)
type
- type of this objectpadx
- padpady
- padpublic java.util.ArrayList getArrayList()
public void clearData()
public void update()
public void close()
public void setLocationAtCenter(JaText text)
text
- input text objectpublic void setAxisAll(boolean show)
show
- toggle, true if the axis should be drawn.public void removeAxes()
public void showAxis(int axis)
axis
- 0 for X, 1 for Ypublic void setGridAll(int axis, boolean b)
axis
- Axis (0 means X, 1 means Y)b
- true is grid is shownpublic void setLabelX(java.lang.String label, int n1, int n2)
label
- current labeln1
- pad position in Xn2
- pad position in Ypublic void setStatBox(java.lang.String[] label, int n1, int n2)
public void setLabelY(java.lang.String label, int n1, int n2)
public static void getPreferences()
public int getSizeX()
public int getSizeY()
public static java.lang.String getCurDir()
public static void setCurDir(java.lang.String newDir)
newDir
- The new working directory.public void setRangeX(double min, double max)
min
- min value on Xmax
- max value ob Xpublic void setRangeY(double min, double max)
min
- min value on Ymax
- max value on Ypublic void setRange(double minX, double maxX, double minY, double maxY)
minX
- min value on XmaxX
- max value on XminY
- min value on YmaxY
- max value on Ypublic void setRangeX(double min, double max, int padx, int pady)
min
- Min value on Xmax
- Max vallue on Xpadx
- pad in Xpady
- pad in Ypublic void setRangeY(double min, double max, int padx, int pady)
min
- Min value on Ymax
- Max vallue on Ypadx
- pad in Xpady
- pad in Ypublic void setLogScale(int axis, boolean b)
axis
- defines to which axis this function applies (0 if X, 1 if Y).b
- toggle, true if the scaling is logarithmicpublic void setTicFont(java.awt.Font font)
font
- the new fontpublic void showBrowser(java.lang.String file)
file
- String representing the full path to the file.public void showEditor()
public void showEditor(boolean show)
show
- true then show itpublic void export(java.lang.String file)
file
- Output file with the proper extension. If no extension, PNG
file is assumed.public JaAxes getPad()
public double getKeyTextSpace()
public void setKeyTextSpace(double space)
space
- space to be set in NDCpublic JaAxes getPad(int n1, int n2)
n1
- location of pad in Xn2
- location of pad in Y
public void setMarginBottom(double marginBottom)
marginBottom
- public double getMarginBottom()
public void setMarginLeft(double marginLeft)
marginLeft
- public double getMarginLeft()
public void setMarginRight(double marginRight)
marginRight
- public double getMarginRight()
public void setAntiAlias(boolean setit)
setit
- true if antialiasing is setpublic void setLegendFont(java.awt.Font font)
font
- new font to draw the legend.public void setLegendFont(java.lang.String name)
name
- A font name.public void setMarginTop(double marginTop)
marginTop
- public double getMarginTop()
public void setMarginX(double marginX)
marginX
- public double getMarginX()
public void setMarginY(double marginY)
marginY
- space in Y between padspublic double getMarginY()
public void setLabelXshift(double labelXshift)
labelXshift
- distancepublic void setLabelYshift(double labelYshift)
labelYshift
- distancepublic double getLabelXshift()
public double getLabelYshift()
labelXshift
- distancepublic JaText[][] getLabelY()
public void setLabelY(JaText[][] labelY)
labelY
- public JaText[][] getLabelX()
public void draw(H1D h1, int padx, int pady)
h1
- input histogrampadx
- No of pads in Xpady
- No of pads in Ypublic void showKey(boolean show)
show
- true if shownpublic void addKey(jplot.DataArray data, int padx, int pady)
public void setShowStatBox(boolean showStatBox)
showStatBox
- public boolean isShowStatBox()
public void addStatBox(int padx, int pady)
public static int getSymbol(jplot.DataArray d)
public void draw(H2D h2, int padx, int pady)
h2
- input hitogrampadx
- index of pad in Xpady
- index of pad in Ypublic void setGTitle(java.lang.String sname, java.awt.Font f, java.awt.Color c)
sname
- Titlef
- Fontc
- Colorpublic void setGTitle(java.lang.String sname, java.awt.Font f)
sname
- Title namef
- Fontpublic void setGTitle(java.lang.String sname)
sname
- Titlepublic void setGTitle(java.lang.String sname, java.awt.Color color)
sname
- Titlecolor
- Color of the titlepublic void setNameX(java.lang.String s, java.awt.Font f, java.awt.Color c)
s
- label titlef
- Fontc
- Colorpublic void setNameX(java.lang.String s)
s
- Title for X axis.public void setNameX(java.lang.String s, java.awt.Font f)
s
- Title for X axis.f
- Fontpublic void setNameY(java.lang.String s, java.awt.Font f, java.awt.Color c)
s
- label titlef
- Fontc
- Colorpublic void setNameY(java.lang.String s)
s
- Title for Y axis.public void setNameY(java.lang.String s, java.awt.Font f)
s
- Title for Y axis.f
- Fontpublic void draw(JaObject jo)
jo
- input JaObjectpublic void draw(P1D p1d)
h2d
- input histogrampublic void draw(H2D h2d)
h2d
- input histogrampublic java.lang.String[] getStatistics(H1D h1)
h1
- input H1D
public java.lang.String[] getStatistics(P1D h1)
h1
- input P1D
public void draw(H1D h1)
h1
- input histogrampublic void draw(F1D[] f)
f
- array of F1D functionspublic int fit(H1D h1, java.lang.String predefFunc, java.lang.String method)
h1
- H1D histogrampredefFunc
- String predefined functionmethod
- String - method for the fit
public void factories()
public hep.aida.IAnalysisFactory analF()
public hep.aida.ITree treeF()
public hep.aida.IFitFactory fitF()
public hep.aida.IFunctionFactory funcF()
public hep.aida.IHistogramFactory histF()
public void draw(jplot.DataArray inputDA, java.lang.String title)
inputDA
- input data containerpublic void draw(F1D f1, int padx, int pady)
public void draw(F1D f1)
public void draw(P1D p1d, int padx, int pady)
p1d
- inputpadx
- pad in Xpady
- pad in Ypublic void draw(P1D[] d)
d
- array of P1D data holderspublic java.util.Vector<jplot.DataArray> getData()
public void setAutoRange(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the the automatic scaling feature is enabled.public void setAutoRangeAll(int axis, boolean b)
axis
- defines to which axis this function applies, generally
something like X_AXIS or Y_AXIS.b
- toggle, true if the the automatic scaling feature is enabled.public void setAutoRange(boolean b)
b
- if true, sets autorangepublic void setAutoRangeAll(boolean b)
b
- if true, sets auto-rangepublic void setAutoRange()
public void setAutoRangeAll()
public void visible(boolean vs)
vs
- (boolean) true: visible, false: not visiblepublic void visible()
public static void main(java.lang.String[] args)
args
- The array of command line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |