|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.insitu.glite.Lite
public abstract class Lite
Lite ojects are very simple objects used to build a 2D scene graph.
| Constructor Summary | |
|---|---|
Lite()
|
|
| Method Summary | |
|---|---|
void |
descendantModified()
Notifies this node that one of its descendant has been modified. |
abstract 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. |
LiteComponent |
getComponent()
|
double |
getHeight()
|
Lite |
getParent()
Returns the parent of this Lite. |
abstract Point2D |
getPosition()
Returns a reference position for this Lite. |
double |
getWidth()
|
double |
getX()
|
double |
getY()
|
int |
indexOf(Lite l)
Returns the index of the specified Lite or -1. |
void |
modified()
Notifies this node that it has been modified. |
void |
moveBy(double dx,
double dy)
Move the Lite by a specified vector. |
abstract void |
paint(LitePaintContext ctx)
Abstract method to called when the Lite should be painted. |
abstract Lite |
pick(LiteBounds box)
Abstract method used to find the top Lite object under a specified bounding box. |
Lite |
pick(Point2D p)
Picks the topmost object under the specified point. |
abstract ArrayList<Lite> |
pickAll(LiteBounds box,
ArrayList<Lite> pickStack)
Abstract method to pick all the Lite objects under a specified bounding box. |
void |
setParent(Lite p)
Sets the parent of this Lite. |
abstract void |
setPosition(double x,
double y)
Change the reference position for this Lite. |
void |
setPosition(Point2D pos)
Change the reference position for this Lite. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Lite()
| Method Detail |
|---|
public abstract LiteBounds getBounds()
public abstract Point2D getPosition()
public final void setPosition(Point2D pos)
pos - the new reference position.
public abstract void setPosition(double x,
double y)
x - the new x coordinatey - the new y coordinatepublic Lite getParent()
public void setParent(Lite p)
p - the new parent of this Lite.public void modified()
public void descendantModified()
public abstract void paint(LitePaintContext ctx)
ctx - the LitePaintContextpublic abstract Lite pick(LiteBounds box)
box - the box
public abstract ArrayList<Lite> pickAll(LiteBounds box,
ArrayList<Lite> pickStack)
box - the bounding boxpickStack - an ArrayList that will hold the Lite objects or null
if you want the Lite to allocate it by itself.
public Lite pick(Point2D p)
p - the point
public int getChildrenCount()
public Lite getChild(int i)
i - the index
public int indexOf(Lite l)
l - the Lite
public double getWidth()
public double getHeight()
public double getX()
public double getY()
public LiteComponent getComponent()
public void moveBy(double dx,
double dy)
dx - the x displacementdy - the y displacement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||