public abstract class GHFrame extends GHPanel implements java.io.Serializable
Constructor and Description |
---|
GHFrame()
Construct a GHFrame canvas with a plot with the default parameters 600 by
400, and 10% space for the global title "Default".
|
GHFrame(java.lang.String title)
Construct a GHFrame canvas with a plot with the default parameters 600 by
400, and 10% space for the global title
|
GHFrame(java.lang.String title,
int n1,
int n2)
Construct a GHFrame with a single plot/graph.
|
GHFrame(java.lang.String title,
int xs,
int ys,
boolean set)
Construct a GHFrame canvas with a single plot/graph.
|
GHFrame(java.lang.String title,
int xs,
int ys,
int n1,
int n2)
Construct a GHFrame canvas with plots/graphs.
|
GHFrame(java.lang.String title,
int xsize,
int ysize,
int n1,
int n2,
boolean set)
Create main frame window
|
Modifier and Type | Method and Description |
---|---|
void |
addGraph(int i1,
int i2,
java.awt.Component a)
Add a graph or any component in the location given by i1 and i2.
|
void |
cd(int cols,
int rows)
Navigate to a selected plot.
|
void |
componentHidden(java.awt.event.ComponentEvent e) |
void |
componentMoved(java.awt.event.ComponentEvent e) |
void |
componentShown(java.awt.event.ComponentEvent e) |
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
|
javax.swing.JFrame |
getFrame()
Get the main frame which keeps the components
|
java.net.URL |
getHTMLUrl(java.lang.String name)
Returns a HTML page which is found in a valid image URL.
|
int |
getNtotX()
Get the total number of graphs in X
|
int |
getNtotY()
Get the total number of the graphs in Y
|
void |
setPlotsNum(int nx,
int ny)
Set the number of plots
|
void |
updateFrame()
update frame UI
|
addComp, componentResized, 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
public GHFrame(java.lang.String title, int xsize, int ysize, int n1, int n2, boolean set)
title
- Titlexsize
- size in x directionysize
- size in y directionn1
- number of plots/graphs in xn2
- number of plots/graphs in yset
- set or not the graphpublic GHFrame(java.lang.String title, int n1, int n2)
title
- title for the canvasn1
- size in xn2
- size in ypublic GHFrame(java.lang.String title, int xs, int ys, boolean set)
title
- Title for the canvasxs
- size in xys
- size in yset
- set or not the graph (boolean)public GHFrame(java.lang.String title, int xs, int ys, int n1, int n2)
title
- Title for the canvasxs
- size in xys
- size in yn1
- number of plots/graphs in xn2
- number of plots/graphs in ypublic GHFrame(java.lang.String title)
title
- Titlepublic GHFrame()
public void addGraph(int i1, int i2, java.awt.Component a)
public 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 void setPlotsNum(int nx, int ny)
nx
- Number of plots in Xny
- Number of plots in Ypublic void updateFrame()
public int getNtotX()
public int getNtotY()
public int getCdY()
public javax.swing.JFrame getFrame()
public java.net.URL getHTMLUrl(java.lang.String name)
name
- name of the HTML pagepublic void componentMoved(java.awt.event.ComponentEvent e)
componentMoved
in interface java.awt.event.ComponentListener
componentMoved
in class GHPanel
public void componentShown(java.awt.event.ComponentEvent e)
componentShown
in interface java.awt.event.ComponentListener
componentShown
in class GHPanel
public void componentHidden(java.awt.event.ComponentEvent e)
componentHidden
in interface java.awt.event.ComponentListener
componentHidden
in class GHPanel
JHepSim. A part of HSTOOLS. version-1.2