Package ModalGUI

Examples of ModalGUI.GUIToggle.addActionListener()


    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;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    this.propertiesPanel.add(toggle);
 
View Full Code Here


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

    xPos += 30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CUTOFF.png", this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);

    /*toggle.setLabel("cap\ninside");
 
View Full Code Here

    xPos += 30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CUTOFF.png", this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);

    /*toggle.setLabel("cap\ninside");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
 
View Full Code Here

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

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

    xPos += 30;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_CAP_ROUNDRECT.png", this.controller);
    toggle.setComponentSet(radioSet);
    toggle.addActionListener(sliceSelection, "setCapType",
        CrossSliceSelection.CAP_ROUND_SQUARE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_ROUND_SQUARE);
    /*toggle.setLabel("corner\nradius");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;*/
    this.propertiesPanel.add(toggle);
 
View Full Code Here

   
    xPos -= 90;
    yPos = 60;
   
    toggle = new GUIToggle(xPos, yPos,"gui/GUI_MATERIAL_THROUGHALL_SLOT.png", this.controller);
    toggle.addActionListener(sliceSelection, "toggleConstrainToshape",
        UITools.LEG_TOOL);
    toggle.setLabel("through\nall");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    this.propertiesPanel.add(toggle);
View Full Code Here

    xPos += 45;

   
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLOT_ROTATE_DOWN.png","gui/GUI_SLOT_ROTATE_UP.png", this.controller);
    toggle.setController(this.controller);
    toggle.addActionListener(sliceSelection, "flipSide",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    toggle.setLabel("flip\nslots");
    toggle.label.align = GUILabel.CENTRE;
View Full Code Here

   
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLOT_ROTATE_DOWN.png","gui/GUI_SLOT_ROTATE_UP.png", this.controller);
    toggle.setController(this.controller);
    toggle.addActionListener(sliceSelection, "flipSide",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    toggle.setLabel("flip\nslots");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toggle.setState(sliceSelection.flipSide);
View Full Code Here

    this.propertiesPanel.add(toggle);

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

    xPos += 45;
    toggle = new GUIToggle(xPos, yPos, "gui/GUI_SLICE_SMOOTHED.png", this.controller);
    toggle.setController(this.controller);
    toggle.addActionListener(sliceSelection, "smooth",
        CrossSliceSelection.CAP_INSIDE);
    toggle.addActionListener(this, "rebuildChair",
        CrossSliceSelection.CAP_CURVE);
    toggle.setLabel("smooth");
    toggle.label.align = GUILabel.CENTRE;
    toggle.label.layout = GUILabel.UNDER_COMPONENT;
    toggle.setState(sliceSelection.smooth);
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.