Package org.jfree.chart.entity
Class NodeEntity
- java.lang.Object
-
- org.jfree.chart.entity.ChartEntity
-
- org.jfree.chart.entity.NodeEntity
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,PublicCloneable
public class NodeEntity extends ChartEntity
A chart entity representing a node in aFlowPlot
.- Since:
- 1.5.3
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeEntity(java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText)
Creates a new instance.NodeEntity(NodeKey key, java.awt.Shape area, java.lang.String toolTipText)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeKey
getKey()
Returns the node key.java.lang.String
toString()
Returns a string representation of this instance, primarily for debugging purposes.-
Methods inherited from class org.jfree.chart.entity.ChartEntity
canEqual, clone, equals, getArea, getImageMapAreaTag, getShapeCoords, getShapeType, getToolTipText, getURLText, hashCode, setArea, setToolTipText, setURLText
-
-
-
-
Field Detail
-
key
private NodeKey key
-
-
Constructor Detail
-
NodeEntity
public NodeEntity(NodeKey key, java.awt.Shape area, java.lang.String toolTipText)
Creates a new instance.- Parameters:
key
- the node key (null
not permitted).area
- the outline of the entity (null
not permitted).toolTipText
- the tool tip text.
-
NodeEntity
public NodeEntity(java.awt.Shape area, java.lang.String toolTipText, java.lang.String urlText)
Creates a new instance.- Parameters:
area
- the outline of the entity (null
not permitted).toolTipText
- the tool tip text.urlText
- the URL text.
-
-
Method Detail
-
getKey
public NodeKey getKey()
Returns the node key.- Returns:
- The node 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.
-
-