Package org.joshy.gfx.node.control

Examples of org.joshy.gfx.node.control.Checkbox


        panel.add(new Button("large").onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                radius = 17;
            }
        }));
        smooth = new Checkbox("Smooth");
        panel.add(smooth);
    }
View Full Code Here


        color1 = new FreerangeColorPicker();
        color1.setPrefWidth(30);
        color1.setPrefHeight(30);
        color1.setSelectedColor(FlatColor.BLUE);
        color1.setRecenterOnSelect(false);
        useStripe = new Checkbox("Stripe");


        stripes = new VFlexBox();
        stripes.setFill(FlatColor.hsb(0,0,0.8));
        stripes.add(useStripe,0);
View Full Code Here

        final Stage stage = Stage.createStage();
        GridBox grid = new GridBox()
                .createColumn(20, GridBox.Align.Right)
                .createColumn(100, GridBox.Align.Left)
                ;
        final Checkbox backgroundCheckbox = new Checkbox("include background");
        grid.addControl(backgroundCheckbox);
        backgroundCheckbox.setSelected(includeBackground);
        grid.nextRow();
        final Checkbox documentBounds = new Checkbox("full document bounds");
        documentBounds.setSelected(includeDocumentBounds);
        grid.addControl(documentBounds);
        grid.nextRow();
        Button cancelButton = new Button("cancel");
        cancelButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
            }
        });
        grid.addControl(cancelButton);
        Button continueButton = new Button("continue");
        continueButton.onClicked(new Callback<ActionEvent>() {
            public void call(ActionEvent actionEvent) throws Exception {
                stage.hide();
                includeBackground = backgroundCheckbox.isSelected();
                includeDocumentBounds = documentBounds.isSelected();
                SavePNGAction.super.execute();
            }
        });
        grid.addControl(continueButton);
        stage.setContent(grid);
View Full Code Here

TOP

Related Classes of org.joshy.gfx.node.control.Checkbox

Copyright © 2018 www.massapicom. 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.