Package ModalGUI

Examples of ModalGUI.GUIToggle.addActionListener()


    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/measure.png", gui);
    toggle.setComponentSet(GLOBAL.uiTools.toggleSet);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.MEASURE_TOOL);
    toggle.setLabel("measure");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    if (GLOBAL.uiTools.getCurrentTool() == UITools.MEASURE_TOOL)
View Full Code Here


    toolPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/scale.png", gui);
    toggle.setComponentSet(GLOBAL.uiTools.toggleSet);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SCALE_TOOL);
    toggle.setLabel("scale");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
View Full Code Here

    GLOBAL.toggleSetSlices = new GUIComponentSet();

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/GUI_SLICE_SLICE_BUTTON.png", gui);
    toggle.setComponentSet(GLOBAL.toggleSetSlices);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SLICES_SINGLE_SLICE);
    toggle.setLabel("slice");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    slicesPanel.placeComponent(toggle);
View Full Code Here

    slicesPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/GUI_SLICE_MULTISLICE_BUTTON.png", gui);
    toggle.setComponentSet(GLOBAL.toggleSetSlices);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SLICES_GROUP_SLICES);
    toggle.setLabel("slice" + '\n' + "group");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    slicesPanel.placeComponent(toggle);
View Full Code Here

    slicesPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/GUI_SLICE_SLAT_BUTTON.png", gui);
    toggle.setComponentSet(GLOBAL.toggleSetSlices);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SLICES_SINGLE_SLAT);
    toggle.setLabel("slat");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    slicesPanel.placeComponent(toggle);
View Full Code Here

    slicesPanel.placeComponent(toggle);

    toggle = new GUIToggle(posX, posY, button_width, button_height,
        "gui/GUI_SLICE_SLAT_BUTTON.png", gui);
    toggle.setComponentSet(GLOBAL.toggleSetSlices);
    toggle.addActionListener(GLOBAL.uiTools, "selectTool",
        UITools.SLICES_SLATSLICE_GROUP);
    toggle.setLabel("slatSlice" + '\n' + "group");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    slicesPanel.placeComponent(toggle);
View Full Code Here

   
    xPos+=30;
    GUIToggle toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_ROUND.png",
        gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_ROUND);
    /*toggle.setLabel("round");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_ROUND)
View Full Code Here

    add(toggle);

    xPos+=30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_BUT.png", gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_BUTT);
    /*toggle.setLabel("butt");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_BUTT)
View Full Code Here

    add(toggle);
   
    xPos+=30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SHAPE_CAP_PARALLEL.png", gui);
    toggle.setComponentSet(toggleSetCaps);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "selectCap",
        SketchSpline.CAP_PARRALEL);
    /*toggle.setLabel("parallel");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    if(GLOBAL.uiTools.SketchTools.getCap() == SketchSpline.CAP_PARRALEL)
View Full Code Here

    this.add(label);
   
   
    toggle = new GUIToggle(xPos, yPos,
        "gui/GUI_SHAPE_CUT.png", gui);
    toggle.addActionListener(GLOBAL.uiTools.SketchTools, "toggleUnion",
        SketchSpline.CAP_PARRALEL);
 
    add(toggle);
   
   
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.