public class

PlotEntity

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

Class Overview

A class that captures information about a plot.

Summary

Public Constructors
PlotEntity(Shape area, Plot plot)
Creates a new plot entity.
PlotEntity(Shape area, Plot plot, String toolTipText)
Creates a new plot entity.
PlotEntity(Shape area, Plot plot, String toolTipText, String urlText)
Creates a new plot entity.
Public Methods
Object clone()
Returns a clone of the entity.
boolean equals(Object obj)
Tests the entity for equality with an arbitrary object.
Plot getPlot()
Returns the plot that occupies the entity area.
int hashCode()
Returns a hash code for this instance.
String toString()
Returns a string representation of the plot entity, useful for debugging.
[Expand]
Inherited Methods
From class org.jfree.chart.entity.ChartEntity
From class java.lang.Object

Public Constructors

public PlotEntity (Shape area, Plot plot)

Creates a new plot entity.

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

public PlotEntity (Shape area, Plot plot, String toolTipText)

Creates a new plot entity.

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

public PlotEntity (Shape area, Plot plot, String toolTipText, String urlText)

Creates a new plot entity.

Parameters
area the area (null not permitted).
plot the plot (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 Plot getPlot ()

Returns the plot that occupies the entity area.

Returns
  • The plot (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 plot entity, useful for debugging.

Returns
  • A string.