|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface for classes that can be graphed. To be
Graphable
, an object must have a start
Year
, and an List
of
Number
s.
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.
Method Summary | |
List |
getData()
Get the data to graph, as a List of
Number s. |
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 |
public List getData()
List
of
Number
s.public Year getStart()
public float getScale()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |