|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ls.Item
This class is responsible for keeping track of the node and the corresponding graphical representation of the node.
| Constructor Summary | |
Item()
Creates a new item with no associated Block or Ellipse2D.Double |
|
Item(Block b,
java.awt.geom.Ellipse2D.Double e)
Creates a new item with a specific Block and Ellipse2D.Double |
|
| Method Summary | |
void |
deleteChild(Item item)
Deletes a specific Item from the child list. |
void |
deleteParent(Item item)
Deletes a specific Item from the parent list. |
Item |
getChild(int i)
Gets a specific child associated with this Item |
java.util.Vector |
getChildren()
|
java.awt.geom.Ellipse2D.Double |
getEllipse()
Returns the Ellipse2D.Double associated with this item |
Block |
getItem()
Gets the node corresponding to this item |
Item |
getParent(int i)
Gets a specific parent associated with this Item |
java.util.Vector |
getParents()
|
int |
numChild()
Returns the number of children this particular Item has. |
int |
numParents()
Returns the number of parents this particular Item has. |
void |
print()
|
void |
setChild(Item i)
Associates the Item with a new child. |
void |
setParent(Item i)
Associates the Item with a new parent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Item()
public Item(Block b,
java.awt.geom.Ellipse2D.Double e)
b - the Block that is being added to the editore - the Ellipse2D.Double corresponding to that Block| Method Detail |
public Block getItem()
public java.awt.geom.Ellipse2D.Double getEllipse()
public Item getParent(int i)
i - the location of the parentpublic java.util.Vector getParents()
public void setParent(Item i)
i - the Item to add onto the parent listpublic int numParents()
public void deleteParent(Item item)
public Item getChild(int i)
i - the location of the childpublic java.util.Vector getChildren()
public void setChild(Item i)
i - the Item to add onto the child listpublic int numChild()
public void deleteChild(Item item)
public void print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||