public class HPlotChart extends Object
| Constructor and Description |
|---|
HPlotChart(org.jfree.chart.JFreeChart jchart)
Construct a HPlotXY canvas with a plot with the size 600x400.
|
HPlotChart(org.jfree.chart.JFreeChart jchart,
int xsize,
int ysize)
Create canvas that keeps JFreeChart panel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the canvas (and dispose all components).
|
void |
destroy()
Remove the canvas frame
|
void |
doc()
Show online documentation.
|
void |
drawToGraphics2D(Graphics2D g,
int width,
int height) |
void |
export(String filename)
Export graph into an image file.
|
void |
export(String filename,
int width,
int height)
Export graph into an image file.
|
org.jfree.chart.JFreeChart |
getChart()
Return JFreeChart
|
JFrame |
getFrame()
Get grame that keeps averything
|
org.jfree.chart.ChartPanel |
getPanel()
Return panel with the chart.
|
void |
setTheme(String s)
Set a custom theme for chart..
|
void |
visible()
Set the canvas frame visible
|
void |
visible(boolean vs)
Set the canvas frame visible or not
|
public HPlotChart(org.jfree.chart.JFreeChart jchart,
int xsize,
int ysize)
jchart - chart of JFreeChart.xsize - size in x directionysize - size in y directionpublic HPlotChart(org.jfree.chart.JFreeChart jchart)
jchart - Chart to be shown.public void visible(boolean vs)
vs - (boolean) true: visible, false: not visiblepublic void visible()
public void doc()
public void close()
public JFrame getFrame()
public org.jfree.chart.ChartPanel getPanel()
public org.jfree.chart.JFreeChart getChart()
public void setTheme(String s)
s - a theme, can be either LEGACY_THEME, JFREE_THEME,
DARKNESS_THEMEpublic void destroy()
public void export(String filename)
file - name of the imagepublic void export(String filename, int width, int height)
filename - file namewidth - widthheight - hightpublic void drawToGraphics2D(Graphics2D g, int width, int height)
DMelt 2.0 © DataMelt by jWork.ORG