Class FlowEntity

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

public class FlowEntity
extends ChartEntity
A chart entity representing the flow between two nodes in a FlowPlot.
Since:
1.5.3
See Also:
Serialized Form
  • Constructor Details

    • FlowEntity

      public FlowEntity​(FlowKey key, Shape area, String toolTipText, String urlText)
      Creates a new instance.
      Parameters:
      key - the key identifying the flow (null not permitted).
      area - the outline of the entity (null not permitted).
      toolTipText - the tool tip text.
      urlText - the URL text.
  • Method Details

    • getKey

      public FlowKey getKey()
      Returns the key identifying the flow.
      Returns:
      The flow key (never null).
    • toString

      public String toString()
      Returns a string representation of this instance, primarily for debugging purposes.
      Overrides:
      toString in class ChartEntity
      Returns:
      A string.
    • equals

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

      public int hashCode()
      Description copied from class: ChartEntity
      Returns a hash code for this instance.
      Overrides:
      hashCode in class ChartEntity
      Returns:
      A hash code.