Package org.jfree.chart.entity
Class FlowEntity
- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.FlowEntity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.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, java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canEqual(java.lang.Object other)
Ensures symmetry between super/subclass implementations of equals.boolean
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.FlowKey
getKey()
Returns the key identifying the flow.int
hashCode()
Returns a hash code for this instance.java.lang.String
toString()
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
-
-
-
-
Field Detail
-
key
private FlowKey key
-
-
Constructor Detail
-
FlowEntity
public FlowEntity(FlowKey key, java.awt.Shape area, java.lang.String toolTipText, java.lang.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 Detail
-
getKey
public FlowKey getKey()
Returns the key identifying the flow.- Returns:
- The flow key (never
null
).
-
toString
public java.lang.String toString()
Returns a string representation of this instance, primarily for debugging purposes.- Overrides:
toString
in classChartEntity
- Returns:
- A string.
-
equals
public boolean equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.- Overrides:
equals
in classChartEntity
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
canEqual
public boolean canEqual(java.lang.Object other)
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.- Overrides:
canEqual
in classChartEntity
- Parameters:
other
- Object- Returns:
- true ONLY if the parameter is THIS class type
-
hashCode
public int hashCode()
Description copied from class:ChartEntity
Returns a hash code for this instance.- Overrides:
hashCode
in classChartEntity
- Returns:
- A hash code.
-
-