Interface Panel
access this type via: ui.Panel (provides, requires or uses)
--- extends:KeyEventObject
Panel objects host other graphical objects. A Panel is itself a GraphicsObject, so panels can be nested.
Transfer fields
int width
int height
Functions
Panel()
void setBackground(storeColor c)
Color getBackground()
void addObject(storeGraphicsObject go)
void remObject(GraphicsObject go)
void clearObjects()
GraphicsObjectItem[] getObjects()
void setSize(int w, int h)
WH getSize()
Transfer fields
width
height
Panel()
Instantiate a new panel.
void setBackground(storeColor c)
Set the background of the panel.
Color getBackground()
Get the current background of the panel.
void addObject(storeGraphicsObject go)
Add a graphical object to the panel.
void remObject(GraphicsObject go)
Remove a graphical object from the panel.
void clearObjects()
Remove all graphical objects from the panel.
GraphicsObjectItem[] getObjects()
Get the list of graphical objects on the panel.
void setSize(int w, int h)
Set the size of this panel. Any graphical objects which are outside of this size will be clipped.
WH getSize()
Get the size of this panel.