- 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 aFlowPlot.- Since:
- 1.5.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FlowEntity(FlowKey key, Shape area, String toolTipText, String urlText)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this instance for equality with an arbitrary object.FlowKeygetKey()Returns the key identifying the flow.inthashCode()Returns a hash code for this instance.StringtoString()Returns a string representation of this instance, primarily for debugging purposes.-
Methods inherited from class org.jfree.chart.entity.ChartEntity
clone, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, setArea, setToolTipText, setURLText
-
-
-
-
Constructor Detail
-
FlowEntity
public FlowEntity(FlowKey key, Shape area, String toolTipText, String urlText)
Creates a new instance.- Parameters:
key- the key identifying the flow (nullnot permitted).area- the outline of the entity (nullnot permitted).toolTipText- the tool tip text.urlText- the URL text.
-
-
Method Detail
-
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:
toStringin classChartEntity- Returns:
- A string.
-
equals
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Description copied from class:ChartEntityReturns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-
-