Package ModalGUI

Examples of ModalGUI.GUIToggle.addActionListener()


    this.propertiesPanel.add(toggle);

    xPos += 45;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_FOLLOW_EDGE.png", this.controller);
    toggle.setController(this.controller);
    toggle.addActionListener(sliceSelection, "generateFlushTops",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    toggle.setLabel("flush\ntops");
    toggle.label.align = GUILabel.CENTRE;
View Full Code Here


    xPos += 45;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_FOLLOW_EDGE.png", this.controller);
    toggle.setController(this.controller);
    toggle.addActionListener(sliceSelection, "generateFlushTops",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    toggle.setLabel("flush\ntops");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toggle.setState(sliceSelection.smooth);
View Full Code Here

     
      toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_FOLLOW_EDGE.png", this.controller);
      toggle.setController(this.controller);
     
 
      toggle.addActionListener(this, "rebuildChair",
          CrossSliceSelection.CAP_CURVE);
   
     
      toggle.addActionListener(sliceSelection, "extendLegSliceToTopOfLeg",
          CrossSliceSelection.CAP_INSIDE);
View Full Code Here

 
      toggle.addActionListener(this, "rebuildChair",
          CrossSliceSelection.CAP_CURVE);
   
     
      toggle.addActionListener(sliceSelection, "extendLegSliceToTopOfLeg",
          CrossSliceSelection.CAP_INSIDE);
     
     
     
     
View Full Code Here

    posY += 30;
    physicsPanel.placeComponent(button);

    toggle = new GUIToggle(posX, posY, "proButtons/GUI_BUILD_CHAIR_UP.png",
        "proButtons/GUI_BUILD_CHAIR_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "toggleCentreConstraintChair",
        UITools.MOVE_OBJECT);
    gui.add(toggle);
    posY += 30;
    physicsPanel.placeComponent(toggle);
    toggle.setState(true);
View Full Code Here

    */

    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY, "touchButtons"
        + LANGUAGE + "/GUI_DRAW_UP.png", "touchButtons" + LANGUAGE
        + "/GUI_DRAW_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.DRAW_TOOL);
    gui.add(toggle);

    posY += 85;

View Full Code Here

    posY += 85;

    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY, "touchButtons"
        + LANGUAGE + "/GUI_DRAW_LEG_UP.png", "touchButtons" + LANGUAGE
        + "/GUI_DRAW_LEG_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool", UITools.LEG_TOOL);

    gui.add(toggle);

    posY += 85;
View Full Code Here

    posY += 5;
    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY, "touchButtons"
        + LANGUAGE + "/GUI_EDIT_UP.png", "touchButtons" + LANGUAGE
        + "/GUI_EDIT_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SELECT_TOOL);

    gui.add(toggle);

    posY += 85;
View Full Code Here

    posY += 85;
    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY, "touchButtons"
        + LANGUAGE + "/GUI_SIT_UP.png", "touchButtons" + LANGUAGE
        + "/GUI_STAND_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "sitStand", UITools.DRAW_TOOL);

    gui.add(toggle);

    /* 
     
 
View Full Code Here

    posY -= 85;

    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY, "touchButtons"
        + LANGUAGE + "/GUI_UNDO_UP.png", "touchButtons" + LANGUAGE
        + "/GUI_UNDO_DOWN.png", gui);
    toggle.addActionListener(GLOBAL.uiTools, "undo", UITools.DRAW_TOOL);

    gui.add(toggle);

    posY += 85;
    toggle = new GUIToggle(GLOBAL.windowWidth - 100, posY,
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.