public class

JFreeChartEntity

extends ChartEntity
java.lang.Object
   ↳ org.jfree.chart.entity.ChartEntity
     ↳ org.jfree.chart.entity.JFreeChartEntity

Class Overview

A class that captures information about an entire chart.

Summary

Public Constructors
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.
Public Methods
Object clone()
Returns a clone of the entity.
boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
JFreeChart getChart()
Returns the chart that occupies the entity area.
int hashCode()
Returns a hash code for this instance.
String toString()
Returns a string representation of the chart entity, useful for debugging.
[Expand]
Inherited Methods
From class org.jfree.chart.entity.ChartEntity
From class java.lang.Object

Public Constructors

public JFreeChartEntity (Shape area, JFreeChart chart)

Creates a new chart entity.

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

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).

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).

Public Methods

public Object clone ()

Returns a clone of the entity.

Returns
  • A clone.
Throws
CloneNotSupportedException if there is a problem cloning the entity.

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.

public JFreeChart getChart ()

Returns the chart that occupies the entity area.

Returns
  • The chart (never null).

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public String toString ()

Returns a string representation of the chart entity, useful for debugging.

Returns
  • A string.