public class RGAttribute
extends Object
Modifier and Type | Field and Description |
---|---|
protected ArrayList |
associatedCells
all of the cells that are associated with this attribute.
|
protected String |
label
the identifying label for this attribute
|
Constructor and Description |
---|
RGAttribute(String s)
Make a new attribute with the given string as a label
|
Modifier and Type | Method and Description |
---|---|
void |
addCell(RGCell c)
Associate the given cell with this attribute.
|
ArrayList |
getCells() |
String |
getLabel()
Returns the label of this particular attribute
|
void |
setLabel(String s)
Sets the label of this attribute; e.g., "4 legs"
|
protected String label
protected ArrayList associatedCells
public RGAttribute(String s)
public void setLabel(String s)
public String getLabel()
public void addCell(RGCell c)
c
- The (already-existing) cell to be added.public ArrayList getCells()