Package ModalGUI

Examples of ModalGUI.GUISlider.addActionListener()


    posY += 85;

    GUISlider slider = new GUISlider(GLOBAL.windowWidth - 60, posY, 60, 20,
        50, gui);
    slider.setVal(GLOBAL.uiTools.brush_dia);
    slider.addActionListener(GLOBAL.uiTools, "changeToolWidth",
        UITools.DRAW_TOOL);
    slider.setShowValLabel(true);
    slider.setLabelValMultiplier(2.0f);

    toggle.addToolTip(GLOBAL.applet, "proButtons/GUI_DRAW_TOOLTIP",
View Full Code Here


   
   
    yPos = 32;
    GUISlider brushSize = new GUISlider(20, yPos, 150, 1, 100, gui);
    brushSize.setLabel("brush size");
    brushSize.addActionListener(GLOBAL.uiTools, "setBrushDia",
        UITools.SCALE_TOOL);
    brushSize.setVal(GLOBAL.uiTools.SketchTools.brush_dia);
    brushSize.label.align = GUILabel.LEFT;
    brushSize.label.layout = GUILabel.UNDER_COMPONENT;
    brushSize.setEndImgs(GLOBAL.applet.loadImage("gui/SLIDER_BRUSH_SIZE_SMALL.png"),GLOBAL.applet.loadImage("gui/SLIDER_BRUSH_SIZE_BIG.png"));
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.