Package controlP5

Examples of controlP5.Tab


        int ibsX= col.getPixelControllerGenerator().getGenerator(0).getInternalBufferXSize();
        int ibsY= col.getPixelControllerGenerator().getGenerator(0).getInternalBufferYSize();
        cp5.addTextlabel("nfoInternalBuffer", messages.getString("GeneratorGui.INFO_INTERNAL_BUFFERSIZE")+ibsX+"/"+ibsY, nfoXPos, nfoYPos).moveTo(infoTab).getValueLabel(); //$NON-NLS-1$ //$NON-NLS-2$
        nfoYPos+=yposAdd;
       
        Button saveScreenshot = cp5.addButton(GuiElement.SAVE_SCREENSHOT.guiText(), 0,
            nfoXPos, nfoYPos, 110, 15);
        saveScreenshot.setCaptionLabel(messages.getString("GeneratorGui.SAVE_SCREENSHOT")); //$NON-NLS-1$
        saveScreenshot.moveTo(infoTab);
        cp5.getTooltip().register(GuiElement.SAVE_SCREENSHOT.guiText(), messages.getString("GeneratorGui.TOOLTIP_SAVE_SCREENSHOT")); //$NON-NLS-1$

       
        nfoXPos += xposAdd;
        nfoYPos = yPosStartDrowdown+20;
View Full Code Here


  MultiList l;

  public void setup() {
    size(400, 400);
    frameRate(30);
    this.controlP5 = new ControlP5(this);
    // add a multiList to controlP5.
    // elements of the list have default dimensions
    // here, a width of 100 and a height of 12
    this.l = this.controlP5.addMultiList("myList", 0, 10, 100, 12);
    // create a multiListButton which we will use to
View Full Code Here

  // SETUP
  //#############################################################################################################################
  public void setup()  {
    size(canvasWidth, canvasHeight);
    frameRate(30);
    controlP5 = new ControlP5(this);

    // I know that the first port in the serial list is always my Arduino, so I open Serial.list()[0].
    arduino = new Serial(this, Serial.list()[0], 19200); //has to be 19200, because that's also the baud rate of the SM130 RFID Reader module
    arduino.bufferUntil('\n');
   
View Full Code Here

    // INIT GEONAMES
    WebService.setUserName("username"); // add your username here
    searchCriteria.setMaxRows(1);

    // INIT CONTROLP5
    cp5 = new ControlP5(this);

    println(cp5);
    myTextfield = cp5.addTextfield("Search Criteria").setPosition(20, 400).setSize(200, 20).setFocus(true);

    // use setAutoClear(true/false) to clear a textfield or keep text
View Full Code Here

    locations = GeoUtils.getLocationsFromFeatures(features);
    Location center = GeoUtils.getEuclideanCentroid(locations);
    map.panTo(center);

    // UI
    cp5 = new ControlP5(this);
    cp5.addSlider("simplificationTolerance").setPosition(20, 25).setRange(0, 25).setCaptionLabel("Simplification");
    Label label = cp5.addSlider("averageNumber").setPosition(20, 40).setRange(1, 10).setCaptionLabel("Average")
        .getCaptionLabel();

    cp5.addTextlabel("original").setText("ORIGINAL").setPosition(144, 12).setFont(label.getFont())
View Full Code Here

        frameRate(Collector.getInstance().getFps());
        smooth();
        background(0,0,0);   
        int i=0;
       
        cp5 = new ControlP5(this);
        cp5.setAutoDraw(false);
       
        //press alt and you can move gui elements arround. disable this *should* work but does not...
        cp5.setMoveable(false);

View Full Code Here

   * @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

   * @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

   * @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

    map.panTo(center);

    // UI
    cp5 = new ControlP5(this);
    cp5.addSlider("simplificationTolerance").setPosition(20, 25).setRange(0, 25).setCaptionLabel("Simplification");
    Label label = cp5.addSlider("averageNumber").setPosition(20, 40).setRange(1, 10).setCaptionLabel("Average")
        .getCaptionLabel();

    cp5.addTextlabel("original").setText("ORIGINAL").setPosition(144, 12).setFont(label.getFont())
        .setColorValue(color(255));
    cp5.addTextlabel("combined").setText("SIMPL+AVG").setPosition(131, 55).setFont(label.getFont())
        .setColorValue(color(255));

    cp5.addToggle("showOriginal").setPosition(190, 10).setSize(10, 10).setLabelVisible(false);
    cp5.addToggle("showSimplified").setPosition(190, 25).setSize(10, 10).setLabelVisible(false);
    cp5.addToggle("showAveraged").setPosition(190, 40).setSize(10, 10).setLabelVisible(false);
View Full Code Here

TOP

Related Classes of controlP5.Tab

Copyright © 2018 www.massapicom. 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.