|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.minorthird.util.gui.LineCharter
public class LineCharter
Wraps JFreeChart's XY line graph capability.
Constructor Summary | |
---|---|
LineCharter()
|
Method Summary | |
---|---|
void |
addPoint(double x,
double y)
Add a point to the current curve. |
void |
addPoint(double x,
double y,
boolean mayDuplicate)
Add a point to the current curve. |
javax.swing.JPanel |
getPanel(java.lang.String title,
java.lang.String xlabel,
java.lang.String ylabel)
Get a panel showing the curves, with the given axis labels and title. |
void |
startCurve(java.lang.String label)
Start a new curve with a given label. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LineCharter()
Method Detail |
---|
public void startCurve(java.lang.String label)
public void addPoint(double x, double y, boolean mayDuplicate)
mayDuplicate
- - there may be points x,y1 and x,y2 in the curve, ie
it might nont be a function.public void addPoint(double x, double y)
public javax.swing.JPanel getPanel(java.lang.String title, java.lang.String xlabel, java.lang.String ylabel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |