public T setMouseOver(boolean theFlag) { mouseover = theFlag; if (!mouseover) { isInside = false; isInsideGroup = false; _myControlWindow.removeMouseOverFor(this); for (int i = controllers.size() - 1; i >= 0; i--) { controllers.get(i).setMouseOver(false); } } else { // TODO since inside can be either isInside or isInsideGroup, there are 2 options here, // which i am not sure how to handle them yet. _myControlWindow.setMouseOverController(this); } return me; }
/** removes the group from controlP5. */ public void remove() { _myControlWindow.removeMouseOverFor(this); if (_myParent != null) { _myParent.remove(this); } if (cp5 != null) { cp5.remove(this); } for (int i = controllers.size() - 1; i >= 0; i--) { controllers.get(i).remove(); } controllers.clear(); controllers.clearDrawable(); controllers = new ControllerList(); if (this instanceof Tab) { _myControlWindow.removeTab((Tab) this); } }