|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.mathpadapp.conceptmapping.GraphNode
public class GraphNode
The Class GraphNode.
Nested Class Summary | |
---|---|
static interface |
GraphNode.ConceptMapListener
The listener interface for receiving conceptMap events. |
Constructor Summary | |
---|---|
GraphNode(GraphManager graphManager,
OrthoContentItem nodeItem)
Instantiates a new graph node. |
Method Summary | |
---|---|
void |
addConceptMapListener(GraphNode.ConceptMapListener listener)
Adds the concept map listener. |
void |
fireNodeConnected(GraphLink link)
Fire node connected. |
void |
fireNodeDisconnected(GraphLink link)
Fire node disconnected. |
OrthoContentItem |
getClosePoint()
Gets the close point. |
GraphManager |
getGraphManager()
Gets the graph manager. |
java.util.ArrayList<GraphLink> |
getIncomingLinks()
Gets the incoming links. |
OrthoContentItem |
getLinkPoint()
Gets the link point. |
Location |
getLocation()
Gets the location. |
java.lang.String |
getName()
Gets the name. |
OrthoContentItem |
getNodeItem()
Gets the node item. |
java.util.ArrayList<GraphLink> |
getOutgoingLinks()
Gets the outgoing links. |
boolean |
isLinkable()
Checks if is linkable. |
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. |
void |
setClosePoint(OrthoContentItem closePoint)
Sets the close point. |
void |
setLinkable(boolean isLinkable)
Sets the linkable. |
void |
setLinkPoint(OrthoContentItem linkPoint)
Sets the link point. |
void |
setLocation(float x,
float y)
Sets the location. |
void |
unregisterAllLinks()
Unregister all links. |
boolean |
unregisterLink(GraphLink link)
Unregister link. |
void |
updateConnectionPoints()
Update connection points. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GraphNode(GraphManager graphManager, OrthoContentItem nodeItem)
graphManager
- the graph managernodeItem
- the node itemMethod Detail |
---|
public void addConceptMapListener(GraphNode.ConceptMapListener listener)
listener
- the listenerpublic void fireNodeConnected(GraphLink link)
link
- the linkpublic void fireNodeDisconnected(GraphLink link)
link
- the linkpublic OrthoContentItem getClosePoint()
public GraphManager getGraphManager()
public java.util.ArrayList<GraphLink> getIncomingLinks()
public OrthoContentItem getLinkPoint()
public Location getLocation()
public java.lang.String getName()
public OrthoContentItem getNodeItem()
public java.util.ArrayList<GraphLink> getOutgoingLinks()
public boolean isLinkable()
public void registerIncomingLink(GraphLink link)
link
- the linkpublic void registerOutgoingLink(GraphLink link)
link
- the linkpublic void remove()
public void removeConceptMapListeners()
public void setClosePoint(OrthoContentItem closePoint)
closePoint
- the new close pointpublic void setLinkable(boolean isLinkable)
isLinkable
- the new linkablepublic void setLinkPoint(OrthoContentItem linkPoint)
linkPoint
- the new link pointpublic void setLocation(float x, float y)
x
- the xy
- the ypublic void unregisterAllLinks()
public boolean unregisterLink(GraphLink link)
link
- the link
public void updateConnectionPoints()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |