|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.conceptmap.graphcomponents.GraphComponent
apps.conceptmap.graphcomponents.nodes.GraphNode
public abstract class GraphNode
The Class GraphNode.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class apps.conceptmap.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. |
ContentItem |
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 |
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.conceptmap.graphcomponents.GraphComponent |
---|
addOptionMessageListener, fireMessageProcessed, removeOptionMessageListeners |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BOTTOM_LEFT_CORNER
public static final java.lang.String BOTTOM_RIGHT_CORNER
public static final java.lang.String MIDDLE
public static final java.lang.String TOP_LEFT_CORNER
public static final java.lang.String TOP_RIGHT_CORNER
Constructor Detail |
---|
public GraphNode(ContentSystem contentSystem, GraphManager gManager)
contentSystem
- the content systemgManager
- the g managerMethod Detail |
---|
public void addConceptMapListener(ConceptMapListener listener)
listener
- the listenerpublic boolean contains(java.awt.geom.Point2D.Float point)
point
- the point
public void fireNodeConnected(GraphLink link)
link
- the linkpublic void fireNodeDisconnected(GraphLink link)
link
- the linkpublic SimpleButton getCloseButton()
public java.util.ArrayList<GraphLink> getIncomingLinks()
public SimpleButton getLinkButton()
public Location getLocation()
public java.lang.String getName()
GraphComponent
getName
in class GraphComponent
public ContentItem getNodeContainer()
public int getOrder()
public java.util.ArrayList<GraphLink> getOutgoingLinks()
public boolean isLinkable()
public boolean isVisible()
public void registerIncomingLink(GraphLink link)
link
- the linkpublic void registerOutgoingLink(GraphLink link)
link
- the linkpublic void remove()
public void removeConceptMapListeners()
public abstract void setCloseButtonLocation(java.lang.String location)
location
- the new close button locationpublic void setLinkable(boolean isLinkable)
isLinkable
- the new linkablepublic abstract void setLinkButtonLocation(java.lang.String location)
location
- the new link button locationpublic void setLocation(float x, float y)
x
- the xy
- the ypublic void setOrder(int zOrder)
zOrder
- the new orderpublic void setScale(float scaleFactor)
scaleFactor
- the new scalepublic void setVisible(boolean isVisible)
isVisible
- the new visiblepublic void unregisterAllLinks()
public boolean unregisterLink(GraphLink link)
link
- the link
public void updateConnectionPoints()
public void updateNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |