Package ModalGUI

Examples of ModalGUI.GUIToggle.addActionListener()


    GUIComponentSet toggleSet = new GUIComponentSet();

    GUIToggle toggle = new GUIToggle(posX, posY, button_width,
        button_height, "gui/draw.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.DRAW_TOOL);
    toggle.setLabel("brush");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(toggle);
View Full Code Here


    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/add_leg.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.LEG_TOOL);
    toggle.setLabel("leg");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toolPanel.placeComponent(toggle);
View Full Code Here

    if (iconFile == "")
      iconFile = "gui/GUI_SLICE_MULTISLICE_ICON.png";

    GUIToggle toggle = new GUIToggle(XPos, 30, 35, 35, iconFile, gui);
    toggle.setComponentSet(toggleSetSlices);
    toggle.addActionListener(this, "selectSlice", sliceSelections.size());

    toggle.setLabel(Integer.toString(SliceCount));
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/draw_path.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.DRAW_PATH_TOOL);
    toggle.setLabel("path");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/select.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.SELECT_TOOL);
    toggle.setLabel("select");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    this.propertiesPanel.add(label);
    xPos += 35;

    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CAP_WING.png",this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_CURVE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
   
    /*toggle.setLabel("cap\ncurve");
 
View Full Code Here

    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CAP_WING.png",this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_CURVE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
   
    /*toggle.setLabel("cap\ncurve");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
 
View Full Code Here

    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/bezier.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.SELECT_BEZIER_TOOL);
    toggle.setLabel("bezier");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    toggle.setState((sliceSelection.getCapType() == CrossSliceSelection.CAP_CURVE));

    xPos += 30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CAP_SQUARE.png", this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_BUTT);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    /*toggle.setLabel("cap\nsquare");
    toggle.label.align = GUILabel.CENTRE;
View Full Code Here

    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/draw_path.png", gui);
    toggle.setComponentSet(toggleSet);
    toggle.addActionListener(sketch.getSketchTools(), "selectTool",
        SketchTools.DRAW_OFFSETPATH_TOOL);
    toggle.setLabel("offset path");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
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.