|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strbio.util.graph.PointPlot
public class PointPlot
A component that displays a point plot (a 2D graph of a bunch of points).
Version 1.1, 5/11/99 - added legend. Version 1.0, 4/16/99 - original version.
| Field Summary | |
|---|---|
protected Legend |
legend
legend, if there |
protected DVectorSet |
points
This is a vector of points to plot. |
protected PointType |
ptype
type of point to draw. |
| Constructor Summary | |
|---|---|
PointPlot(DVectorSet x)
initialize with a set of points. |
|
| Method Summary | |
|---|---|
void |
createLegend()
creates a new legend |
Legend |
getLegend()
get legend |
DVectorSet |
getPoints()
Returns a pointer to the points being drawn. |
double |
maxX()
maximum x value that will be graphed. |
double |
maxY()
maximum y value that will be graphed. |
double |
minX()
minimum x value that will be graphed. |
double |
minY()
minimum y value that will be graphed. |
void |
paintGraph(java.awt.Graphics g,
java.awt.Rectangle r,
Graph2D gr)
draw the graph, in a given rectangle. |
protected void |
paintVectorAt(int x,
int y,
DVector v,
java.awt.Graphics g)
Draw one of the points somewhere. |
void |
setLegend(PointLegend x)
sets legend. |
void |
setPoints(DVectorSet x)
Sets the points being drawn. |
void |
setPointType(PointType pt)
Set point type to draw. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Legend legend
protected DVectorSet points
protected PointType ptype
| Constructor Detail |
|---|
public PointPlot(DVectorSet x)
| Method Detail |
|---|
public DVectorSet getPoints()
public void setPoints(DVectorSet x)
public double minX()
Graphable2D
minX in interface Graphable2Dpublic double minY()
Graphable2D
minY in interface Graphable2Dpublic double maxX()
Graphable2D
maxX in interface Graphable2Dpublic double maxY()
Graphable2D
maxY in interface Graphable2Dpublic void setPointType(PointType pt)
protected void paintVectorAt(int x,
int y,
DVector v,
java.awt.Graphics g)
public Legend getLegend()
getLegend in interface Graphable2Dpublic void setLegend(PointLegend x)
public void createLegend()
public void paintGraph(java.awt.Graphics g,
java.awt.Rectangle r,
Graph2D gr)
Graphable2D
paintGraph in interface Graphable2D
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||