XYSqrdPlot();
None
Histogram Object
METHOD |
DESCRIPTION |
void setData( Point2D.Float[] pointData ) |
Set the data to be plotted. Consists of an array of point data,
where y represents a high/low state for the number x. |
void setTitle( String title ) |
Sets the plot title. |
String getTitle() |
Returns the plot title. |
void setXLabel( String text ) |
Sets the x-axis label. |
void setYLabel( String text ) |
Sets the y-axis label. |
JFrame showFrame() |
Creates a javax.swing.JFrame and packs the plot
panel into it. The frame is automatically displayed and
returned to the user for further use (if desired). |
Returns what is ultimately a javax.swing.JPanel that displays a
discrete high/low state plot for the specified set of data. This
panel should be placed within a frame/window; which can be done
by calling the showFrame() method.
Example #1:
import java.awt.geom.Point2D;
data = new Point2D.Float[ 11 ];
for ( i=0; i
Example #2:
... Assumes a XYSqrdPlot panel was previously created,
as in example #1 ...
frame = plot.showFrame();
... The existing frame can have its plot data changed ...
plot.setData( newData );
... And if the frame is closed, it can be re-shown ...
frame.setVisible( true );