public abstract class Output extends Object
The Output class is the abstract base class for all types of Output in
the library. When a graph is complete, it is rendered to an Output using
the Graph.draw(org.faceless.graph2.Output)
method.
Modifier | Constructor and Description |
---|---|
protected |
Output() |
Modifier and Type | Method and Description |
---|---|
Map |
getAreas()
Return a
Map containing information about the areas used in the graph. |
void |
storeAreas(boolean store)
Whether to store the areas used by each object on the Graph.
|
protected Map metadata
public Map getAreas()
Map
containing information about the areas used in the graph.
This can be used to create rollover or clickable areas on the resulting image.
The returned map has a String as a key and an Area
or GeneralPath
as a value. The key determines which object is being described, and is in one of
the following formats:
graph.series.name |
Represents the Area used by the actual series, where name is one (or more)
fields describing the actual data, separated by dots. For instance, if you created
a series like this:
BarSeries s = new BarSeries("myseries"); s.set("Apples", 20); s.set("Oranges", 20);Then this Map would include at least the two keys graph.series.myseries.Apples
and graph.series.myseries.Oranges . For stacked bars, you might get
graph.series.myseries.2001.Apples , and for LineGraphs, where there is no real
division of the data, you would simply get graph.series.myseries .
|
---|---|
trace.graph.series.name |
This is a GeneralPath object representing the course actually taken by the data,
which may be different the the value returned by graph.series.name if,
for instance, the graph is drawn with a linethickness > 1 or is rotated in 3D.
|
graph.marker.name |
Represents the Area used by a Marker on the graph. Here series is the
series the marker was added to, and name is the name of the marker. If no name
was specified for the marker (the default) then no entry will be added to the Map.
|
key.frame |
Represents the Area used by the Key box.
|
null
if
storeAreas
(true) wasn't called before drawing.public void storeAreas(boolean store)
getAreas()
method for more
information.store
- whether to store information required by the getAreas()
method.getAreas()
Copyright © 2001-2016 Big Faceless Organization