edu.cuny.jfree.chart.annotations
Class CategoryIntervalAnnotation

java.lang.Object
  extended by edu.cuny.jfree.chart.annotations.CategoryIntervalAnnotation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, org.jfree.chart.annotations.CategoryAnnotation

public class CategoryIntervalAnnotation
extends java.lang.Object
implements org.jfree.chart.annotations.CategoryAnnotation, java.lang.Cloneable, java.io.Serializable

An interval annotation that can be placed in CategoryPlot.

Version:
$Revision: 1.6 $
Author:
Jinzhong Niu
See Also:
Serialized Form

Constructor Summary
CategoryIntervalAnnotation(java.lang.Comparable category, double value1, double value2, java.awt.Paint paint, java.awt.Stroke stroke)
           
 
Method Summary
 java.lang.Object clone()
           
 void draw(java.awt.Graphics2D g2, org.jfree.chart.plot.CategoryPlot plot, java.awt.geom.Rectangle2D dataArea, org.jfree.chart.axis.CategoryAxis domainAxis, org.jfree.chart.axis.ValueAxis rangeAxis)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.Comparable getCategory()
           
 java.awt.Paint getPaint()
           
 java.awt.Stroke getStroke()
           
 double getValue1()
           
 double getValue2()
           
 int hashCode()
           
 void setCategory(java.lang.Comparable category)
           
 void setPaint(java.awt.Paint paint)
           
 void setStroke(java.awt.Stroke stroke)
           
 void setValue1(double value)
           
 void setValue2(double value)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CategoryIntervalAnnotation

public CategoryIntervalAnnotation(java.lang.Comparable category,
                                  double value1,
                                  double value2,
                                  java.awt.Paint paint,
                                  java.awt.Stroke stroke)
Method Detail

getCategory

public java.lang.Comparable getCategory()

setCategory

public void setCategory(java.lang.Comparable category)

getValue1

public double getValue1()

setValue1

public void setValue1(double value)

getValue2

public double getValue2()

setValue2

public void setValue2(double value)

getPaint

public java.awt.Paint getPaint()

setPaint

public void setPaint(java.awt.Paint paint)

getStroke

public java.awt.Stroke getStroke()

setStroke

public void setStroke(java.awt.Stroke stroke)

draw

public void draw(java.awt.Graphics2D g2,
                 org.jfree.chart.plot.CategoryPlot plot,
                 java.awt.geom.Rectangle2D dataArea,
                 org.jfree.chart.axis.CategoryAxis domainAxis,
                 org.jfree.chart.axis.ValueAxis rangeAxis)
Specified by:
draw in interface org.jfree.chart.annotations.CategoryAnnotation

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException