public abstract class CategoryChart
extends java.lang.Object
SSJCategorySeriesCollection object
representing the data, and an Axis
object representing the axis.
All these classes depend on the JFreeChart API (see WWW link
http://www.jfree.org/jfreechart/) which provides tools to build charts with
Java, to draw them, and export them to files. However, only basic features are
used here.
Moreover, CategoryChart provides methods to plot data using a MATLAB friendly syntax. None of these methods provides new features; they just propose a different syntax to create charts. Therefore some features are unavailable when using these methods only.
| Constructor and Description |
|---|
CategoryChart() |
| Modifier and Type | Method and Description |
|---|---|
void |
disableGrid()
Disables the background grid.
|
void |
enableGrid(double xstep,
double ystep)
Puts a grid on the background.
|
JFreeChart |
getJFreeChart()
Returns the JFreeChart object associated with this chart.
|
java.lang.String |
getTitle()
Gets the current chart title.
|
Axis |
getYAxis()
Returns the chart's range axis (y-axis) object.
|
void |
setAutoRange()
Sets chart y range to automatic values.
|
void |
setLatexDocFlag(boolean flag)
Same as in
XYChart. |
void |
setTitle(java.lang.String title)
Sets a title to this chart.
|
abstract java.lang.String |
toLatex(double width,
double height)
Transforms the chart into LATEX form and returns it as a String.
|
abstract javax.swing.JFrame |
view(int width,
int height) |
public JFreeChart getJFreeChart()
public Axis getYAxis()
public abstract javax.swing.JFrame view(int width,
int height)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
view.title - chart title.public void setAutoRange()
public void enableGrid(double xstep,
double ystep)
xstep - sets the step in the x-direction.ystep - sets the step in the y-direction.public void disableGrid()
public abstract java.lang.String toLatex(double width,
double height)
public void setLatexDocFlag(boolean flag)
XYChart.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.