netcharts.pro.charts.diagram
Class NFNodeEdge
java.lang.Object
|
+--netcharts.pro.common.NFBaseClass
|
+--netcharts.pro.common.NFLine
|
+--netcharts.pro.common.NFArrowLine
|
+--netcharts.pro.charts.diagram.NFNodeEdge
- All Implemented Interfaces:
- java.lang.Cloneable, NFCDLGenerator
- public class NFNodeEdge
- extends NFArrowLine
This class is used to define a line between two nodes in
a NFDiagramchart.
| Fields inherited from class netcharts.pro.common.NFArrowLine |
arrowShapeMap, BLOCK, BOTH, ELLIPSE, endPointStyleMap, FROMTO, LINE, NONE, RECTANGLE, ROUND, SHARP, TOFROM |
|
Constructor Summary |
NFNodeEdge()
Constructs a default node edge |
NFNodeEdge(java.lang.String startNode,
java.lang.String endNode)
Constructs a node edge drawn between the named nodes. |
|
Method Summary |
java.lang.String |
getEndNodeName()
Get the end node name |
java.lang.String |
getStartNodeName()
Get the start node name |
void |
setArrowCDL(java.lang.String s)
|
void |
setCDL(java.lang.String s)
Configures this object from a CDL parameter representation. |
int |
setCDL(java.lang.String[] elements,
int offset)
Configures this object from a CDL parameter representation. |
void |
setEndNode(NFNode node)
Set the end node |
void |
setStartNode(NFNode node)
Set the start node |
java.lang.String |
toString()
Returns a new String object representing this node edge. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NFNodeEdge
public NFNodeEdge()
- Constructs a default node edge
NFNodeEdge
public NFNodeEdge(java.lang.String startNode,
java.lang.String endNode)
- Constructs a node edge drawn between the named nodes.
- Parameters:
startNode - Name of the first nodeendNode - Name of the second node
setStartNode
public void setStartNode(NFNode node)
- Set the start node
- Parameters:
node - The node from which the edge will be drawn from.
setEndNode
public void setEndNode(NFNode node)
- Set the end node
- Parameters:
node - The node from which the edge will be drawn to.
getEndNodeName
public java.lang.String getEndNodeName()
- Get the end node name
- Returns:
- the name of the node at the end of the edge
getStartNodeName
public java.lang.String getStartNodeName()
- Get the start node name
- Returns:
- the name of the node at the start of the edge
toString
public java.lang.String toString()
- Returns a new String object representing this node edge.
- Overrides:
toString in class NFArrowLine
- Returns:
- A new String object in the same form as that given by getCDL().
setCDL
public void setCDL(java.lang.String s)
- Configures this object from a CDL parameter representation.
- Overrides:
setCDL in class NFArrowLine
- Parameters:
cdl - CDL in the form: ("startNode", "stopNode", lineColor, endPointStyle, lineType, lineThickness, arrowShape, arrowWidth, arrowLength)
setCDL
public int setCDL(java.lang.String[] elements,
int offset)
- Configures this object from a CDL parameter representation.
- Overrides:
setCDL in class NFArrowLine
- Parameters:
elements - Array of parameter elements. This array is expected
to contain consecutive elements containing startNode, stopNode, lineColor,
endPointStyle, lineType, lineThickness, arrowShape, arrowWidth
and arrowLength information.offset - Offset into the elements array.
setArrowCDL
public void setArrowCDL(java.lang.String s)
Visual Mining, Inc. 15825 Shady Grove Rd. Suite 20 Rockville, MD 20850 800.308.0731 301.947.8293 FAX | | Copyright © Visual Mining, Inc. 1996 - 2004 All Rights Reserved. NetCharts Pro TM is a registered trademark of Visual Mining, Inc. Other brands and their products are trademarks of their respective holders. |
Last Modified: Apr 1, 2004 |