corina.graph
Interface Graphable

All Known Implementing Classes:
Index, Sample

public interface Graphable

An interface for classes that can be graphed. To be Graphable, an object must have a start Year, and an List of Numbers.

Graphs must now also be able to suggest their vertical scale, which getScale() returns. A scale of 1.0 means a datum of 100 is 100 pixels above the baseline on the screen, or about 1"; scale of 0.1 means that same point would be 10 pixels above the baseline, or 0.1". This is useful for manipulations like indexing, where the data becomes parts-per-thousand instead of hundredths-of-a-millimeter.

Version:
$Id: Graphable.java,v 1.2 2002/10/29 20:06:23 bitpoet Exp $
Author:
Ken Harris

Method Summary
 List getData()
          Get the data to graph, as a List of Numbers.
 float getScale()
          Get the default vertical scale; the data points are multiplied by this value before being graphed.
 Year getStart()
          Get the start of the range to graph.
 

Method Detail

getData

public List getData()
Get the data to graph, as a List of Numbers.
Returns:
data to graph

getStart

public Year getStart()
Get the start of the range to graph.
Returns:
start Year of data

getScale

public float getScale()
Get the default vertical scale; the data points are multiplied by this value before being graphed.
Returns:
default vertical scale factor