Examples of DropdownList


Examples of controlP5.DropdownList

   * @param cp5
   * @param yPosStartDrowdown
   * @return
   */
  public static DropdownList createFaderDropdown(ControlP5 cp5, String name, int yPosStartDrowdown) {
    DropdownList dropdownOutputFader = cp5.addDropdownList(name,
            35+Theme.DROPBOX_XOFS*2, 45+yPosStartDrowdown, Theme.DROPBOXLIST_LENGTH, 140);
        Theme.themeDropdownList(dropdownOutputFader);
        int i=0;
        for (FaderName fn: FaderName.values()) {
            dropdownOutputFader.addItem(fn.name(), i++);
        }
        dropdownOutputFader.setLabel(dropdownOutputFader.getItem(0).getName());       
        dropdownOutputFader.setHeight(70);

        return dropdownOutputFader;
  }
View Full Code Here

Examples of controlP5.DropdownList

   * @param cp5
   * @param yPosStartDrowdown
   * @return
   */
  public static DropdownList createEffectDropdown(ControlP5 cp5, String name, int yPosStartDrowdown) {
    DropdownList dropdownOutputEffect = cp5.addDropdownList(name,
            35+Theme.DROPBOX_XOFS, 45+yPosStartDrowdown, Theme.DROPBOXLIST_LENGTH, 140);
        Theme.themeDropdownList(dropdownOutputEffect);
        int i=0;
        for (EffectName gn: EffectName.values()) {
            dropdownOutputEffect.addItem(gn.name(), i++);
        }
        dropdownOutputEffect.setLabel(dropdownOutputEffect.getItem(0).getName());
        dropdownOutputEffect.setHeight(70);
       
        return dropdownOutputEffect;
  }
View Full Code Here

Examples of controlP5.DropdownList

   * @param yPosStartDrowdown
   * @param nrOfVisuals
   * @return
   */
  public static DropdownList createVisualDropdown(ControlP5 cp5, String name, int yPosStartDrowdown, int nrOfVisuals) {
    DropdownList dropdownOutputVisual = cp5.addDropdownList(name,
        35, 45+yPosStartDrowdown, Theme.DROPBOXLIST_LENGTH, 140);
        Theme.themeDropdownList(dropdownOutputVisual);
        int i=0;
        for (i=0; i<nrOfVisuals; i++) {
            dropdownOutputVisual.addItem("Visual #"+(1+i), i);
        }
        dropdownOutputVisual.setLabel(dropdownOutputVisual.getItem(0).getName());
       // dropdownOutputVisual.setHeight(70);

        return dropdownOutputVisual;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.