|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GContainer
Defines the functionality of an object that can serve as the parent
of a GObject.
| Field Summary | |
|---|---|
int |
BACK_TO_FRONT
|
int |
FRONT_TO_BACK
|
| Method Summary | |
|---|---|
void |
add(GObject gobj)
|
void |
add(GObject gobj,
double x,
double y)
x, y). |
void |
add(GObject gobj,
GPoint pt)
|
GObject |
getElement(int index)
|
GObject |
getElementAt(double x,
double y)
x, y), or null if no such
object exists. |
GObject |
getElementAt(GPoint pt)
null if no such object exists. |
int |
getElementCount()
GCanvas. |
void |
remove(GObject gobj)
|
void |
removeAll()
|
| Field Detail |
|---|
static final int BACK_TO_FRONT
static final int FRONT_TO_BACK
| Method Detail |
|---|
void add(GObject gobj)Usage: | gc.add(gobj); | ||
Parameter: |
|
void add(GObject gobj,
double x,
double y)x, y).
Usage: | gc.add(gobj, x, y); | ||||||
Parameters: |
|
void add(GObject gobj,
GPoint pt)Usage: | gc.add(gobj, pt); | ||||
Parameters: |
|
GObject getElement(int index)Usage: | GObject gobj = gc.getElement(index); | ||
Parameter: |
| ||
Returns: | The graphical object at the specified index |
GObject getElementAt(double x,
double y)x, y), or null if no such
object exists.
Usage: | GObject gobj = gc.getElementAt(x, y); | ||||
Parameters: |
| ||||
Returns: | The graphical object at the specified location, or null
if no such object exists.
|
GObject getElementAt(GPoint pt)null if no such object exists.
Usage: | GObject gobj = gc.getElementAt(pt); | ||
Parameter: |
| ||
Returns: | The graphical object at the specified location, or null
if no such object exists
|
int getElementCount()GCanvas.
Usage: | int n = gc.getElementCount(); |
Returns: | The number of graphical objects in this GCanvas
|
void remove(GObject gobj)Usage: | gc.remove(gobj); | ||
Parameter: |
|
void removeAll()Usage: | gc.removeAll(); |
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||