apps.conceptmap.utility
Class GraphManager

java.lang.Object
  extended by apps.conceptmap.utility.GraphManager

public class GraphManager
extends java.lang.Object

The Class GraphManager.


Constructor Summary
GraphManager(ContentSystem contentSystem)
          Instantiates a new graph manager.
 
Method Summary
 void addGraphLink(GraphLink link)
          Adds the graph link.
 void addGraphNode(GraphNode node)
          Adds the graph node.
 void clearGraph()
          Clear graph.
 void detachGraphLink(GraphLink link)
          Detach graph link.
 void detachGraphNode(GraphNode node)
          Detach graph node.
 java.util.ArrayList<GraphLink> getGraphLinks()
          Gets the graph links.
 java.util.ArrayList<GraphNode> getGraphNodes()
          Gets the graph nodes.
 void graphNodeClicked(GraphNode graphNode, long id, float x, float y)
          Graph node clicked.
 void graphNodeDragged(GraphNode graphNode, long id, float x, float y)
          Graph node dragged.
 void graphNodePressed(GraphNode graphNode, long id, float x, float y)
          Graph node pressed.
 void graphNodeReleased(GraphNode graphNode, long id, float x, float y)
          Graph node released.
 void linkPointDragged(GraphNode sourceNode, long id, float x, float y)
          Link point dragged.
 void linkPointPressed(GraphNode sourceNode, long id, float x, float y)
          Link point pressed.
 void linkPointReleased(GraphNode sourceNode, long id, float x, float y)
          Link point released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphManager

public GraphManager(ContentSystem contentSystem)
Instantiates a new graph manager.

Parameters:
contentSystem - the content system
Method Detail

addGraphLink

public void addGraphLink(GraphLink link)
Adds the graph link.

Parameters:
link - the link

addGraphNode

public void addGraphNode(GraphNode node)
Adds the graph node.

Parameters:
node - the node

clearGraph

public void clearGraph()
Clear graph.


detachGraphLink

public void detachGraphLink(GraphLink link)
Detach graph link.

Parameters:
link - the link

detachGraphNode

public void detachGraphNode(GraphNode node)
Detach graph node.

Parameters:
node - the node

getGraphLinks

public java.util.ArrayList<GraphLink> getGraphLinks()
Gets the graph links.

Returns:
the graph links

getGraphNodes

public java.util.ArrayList<GraphNode> getGraphNodes()
Gets the graph nodes.

Returns:
the graph nodes

graphNodeClicked

public void graphNodeClicked(GraphNode graphNode,
                             long id,
                             float x,
                             float y)
Graph node clicked.

Parameters:
graphNode - the graph node
id - the id
x - the x
y - the y

graphNodeDragged

public void graphNodeDragged(GraphNode graphNode,
                             long id,
                             float x,
                             float y)
Graph node dragged.

Parameters:
graphNode - the graph node
id - the id
x - the x
y - the y

graphNodePressed

public void graphNodePressed(GraphNode graphNode,
                             long id,
                             float x,
                             float y)
Graph node pressed.

Parameters:
graphNode - the graph node
id - the id
x - the x
y - the y

graphNodeReleased

public void graphNodeReleased(GraphNode graphNode,
                              long id,
                              float x,
                              float y)
Graph node released.

Parameters:
graphNode - the graph node
id - the id
x - the x
y - the y

linkPointDragged

public void linkPointDragged(GraphNode sourceNode,
                             long id,
                             float x,
                             float y)
Link point dragged.

Parameters:
sourceNode - the source node
id - the id
x - the x
y - the y

linkPointPressed

public void linkPointPressed(GraphNode sourceNode,
                             long id,
                             float x,
                             float y)
Link point pressed.

Parameters:
sourceNode - the source node
id - the id
x - the x
y - the y

linkPointReleased

public void linkPointReleased(GraphNode sourceNode,
                              long id,
                              float x,
                              float y)
Link point released.

Parameters:
sourceNode - the source node
id - the id
x - the x
y - the y