NetCharts Pro

netcharts.pro.charts.diagram
Class NFNodeEdge

java.lang.Object
  extended by netcharts.pro.common.NFBaseClass
      extended by netcharts.pro.common.NFLine
          extended by netcharts.pro.common.NFArrowLine
              extended by 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.


Field Summary
 
Fields inherited from class netcharts.pro.common.NFArrowLine
arrowShapeMap, BLOCK, BOTH, ELLIPSE, endPointStyleMap, FROMTO, LINE, NONE, RECTANGLE, ROUND, SHARP, TOFROM
 
Fields inherited from class netcharts.pro.common.NFLine
DASHED, DOTDASH, DOTTED, lineTypeMap, SOLID
 
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)
          Configures the arrow line from a CDL parameter representation.
 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 netcharts.pro.common.NFArrowLine
getArrowShape, getArrowSize, getCDL, getCDL, getEndPointStyle, setArrowShape, setArrowSize, setEndPointStyle
 
Methods inherited from class netcharts.pro.common.NFLine
getColor, getStyle, getThickness, setCDL, setColor, setStyle, setThickness
 
Methods inherited from class netcharts.pro.common.NFBaseClass
clone, getModified, getUserObject, setModified, setUserObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 node
endNode - Name of the second node
Method Detail

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.

Specified by:
toString in interface NFCDLGenerator
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.

Specified by:
setCDL in interface NFCDLGenerator
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)
Configures the arrow line from a CDL parameter representation.

Parameters:
s - CDL in the form: (style, thickness, color, endPointStyle, arrowShape, arrowWidth, arrowLength)

NetCharts Pro


Visual Mining, Inc.
2099 Gaither Rd.
Suite 220
Rockville, MD 20850
800.308.0731
301.947.8293 FAX

Copyright © Visual Mining, Inc. 1996 - 2018
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: Jan 7, 2018