/** {@inheritDoc} */ @Override public ListBox setColor(CColor theColor) { setColorActive(theColor.getActive()); setColorForeground(theColor.getForeground()); setColorBackground(theColor.getBackground()); setColorLabel(theColor.getCaptionLabel()); setColorValue(theColor.getValueLabel()); return this; }
/** {@inheritDoc} */ public T setColorValue(int theColor) { color.setValueLabel(theColor); if (_myValueLabel != null) { _myValueLabel.setColor(color.getValueLabel()); } for (ControllerInterface<?> ci : controllers.get()) { ci.setColorValue(theColor); } return me; }
/** {@inheritDoc} */ public T setColorBackground(int theColor) { color.setBackground(theColor); for (ControllerInterface<?> ci : controllers.get()) { ci.setColorBackground(theColor); } return me; }
/** {@inheritDoc} */ public T setColorActive(int theColor) { color.setActive(theColor); for (ControllerInterface<?> ci : controllers.get()) { ci.setColorActive(theColor); } return me; }
/** * @param theControlP5 ControlP5 * @param theParent ControllerGroup * @param theName String * @param theX float * @param theY float * @exclude */ public ControllerGroup( ControlP5 theControlP5, ControllerGroup<?> theParent, String theName, float theX, float theY) { position = new PVector(theX, theY, 0); cp5 = theControlP5; me = (T) this; color.set((theParent == null) ? cp5.color : theParent.color); _myName = theName; controllers = new ControllerList(); _myControlCanvas = new ArrayList<ControlWindowCanvas>(); _myLabel = new Label(cp5, _myName); _myLabel.setColor(color.getCaptionLabel()); setParent((theParent == null) ? this : theParent); }