exe
Class RefBox

java.lang.Object
  extended by exe.RefBox

public class RefBox
extends java.lang.Object

A RefBox represents a single box within a RefStruct. It contains the RefBox's label, color, and either the data it contains or the RefStruct it references.


Constructor Summary
RefBox(java.lang.String l)
          Create an empty, black RefBox with the given label.
RefBox(java.lang.String l, GAIGSRefStruct s)
          Create a black RefBox with the given label and an arrow pointing to the given RefStruct.
RefBox(java.lang.String l, java.lang.Object d)
          Create a black RefBox with the given label and containing the given data.
RefBox(java.lang.String l, java.lang.String c)
          Create an empty RefBox of the given color witht the given label.
RefBox(java.lang.String l, java.lang.String c, GAIGSRefStruct s)
          Create a RefBox of the given color with the given label above it with an arrow pointing to the given RefStruct.
RefBox(java.lang.String l, java.lang.String c, java.lang.Object d)
          Create a RefBox of the given color with the given label above it containing the given data.
 
Method Summary
 java.lang.String getColor()
          Returns the RefBox's color
 java.lang.Object getData()
          Returns the RefBox's data
 java.lang.String getLabel()
          Returns the RefBox's label
 GAIGSRefStruct getReference()
          Returns the RefStruct that is referenced by the RefBox
 boolean hasData()
          Returns true iff the RefBox contains data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RefBox

public RefBox(java.lang.String l)
Create an empty, black RefBox with the given label.

Parameters:
l - The label that you want to have above the RefBox.

RefBox

public RefBox(java.lang.String l,
              java.lang.String c)
Create an empty RefBox of the given color witht the given label.

Parameters:
l - The label that you want to have above the RefBox.
c - The color that you want the RefBox to be.

RefBox

public RefBox(java.lang.String l,
              java.lang.Object d)
Create a black RefBox with the given label and containing the given data.

Parameters:
l - The label that you want to have above the RefBox.
d - The data that you want inside of the RefBox.

RefBox

public RefBox(java.lang.String l,
              GAIGSRefStruct s)
Create a black RefBox with the given label and an arrow pointing to the given RefStruct.

Parameters:
l - The label that you want to have above the RefBox.
s - The RefStruct that this RefBox references.

RefBox

public RefBox(java.lang.String l,
              java.lang.String c,
              java.lang.Object d)
Create a RefBox of the given color with the given label above it containing the given data.

Parameters:
l - The label that you want to have above the RefBox.
c - The color that you want the RefBox to be.
d - The data the you want inside of the RefBox.

RefBox

public RefBox(java.lang.String l,
              java.lang.String c,
              GAIGSRefStruct s)
Create a RefBox of the given color with the given label above it with an arrow pointing to the given RefStruct.

Parameters:
l - The label that you want to have above the RefBox.
c - The color that you want the RefBox to be.
s - The data that you want inside of the RefBox.
Method Detail

getLabel

public java.lang.String getLabel()
Returns the RefBox's label

Returns:
The RefBox's label

getColor

public java.lang.String getColor()
Returns the RefBox's color

Returns:
The RefBox's color

getData

public java.lang.Object getData()
Returns the RefBox's data

Returns:
The RefBox's data

getReference

public GAIGSRefStruct getReference()
Returns the RefStruct that is referenced by the RefBox

Returns:
The RefStruct that is referenced by the RefBox

hasData

public boolean hasData()
Returns true iff the RefBox contains data

Returns:
If the RefBox contains data