Module platform

Class PlotEntity

java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.PlotEntity
All Implemented Interfaces:
Serializable, Cloneable, PublicCloneable

public class PlotEntity extends ChartEntity
A class that captures information about a plot.
See Also:
  • Constructor Details

    • PlotEntity

      public PlotEntity(Shape area, Plot plot)
      Creates a new plot entity.
      Parameters:
      area - the area (null not permitted).
      plot - the plot (null not permitted).
    • PlotEntity

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

      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).
  • Method Details

    • getPlot

      public Plot getPlot()
      Returns the plot that occupies the entity area.
      Returns:
      The plot (never null).
    • toString

      public String toString()
      Returns a string representation of the plot entity, useful for debugging.
      Overrides:
      toString in class ChartEntity
      Returns:
      A string.
    • equals

      public boolean equals(Object obj)
      Tests the entity for equality with an arbitrary object.
      Overrides:
      equals in class ChartEntity
      Parameters:
      obj - the object to test against (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class ChartEntity
      Returns:
      A hash code.
    • clone

      public Object clone() throws CloneNotSupportedException
      Returns a clone of the entity.
      Specified by:
      clone in interface PublicCloneable
      Overrides:
      clone in class ChartEntity
      Returns:
      A clone.
      Throws:
      CloneNotSupportedException - if there is a problem cloning the entity.