apps.conceptmap.graphcomponents.link
Class GraphLink

java.lang.Object
  extended by apps.conceptmap.graphcomponents.GraphComponent
      extended by apps.conceptmap.graphcomponents.link.GraphLink

public class GraphLink
extends GraphComponent

The Class GraphLink.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.conceptmap.graphcomponents.GraphComponent
GraphComponent.OptionMessageListener
 
Constructor Summary
GraphLink(ContentSystem contentSystem, GraphManager gManager)
          Instantiates a new graph link.
 
Method Summary
 int getArrowMode()
          Gets the arrow mode.
 KeyboardNode getKeyboardNode()
          Gets the keyboard node.
 LineItem getLineItem()
          Gets the line item.
 int getLinkMode()
          Gets the link mode.
 GraphNode getLinkPoint()
          Gets the link point.
 java.lang.String getName()
          Gets the name.
 int getOrder()
          Gets the order.
 Location getSourceLocation()
          Gets the source location.
 GraphNode getSourceNode()
          Gets the source node.
 Location getTargetLocation()
          Gets the target location.
 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 removeMenu()
          Removes the menu.
 void setArrowMode(int arrowMode)
          Sets the arrow mode.
 void setKeyboardNode(KeyboardNode keyboardNode)
          Sets the keyboard node.
 void setLinkMode(int lineMode)
          Sets the link mode.
 void setMenuEnabled(boolean isEnabled)
          Sets the menu enabled.
 void setSourceLocation(Location sourceLocation)
          Sets the source location.
 void setSourceNode(GraphNode sourceNode)
          Sets the source node.
 void setTargetLocation(Location targetLocation)
          Sets the target location.
 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 apps.conceptmap.graphcomponents.GraphComponent
addOptionMessageListener, fireMessageProcessed, removeOptionMessageListeners
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphLink

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

Parameters:
contentSystem - the content system
gManager - the g manager
Method Detail

getArrowMode

public int getArrowMode()
Gets the arrow mode.

Returns:
the arrow mode

getKeyboardNode

public KeyboardNode getKeyboardNode()
Gets the keyboard node.

Returns:
the keyboard node

getLineItem

public LineItem getLineItem()
Gets the line item.

Returns:
the line item

getLinkMode

public int getLinkMode()
Gets the link mode.

Returns:
the link mode

getLinkPoint

public GraphNode getLinkPoint()
Gets the link point.

Returns:
the link point

getName

public java.lang.String getName()
Description copied from class: GraphComponent
Gets the name.

Specified by:
getName in class GraphComponent
Returns:
the name

getOrder

public int getOrder()
Gets the order.

Returns:
the order

getSourceLocation

public Location getSourceLocation()
Gets the source location.

Returns:
the source location

getSourceNode

public GraphNode getSourceNode()
Gets the source node.

Returns:
the source node

getTargetLocation

public Location getTargetLocation()
Gets the target location.

Returns:
the target location

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.


removeMenu

public void removeMenu()
Removes the menu.


setArrowMode

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

Parameters:
arrowMode - the new arrow mode

setKeyboardNode

public void setKeyboardNode(KeyboardNode keyboardNode)
Sets the keyboard node.

Parameters:
keyboardNode - the new keyboard node

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

setSourceLocation

public void setSourceLocation(Location sourceLocation)
Sets the source location.

Parameters:
sourceLocation - the new source location

setSourceNode

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

Parameters:
sourceNode - the new source node

setTargetLocation

public void setTargetLocation(Location targetLocation)
Sets the target location.

Parameters:
targetLocation - the new target location

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