Interface Panel
access this type via: ui.Panel (provides, requires or uses)
Panel objects host other graphical objects. A Panel is itself a GraphicsObject, so panels can be nested.
Transfer fields
int width
int height
bool repaintOn
Functions
Panel()
void setBackground(
storeColor c)
void clearObjects()
void setSize(int w, int h)
void setRepaint(bool b)
Panel()
Instantiate a new panel.
void setBackground(
storeColor c)
Set the background of the panel.
Get the current background of the panel.
Add a graphical object to the panel.
Remove a graphical object from the panel.
void clearObjects()
Remove all graphical objects from the panel.
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.
Get the size of this panel.
void setRepaint(bool b)
Set global repaint on or off for this panel. When set to off, the panel will not act on repaint events that come from its hosted graphics objects. This can be useful when an application is updating a lot of graphics objects in a panel and wants to e.g. re-draw only once at the end. When repaint is set back to 'on' a full repaint is triggered for everything in the panel.