All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----MSBChart.Chart
Main class of RChart, it links everythings together; axis, plotter, legend, title... RChart calculates the position and size of all the components and calls the draw method of all of them.
Chart is an extension of Canvas so you can put it on your frames, windows, etc...
 
 autoSize
	autoSize
   axisMargin
	axisMargin
   back
	back
   border
	border
   bottomMargin
	bottomMargin
   d
	d
   dnum
	dnum
   layout
	layout
   LAYOUT_LEGEND_BOTTOM
	LAYOUT_LEGEND_BOTTOM
   LAYOUT_LEGEND_RIGHT
	LAYOUT_LEGEND_RIGHT
   LAYOUT_LEGEND_TOP
	LAYOUT_LEGEND_TOP
   leftMargin
	leftMargin
   legend
	legend
   legendMargin
	legendMargin
   Plotters
	Plotters
   title
	title
   topMargin
	topMargin
   XAxis
	XAxis
   XLabel
	XLabel
   YAxis
	YAxis
   YLabel
	YLabel
   
 Chart(Title, Plotter, Axis, Axis)
	Chart(Title, Plotter, Axis, Axis)
   
 addPlotter(Plotter)
	addPlotter(Plotter)
   addSerie(DataSerie)
	addSerie(DataSerie)
   paint(Graphics)
	paint(Graphics)
   
 LAYOUT_LEGEND_RIGHT
LAYOUT_LEGEND_RIGHT
public static final int LAYOUT_LEGEND_RIGHT
 LAYOUT_LEGEND_TOP
LAYOUT_LEGEND_TOP
public static final int LAYOUT_LEGEND_TOP
 LAYOUT_LEGEND_BOTTOM
LAYOUT_LEGEND_BOTTOM
public static final int LAYOUT_LEGEND_BOTTOM
 YLabel
YLabel
public VAxisLabel YLabel
Label to be displayed along the Y axis.
 XLabel
XLabel
public HAxisLabel XLabel
Label to be displayed along the X axis.
 legend
legend
public Legend legend
 XAxis
XAxis
public Axis XAxis
 YAxis
YAxis
public Axis YAxis
 title
title
public Title title
 bottomMargin
bottomMargin
public double bottomMargin
area reserved for the x axis. The default is 0.1 (10%).
 topMargin
topMargin
public double topMargin
area reserved for the title. The default is 0.1 (10%).
 leftMargin
leftMargin
public double leftMargin
area reserved for the y axis. The default is 0.1 (10%).
 legendMargin
legendMargin
public double legendMargin
area reserved for the legend. The default is 0.1 (10%).
 axisMargin
axisMargin
public double axisMargin
 autoSize
autoSize
public boolean autoSize
if true (default) the position and size of the components will be calculated automatically. If not you must assign a value to the fields x,y,width and height of ChartComponent.
 Plotters
Plotters
public Plotter Plotters[]
 layout
layout
public int layout
position of the legend in the chart. Valid values are LAYOUT_LEGEND_TOP,LAYOUT_LEGEND_BOTTOM and LAYOUT_LEGEND_RIGHT (default).
 back
back
public FillStyle back
background of the chart.
 border
border
public LineStyle border
border of the chart.
 
 Chart
Chart
 public Chart(Title t,
              Plotter p,
              Axis X,
              Axis Y)
creates a chart for the specified components. X and Y will be null for a PiePlotter.
 
 addPlotter
addPlotter
public void addPlotter(Plotter p)
adds an extra plotter to the chart. In this way it is possible to combine bar charts and line charts.
 addSerie
addSerie
public void addSerie(DataSerie s)
adds a serie to the plotter (the one used in the constructor). This method just calls the addSerie method od the plotter, so you can call the plotter's method directly.
 paint
paint
public void paint(Graphics g)
All Packages Class Hierarchy This Package Previous Next Index