apps.projectmanagement.component.workflowchart.core.graphcomponents.nodes
Class GraphNode

java.lang.Object
  extended by apps.projectmanagement.component.workflowchart.core.graphcomponents.GraphComponent
      extended by apps.projectmanagement.component.workflowchart.core.graphcomponents.nodes.GraphNode
Direct Known Subclasses:
QuadNode

public abstract class GraphNode
extends GraphComponent

The Class GraphNode.


Nested Class Summary
 
Nested classes/interfaces inherited from class apps.projectmanagement.component.workflowchart.core.graphcomponents.GraphComponent
GraphComponent.OptionMessageListener
 
Field Summary
static java.lang.String BOTTOM_LEFT_CORNER
          The Constant BOTTOM_LEFT_CORNER.
static java.lang.String BOTTOM_RIGHT_CORNER
          The Constant BOTTOM_RIGHT_CORNER.
static java.lang.String MIDDLE
          The Constant MIDDLE.
static java.lang.String TOP_LEFT_CORNER
          The Constant TOP_LEFT_CORNER.
static java.lang.String TOP_RIGHT_CORNER
          The Constant TOP_RIGHT_CORNER.
 
Constructor Summary
GraphNode(ContentSystem contentSystem, GraphManager gManager)
          Instantiates a new graph node.
 
Method Summary
 void addConceptMapListener(ConceptMapListener listener)
          Adds the concept map listener.
 boolean contains(java.awt.geom.Point2D.Float point)
          Contains.
 void fireNodeConnected(GraphLink link)
          Fire node connected.
 void fireNodeDisconnected(GraphLink link)
          Fire node disconnected.
 SimpleButton getCloseButton()
          Gets the close button.
 java.util.ArrayList<GraphLink> getIncomingLinks()
          Gets the incoming links.
 SimpleButton getLinkButton()
          Gets the link button.
 Location getLocation()
          Gets the location.
 java.lang.String getName()
          Gets the name.
 OrthoContainer getNodeContainer()
          Gets the node container.
 int getOrder()
          Gets the order.
 java.util.ArrayList<GraphLink> getOutgoingLinks()
          Gets the outgoing links.
 boolean isLinkable()
          Checks if is linkable.
 boolean isVisible()
          Checks if is visible.
 void registerIncomingLink(GraphLink link)
          Register incoming link.
 void registerOutgoingLink(GraphLink link)
          Register outgoing link.
 void remove()
          Removes the.
 void removeConceptMapListeners()
          Removes the concept map listeners.
abstract  void setCloseButtonLocation(java.lang.String location)
          Sets the close button location.
 void setEditable(boolean b)
          Sets the editable.
 void setLinkable(boolean isLinkable)
          Sets the linkable.
abstract  void setLinkButtonLocation(java.lang.String location)
          Sets the link button location.
 void setLocation(float x, float y)
          Sets the location.
 void setOrder(int zOrder)
          Sets the order.
 void setScale(float scaleFactor)
          Sets the scale.
 void setVisible(boolean isVisible)
          Sets the visible.
 void unregisterAllLinks()
          Unregister all links.
 boolean unregisterLink(GraphLink link)
          Unregister link.
 void updateConnectionPoints()
          Update connection points.
 void updateNode()
          Update node.
 
Methods inherited from class apps.projectmanagement.component.workflowchart.core.graphcomponents.GraphComponent
addOptionMessageListener, fireMessageProcessed, removeOptionMessageListeners
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOTTOM_LEFT_CORNER

public static final java.lang.String BOTTOM_LEFT_CORNER
The Constant BOTTOM_LEFT_CORNER.

See Also:
Constant Field Values

BOTTOM_RIGHT_CORNER

public static final java.lang.String BOTTOM_RIGHT_CORNER
The Constant BOTTOM_RIGHT_CORNER.

See Also:
Constant Field Values

MIDDLE

public static final java.lang.String MIDDLE
The Constant MIDDLE.

See Also:
Constant Field Values

TOP_LEFT_CORNER

public static final java.lang.String TOP_LEFT_CORNER
The Constant TOP_LEFT_CORNER.

See Also:
Constant Field Values

TOP_RIGHT_CORNER

public static final java.lang.String TOP_RIGHT_CORNER
The Constant TOP_RIGHT_CORNER.

See Also:
Constant Field Values
Constructor Detail

GraphNode

public GraphNode(ContentSystem contentSystem,
                 GraphManager gManager)
Instantiates a new graph node.

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

addConceptMapListener

public void addConceptMapListener(ConceptMapListener listener)
Adds the concept map listener.

Parameters:
listener - the listener

contains

public boolean contains(java.awt.geom.Point2D.Float point)
Contains.

Parameters:
point - the point
Returns:
true, if successful

fireNodeConnected

public void fireNodeConnected(GraphLink link)
Fire node connected.

Parameters:
link - the link

fireNodeDisconnected

public void fireNodeDisconnected(GraphLink link)
Fire node disconnected.

Parameters:
link - the link

getCloseButton

public SimpleButton getCloseButton()
Gets the close button.

Returns:
the close button

getIncomingLinks

public java.util.ArrayList<GraphLink> getIncomingLinks()
Gets the incoming links.

Returns:
the incoming links

getLinkButton

public SimpleButton getLinkButton()
Gets the link button.

Returns:
the link button

getLocation

public Location getLocation()
Gets the location.

Returns:
the location

getName

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

Specified by:
getName in class GraphComponent
Returns:
the name

getNodeContainer

public OrthoContainer getNodeContainer()
Gets the node container.

Returns:
the node container

getOrder

public int getOrder()
Gets the order.

Returns:
the order

getOutgoingLinks

public java.util.ArrayList<GraphLink> getOutgoingLinks()
Gets the outgoing links.

Returns:
the outgoing links

isLinkable

public boolean isLinkable()
Checks if is linkable.

Returns:
true, if is linkable

isVisible

public boolean isVisible()
Checks if is visible.

Returns:
true, if is visible

registerIncomingLink

public void registerIncomingLink(GraphLink link)
Register incoming link.

Parameters:
link - the link

registerOutgoingLink

public void registerOutgoingLink(GraphLink link)
Register outgoing link.

Parameters:
link - the link

remove

public void remove()
Removes the.


removeConceptMapListeners

public void removeConceptMapListeners()
Removes the concept map listeners.


setCloseButtonLocation

public abstract void setCloseButtonLocation(java.lang.String location)
Sets the close button location.

Parameters:
location - the new close button location

setEditable

public void setEditable(boolean b)
Sets the editable.

Parameters:
b - the new editable

setLinkable

public void setLinkable(boolean isLinkable)
Sets the linkable.

Parameters:
isLinkable - the new linkable

setLinkButtonLocation

public abstract void setLinkButtonLocation(java.lang.String location)
Sets the link button location.

Parameters:
location - the new link button location

setLocation

public void setLocation(float x,
                        float y)
Sets the location.

Parameters:
x - the x
y - the y

setOrder

public void setOrder(int zOrder)
Sets the order.

Parameters:
zOrder - the new order

setScale

public void setScale(float scaleFactor)
Sets the scale.

Parameters:
scaleFactor - the new scale

setVisible

public void setVisible(boolean isVisible)
Sets the visible.

Parameters:
isVisible - the new visible

unregisterAllLinks

public void unregisterAllLinks()
Unregister all links.


unregisterLink

public boolean unregisterLink(GraphLink link)
Unregister link.

Parameters:
link - the link
Returns:
true, if successful

updateConnectionPoints

public void updateConnectionPoints()
Update connection points.


updateNode

public void updateNode()
Update node.