|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.insitu.glite.Lite
fr.inria.insitu.glite.nodes.LiteGroup
public class LiteGroup
A Lite managing several Lite objects.
| Constructor Summary | |
|---|---|
LiteGroup()
Create an empty LiteGroup. |
|
| Method Summary | |
|---|---|
void |
addChild(int index,
Lite l)
Adds a Lite to this group at the specified index. |
void |
addChild(Lite l)
Adds a Lite to the end of this group. |
void |
clear()
Removes all the Lite objects from this LiteGroup. |
void |
descendantModified()
Notifies this node that one of its descendant has been modified. |
LiteBounds |
getBounds()
Returns the bounds of this lite. |
Lite |
getChild(int i)
Returns the Lite contained at the specified index in that Lite or null. |
int |
getChildrenCount()
Returns the number of children contained in the Lite. |
Point2D |
getPosition()
Returns a reference position for this Lite. |
void |
moveToTop(Lite l)
Moves the specified Lite to the end of this LiteGroup. |
void |
paint(LitePaintContext ctx)
Abstract method to called when the Lite should be painted. |
Lite |
pick(LiteBounds box)
Abstract method used to find the top Lite object under a specified bounding box. |
ArrayList<Lite> |
pickAll(LiteBounds box,
ArrayList<Lite> pickStack)
Abstract method to pick all the Lite objects under a specified bounding box. |
void |
removeChild(int index)
Removes the Lite at the specfied index from this LiteGroup. |
void |
removeChild(Lite l)
Removes the specified Lite from this LiteGroup. |
void |
setPosition(double x,
double y)
Change the reference position for this Lite. |
| Methods inherited from class fr.inria.insitu.glite.Lite |
|---|
getComponent, getHeight, getParent, getWidth, getX, getY, indexOf, modified, moveBy, pick, setParent, setPosition |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LiteGroup()
| Method Detail |
|---|
public void descendantModified()
descendantModified in class Litepublic LiteBounds getBounds()
getBounds in class Litepublic Lite getChild(int i)
getChild in class Litei - the index
public int getChildrenCount()
getChildrenCount in class Lite
public void addChild(int index,
Lite l)
index - the indexl - the Lite to addpublic void addChild(Lite l)
l - the Lite to addpublic void removeChild(Lite l)
l - the lite to removepublic void removeChild(int index)
index - the index of the Lite to removepublic void moveToTop(Lite l)
l - the litepublic void clear()
public void paint(LitePaintContext ctx)
paint in class Litectx - the LitePaintContextpublic Lite pick(LiteBounds box)
pick in class Litebox - the box
public ArrayList<Lite> pickAll(LiteBounds box,
ArrayList<Lite> pickStack)
pickAll in class Litebox - the bounding boxpickStack - an ArrayList that will hold the Lite objects or null
if you want the Lite to allocate it by itself.
public Point2D getPosition()
getPosition in class Lite
public void setPosition(double x,
double y)
setPosition in class Litex - the new x coordinatey - the new y coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||