org.strbio.util.graph
Interface Graphable2D

All Known Subinterfaces:
Graphable3D
All Known Implementing Classes:
BarPlot, ClickablePointPlot, PointColorPlot, PointPlot

public interface Graphable2D

Something that can be graphed in the middle of a Graph2D component. It needs to know about the data it contains.

  Version 1.0, 4/20/99 - original version.
  

Version:
1.0, 4/20/99
Author:
JMC

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.
 

Method Detail

minX

double minX()
minimum x value that will be graphed.


maxX

double maxX()
maximum x value that will be graphed.


minY

double minY()
minimum y value that will be graphed.


maxY

double maxY()
maximum y value that will be graphed.


getLegend

Legend getLegend()
gets the legend, or none if n/a


paintGraph

void paintGraph(java.awt.Graphics g,
                java.awt.Rectangle r,
                Graph2D gr)
draw the graph, in a given rectangle. Should not clear the background, since more than 1 could be drawn.