org.formaria.swing
Class Graph.SelectableArea

java.lang.Object
  extended by org.formaria.swing.Graph.SelectableArea
Enclosing class:
Graph

public class Graph.SelectableArea
extends java.lang.Object

An area of the chart that can be selected, with information about that area


Field Summary
 java.awt.geom.Area area
          The selected area
 java.awt.Color color
          The displayed color
 java.lang.String label
          the label (x-value) of this area
 java.lang.String series
          the series name
 double value
          the value of this area
 
Constructor Summary
Graph.SelectableArea(java.lang.String l, java.lang.String s, double v, java.awt.geom.Area a, java.awt.Color clr)
          Create a new selectable area
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public double value
the value of this area


label

public java.lang.String label
the label (x-value) of this area


series

public java.lang.String series
the series name


area

public java.awt.geom.Area area
The selected area


color

public java.awt.Color color
The displayed color

Constructor Detail

Graph.SelectableArea

public Graph.SelectableArea(java.lang.String l,
                            java.lang.String s,
                            double v,
                            java.awt.geom.Area a,
                            java.awt.Color clr)
Create a new selectable area

Parameters:
l - the label
s - the series name
v - the value
a - the area
clr - the color