UC Berkeley Group for User Interface Research
Updated November 17, 2000

edu.berkeley.guir.brainstorm
Class Link

java.lang.Object
  |
  +--edu.berkeley.guir.brainstorm.Link
All Implemented Interfaces:
BrainstormConstants

public class Link
extends Object
implements BrainstormConstants

 Revisions:  1.0.0  06-27-2000 JH
                    Created class
 

Since:
JDK 1.3
Version:
Version 1.0.0, 06-27-2000
Author:
Jason Hong ( jasonh@cs.berkeley.edu )

Fields inherited from interface edu.berkeley.guir.brainstorm.BrainstormConstants
PORT
 
Constructor Summary
Link(BrainstormSheet newSheet, int start, int end)
          Create a link with the specified start and end.
 
Method Summary
 boolean equals(Object obj)
          See if one link is equivalent to another.
 BrainNote getEndNote()
           
 int getEndNoteID()
           
 BrainNote getStartNote()
           
 int getStartNoteID()
           
 boolean isAssociated(int id)
          Check if this link is associated with the specified ID.
 boolean isValid()
          A link is valid if both notes exist.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Link

public Link(BrainstormSheet newSheet,
            int start,
            int end)
Create a link with the specified start and end.
Method Detail

isValid

public boolean isValid()
A link is valid if both notes exist.

getStartNoteID

public int getStartNoteID()

getEndNoteID

public int getEndNoteID()

getStartNote

public BrainNote getStartNote()

getEndNote

public BrainNote getEndNote()

isAssociated

public boolean isAssociated(int id)
Check if this link is associated with the specified ID.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
See if one link is equivalent to another.
Overrides:
equals in class Object

Copyright Information