Package org.jfree.chart.entity
Class FlowEntity
java.lang.Object
org.jfree.chart.entity.ChartEntity
org.jfree.chart.entity.FlowEntity
- All Implemented Interfaces:
Serializable,Cloneable,PublicCloneable
A chart entity representing the flow between two nodes in a
FlowPlot.- Since:
- 1.5.3
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlowEntity(FlowKey key, Shape area, String toolTipText, String urlText) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEnsures symmetry between super/subclass implementations of equals.booleanTests this instance for equality with an arbitrary object.getKey()Returns the key identifying the flow.inthashCode()Returns a hash code for this instance.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
-
Constructor Details
-
FlowEntity
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 Details
-
getKey
Returns the key identifying the flow.- Returns:
- The flow key (never
null).
-
toString
Returns a string representation of this instance, primarily for debugging purposes.- Overrides:
toStringin classChartEntity- Returns:
- A string.
-
equals
Tests this instance for equality with an arbitrary object.- Overrides:
equalsin classChartEntity- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
canEqual
Ensures symmetry between super/subclass implementations of equals. For more detail, see http://jqno.nl/equalsverifier/manual/inheritance.- Overrides:
canEqualin classChartEntity- Parameters:
other- Object- Returns:
- true ONLY if the parameter is THIS class type
-
hashCode
Description copied from class:ChartEntityReturns a hash code for this instance.- Overrides:
hashCodein classChartEntity- Returns:
- A hash code.
-