|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.strbio.util.graph.BarPlot
public class BarPlot
A component that displays a bar graph.
Version 1.0, 1/7/00 - original version.
Field Summary | |
---|---|
protected DVector |
bars
This is a vector containint the y coordinates of the bars. |
double |
barWidth
What percent of the available width do the bars fill? |
Constructor Summary | |
---|---|
BarPlot(DVector x)
initialize with a set of bars. |
Method Summary | |
---|---|
Legend |
getLegend()
gets the legend, or none if n/a |
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. |
void |
setBars(DVector x)
Sets the bars being drawn. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final double barWidth
protected DVector bars
Constructor Detail |
---|
public BarPlot(DVector x)
Method Detail |
---|
public void setBars(DVector x)
public double minX()
Graphable2D
minX
in interface Graphable2D
public double minY()
Graphable2D
minY
in interface Graphable2D
public double maxX()
Graphable2D
maxX
in interface Graphable2D
public double maxY()
Graphable2D
maxY
in interface Graphable2D
public Legend getLegend()
Graphable2D
getLegend
in interface Graphable2D
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 |