org.jfree.chart.entity

Class JFreeChartEntity

public class JFreeChartEntity extends ChartEntity

A class that captures information about an entire chart.

Since: 1.0.13

Constructor Summary
JFreeChartEntity(Shape area, JFreeChart chart)
Creates a new chart entity.
JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText)
Creates a new chart entity.
JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText, String urlText)
Creates a new chart entity.
Method Summary
Objectclone()
Returns a clone of the entity.
booleanequals(Object obj)
Tests the entity for equality with an arbitrary object.
JFreeChartgetChart()
Returns the chart that occupies the entity area.
inthashCode()
Returns a hash code for this instance.
StringtoString()
Returns a string representation of the chart entity, useful for debugging.

Constructor Detail

JFreeChartEntity

public JFreeChartEntity(Shape area, JFreeChart chart)
Creates a new chart entity.

Parameters: area the area (null not permitted). chart the chart (null not permitted).

JFreeChartEntity

public JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText)
Creates a new chart entity.

Parameters: area the area (null not permitted). chart the chart (null not permitted). toolTipText the tool tip text (null permitted).

JFreeChartEntity

public JFreeChartEntity(Shape area, JFreeChart chart, String toolTipText, String urlText)
Creates a new chart entity.

Parameters: area the area (null not permitted). chart the chart (null not permitted). toolTipText the tool tip text (null permitted). urlText the URL text for HTML image maps (null permitted).

Method Detail

clone

public Object clone()
Returns a clone of the entity.

Returns: A clone.

Throws: CloneNotSupportedException if there is a problem cloning the entity.

equals

public boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.

Parameters: obj the object to test against (null permitted).

Returns: A boolean.

getChart

public JFreeChart getChart()
Returns the chart that occupies the entity area.

Returns: The chart (never null).

hashCode

public int hashCode()
Returns a hash code for this instance.

Returns: A hash code.

toString

public String toString()
Returns a string representation of the chart entity, useful for debugging.

Returns: A string.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.