edu.memphis.ccrg.lida.framework.gui.utils
Class GuiLink
java.lang.Object
edu.memphis.ccrg.lida.framework.gui.utils.GuiLink
public class GuiLink
- extends java.lang.Object
Utility which NodeStructurePanel
uses to represent Link
s.
This represents a Link in the Panel. For every Link
we create two GuiLink
s:
The first GuiLink
has type 'S' for "source".
It connects the source of the Link
to the Link
itself.
The second GuiLink
has type 'D' for "destination".
It connects the Link
itself to the sink of the Link
- Author:
- Javier Snaider
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
GuiLink
public GuiLink(Link link,
char type)
- Parameters:
link
- Link
type
- type
getLink
public Link getLink()
- Returns:
- the link
setLink
public void setLink(Link link)
- Parameters:
link
- the link to set
getType
public char getType()
- Returns:
- the type
setType
public void setType(char type)
- Parameters:
type
- the type to set
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object