org.jfree.chart.entity

Class ContourEntity

Implemented Interfaces:
Cloneable, PublicCloneable, Serializable

public class ContourEntity
extends ChartEntity
implements Cloneable, Serializable

Represents an item on a contour chart.

Constructor Summary

ContourEntity(Shape area, String toolTipText)
Constructor for ContourEntity.
ContourEntity(Shape area, String toolTipText, String urlText)
Constructor for ContourEntity.

Method Summary

Object
clone()
Returns a clone of the entity.
boolean
equals(Object obj)
Tests the entity for equality with an arbitrary object.
int
getIndex()
Returns the index.
void
setIndex(int index)
Sets the index.

Methods inherited from class org.jfree.chart.entity.ChartEntity

clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText, toString

Constructor Details

ContourEntity

public ContourEntity(Shape area,
                     String toolTipText)
Constructor for ContourEntity.
Parameters:
area - the area.
toolTipText - the tooltip text.

ContourEntity

public ContourEntity(Shape area,
                     String toolTipText,
                     String urlText)
Constructor for ContourEntity.
Parameters:
area - the area.
toolTipText - the tooltip text.
urlText - the URL text.

Method Details

clone

public Object clone()
            throws CloneNotSupportedException
Returns a clone of the entity.
Overrides:
clone in interface ChartEntity
Returns:
A clone.

equals

public boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
Overrides:
equals in interface ChartEntity
Parameters:
obj - the object (null permitted).
Returns:
A boolean.

getIndex

public int getIndex()
Returns the index.
Returns:
The index.

setIndex

public void setIndex(int index)
Sets the index.
Parameters:
index - the index.