All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
   |
   +----MSBChart.DataSerie
           |
           +----MSBChart.BarDataSerie
A BarDataSerie is a DataSerie that must be plotted using bars (horizontal) or columns (vertical).
Example:
double[] d1={1,2,3,4,5,4,2};
BarDataSerie data1= new BarDataSerie(d1,new FillStyle(java.awt.Color.orange));
data1.borderType=BarDataSerie.BORDER_RAISED;
data1.valueFont=new Font("Arial",Font.BOLD,10);
double[] d2={2,3,4,4.2,6.4,4.5,6.1};
BarDataSerie data2= new BarDataSerie(d2,new FillStyle(java.awt.Color.green));
data2.valueFont=new Font("Arial",Font.BOLD,10);
data2.borderType=BarDataSerie.BORDER_RAISED;
data2.negativeStyle=new FillStyle(java.awt.Color.red);

 
 border
	border
   border2
	border2
   BORDER_LOWERED
	BORDER_LOWERED
   BORDER_NO
	BORDER_NO
   BORDER_NORMAL
	BORDER_NORMAL
   BORDER_RAISED
	BORDER_RAISED
   borderType
	borderType
   negativeborder
	negativeborder
   negativeborder2
	negativeborder2
   negativeStyle
	negativeStyle
   style
	style
   valueColor
	valueColor
   valueFont
	valueFont
   
 BarDataSerie(double[], double[], FillStyle)
	BarDataSerie(double[], double[], FillStyle)
   BarDataSerie(double[], FillStyle)
	BarDataSerie(double[], FillStyle)
   BarDataSerie(FillStyle)
	BarDataSerie(FillStyle)
   
 BORDER_NORMAL
BORDER_NORMAL
public static final int BORDER_NORMAL
 BORDER_LOWERED
BORDER_LOWERED
public static final int BORDER_LOWERED
 BORDER_RAISED
BORDER_RAISED
public static final int BORDER_RAISED
 BORDER_NO
BORDER_NO
public static final int BORDER_NO
 style
style
public FillStyle style
Fill styled used to fill the bar.
 negativeStyle
negativeStyle
public FillStyle negativeStyle
Fill styled used to fill the bar if negative.
 border
border
public LineStyle border
If borderType is BORDER_NORMAL, this style will be used to draw the border. If borderType is BORDER_RAISED or BORDER_LOWERED two borders are needed (border and border2).
The RAISED or LOWERED effect is achieved by combining two borders of different color. The default is gray (shadowed border) and white (light border).
 border2
border2
public LineStyle border2
see border.
 negativeborder
negativeborder
public LineStyle negativeborder
Like "border" for negatives values.
 negativeborder2
negativeborder2
public LineStyle negativeborder2
Like "border2" for negatives values.
 valueColor
valueColor
public Color valueColor
color used to display the values of the bars.
 valueFont
valueFont
public Font valueFont
Font used to display the values of the bars.
 borderType
borderType
public int borderType
Type of border of the bars. Valid values are BORDER_NO, BORDER_NORMAL, BORDER_RAISED, and BORDER_LOWERED.
 
 BarDataSerie
BarDataSerie
 public BarDataSerie(double x[],
                     double y[],
                     FillStyle s)
Creates a serie with the specified values (points x,y) and style.
 BarDataSerie
BarDataSerie
 public BarDataSerie(double y[],
                     FillStyle s)
Creates a serie with the specified values and style. The values for x will be 0,1,2,3...
 BarDataSerie
BarDataSerie
public BarDataSerie(FillStyle s)
Creates an empty serie with the specifed style.
All Packages Class Hierarchy This Package Previous Next Index