apps.mathpadapp.conceptmapping
Class GraphLink

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphLink

public class GraphLink
extends java.lang.Object

The Class GraphLink.


Constructor Summary
GraphLink(ContentSystem contentSystem, GraphManager graphManager)
          Instantiates a new graph link.
 
Method Summary
 int getArrowMode()
          Gets the arrow mode.
 LineItem getLineItem()
          Gets the line item.
 int getLinkMode()
          Gets the link mode.
 java.lang.String getName()
          Gets the name.
 int getOrder()
          Gets the order.
 GraphNode getSourceNode()
          Gets the source node.
 GraphNode getTargetNode()
          Gets the target node.
 java.lang.String getText()
          Gets the text.
 float getWidth()
          Gets the width.
 boolean isMenuEnabled()
          Checks if is menu enabled.
 void remove()
          Removes the.
 void setArrowMode(int arrowMode)
          Sets the arrow mode.
 void setLinkMode(int lineMode)
          Sets the link mode.
 void setMenuEnabled(boolean isEnabled)
          Sets the menu enabled.
 void setSourceNode(GraphNode sourceNode)
          Sets the source node.
 void setTargetNode(GraphNode targetNode)
          Sets the target node.
 void setText(java.lang.String text)
          Sets the text.
 void setWidth(float lineWidth)
          Sets the width.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphLink

public GraphLink(ContentSystem contentSystem,
                 GraphManager graphManager)
Instantiates a new graph link.

Parameters:
contentSystem - the content system
graphManager - the graph manager
Method Detail

getArrowMode

public int getArrowMode()
Gets the arrow mode.

Returns:
the arrow mode

getLineItem

public LineItem getLineItem()
Gets the line item.

Returns:
the line item

getLinkMode

public int getLinkMode()
Gets the link mode.

Returns:
the link mode

getName

public java.lang.String getName()
Gets the name.

Returns:
the name

getOrder

public int getOrder()
Gets the order.

Returns:
the order

getSourceNode

public GraphNode getSourceNode()
Gets the source node.

Returns:
the source node

getTargetNode

public GraphNode getTargetNode()
Gets the target node.

Returns:
the target node

getText

public java.lang.String getText()
Gets the text.

Returns:
the text

getWidth

public float getWidth()
Gets the width.

Returns:
the width

isMenuEnabled

public boolean isMenuEnabled()
Checks if is menu enabled.

Returns:
true, if is menu enabled

remove

public void remove()
Removes the.


setArrowMode

public void setArrowMode(int arrowMode)
Sets the arrow mode.

Parameters:
arrowMode - the new arrow mode

setLinkMode

public void setLinkMode(int lineMode)
Sets the link mode.

Parameters:
lineMode - the new link mode

setMenuEnabled

public void setMenuEnabled(boolean isEnabled)
Sets the menu enabled.

Parameters:
isEnabled - the new menu enabled

setSourceNode

public void setSourceNode(GraphNode sourceNode)
Sets the source node.

Parameters:
sourceNode - the new source node

setTargetNode

public void setTargetNode(GraphNode targetNode)
Sets the target node.

Parameters:
targetNode - the new target node

setText

public void setText(java.lang.String text)
Sets the text.

Parameters:
text - the new text

setWidth

public void setWidth(float lineWidth)
Sets the width.

Parameters:
lineWidth - the new width