edu.memphis.ccrg.lida.framework.gui.utils
Class GuiLink

java.lang.Object
  extended by edu.memphis.ccrg.lida.framework.gui.utils.GuiLink

public class GuiLink
extends java.lang.Object

Utility which NodeStructurePanel uses to represent Links. This represents a Link in the Panel. For every Link we create two GuiLinks: 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

Constructor Summary
GuiLink(Link link, char type)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Link getLink()
           
 char getType()
           
 int hashCode()
           
 void setLink(Link link)
           
 void setType(char type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GuiLink

public GuiLink(Link link,
               char type)
Parameters:
link - Link
type - type
Method Detail

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