All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----WBMPcreator.WBMPfile
|
+----WBMPcreator.WBMPChart
This method set the X axis data to be represented.
This method set the Y axis data to be represented.
public static final int CHART_PLAIN
public static final int CHART_POINT
public static final int CHART_PLAIN_FILLED
public static final int CHART_POINT_FILLED
public WBMPChart(int xSize,
int ySize)
xSize - the X axis size in points
ySize - the Y axis size in points
public WBMPChart(WBMPDimension imageDim)
imageDim - dimensions of the resulting images
public WBMPChart(WBMPfile wbmpFile)
wbmpFile - the WBMPfile instance
public WBMPfile drawChart(int chartMode)
xData
and yData vectors to be filled with data, else the chart will
be empty.
NOTE The free version of this class includes the copyright string in the right down corner. To remove this string contact the author.
chartMode - one of chart types, e.g. PLAIN, PLAIN_FILLED, etc.
public void setXData(java.util.Vector newXData)
This method set the X axis data to be represented.
NOTE that the data should be prepared as follows:
...
WBMPchart wc=new WBMPChart(96,44);
java.util.Vector xData=new java.util.Vector(4);
xData.addElement("10");
xData.addElement("30");
xData.addElement("20");
xData.addElement("40");
wc.setXData(xData);
...
NOTE If you want X axis dimensions to start with 0 or any other number but not the minimum between given numbers, you should add the following string first:
xData.addElement("0");
public java.util.Vector getXData()
public void setYData(java.util.Vector newYData)
This method set the Y axis data to be represented.
NOTE that the data should be prepared as follows:
...
WBMPchart wc=new WBMPChart(96,44);
java.util.Vector xData=new java.util.Vector(4);
...
yData.addElement("7");
yData.addElement("5");
yData.addElement("4");
yData.addElement("11");
wc.setYData(yData);
...
NOTE If you want Y axis dimensions to start with 0 or any other number but not the minimum between given numbers, you should add the following string first:
yData.addElement("0");
public java.util.Vector getYData()
All Packages Class Hierarchy This Package Previous Next Index