Examples of Spacer


Examples of org.jfree.ui.Spacer

        t1.setVerticalAlignment(VerticalAlignment.BOTTOM);
        assertFalse(t1.equals(t2));
        t2.setVerticalAlignment(VerticalAlignment.BOTTOM);
        assertTrue(t1.equals(t2));
       
        t1.setSpacer(new Spacer(Spacer.ABSOLUTE, 5.0, 10.0, 15.0, 20.0));
        assertFalse(t1.equals(t2));
        t2.setSpacer(new Spacer(Spacer.ABSOLUTE, 5.0, 10.0, 15.0, 20.0));
        assertTrue(t1.equals(t2));
       
    }
View Full Code Here

Examples of org.jfree.ui.Spacer

    /**
     * Confirm that the equals method can distinguish all the required fields.
     */
    public void testEquals() {
       
        Spacer s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        Spacer s2 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        assertTrue(s1.equals(s2));
       
        s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        s2 = new Spacer(Spacer.RELATIVE, 0.05, 0.05, 0.05, 0.05);
        assertFalse(s1.equals(s2));

        s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        s2 = new Spacer(Spacer.ABSOLUTE, 0.06, 0.05, 0.05, 0.05);
        assertFalse(s1.equals(s2));

        s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        s2 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.06, 0.05, 0.05);
        assertFalse(s1.equals(s2));

        s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        s2 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.06, 0.05);
        assertFalse(s1.equals(s2));

        s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        s2 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.06);
        assertFalse(s1.equals(s2));
       
    }
View Full Code Here

Examples of org.jfree.ui.Spacer

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {

        final Spacer s1 = new Spacer(Spacer.ABSOLUTE, 0.05, 0.05, 0.05, 0.05);
        Spacer s2 = null;

        try {
            final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            final ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(s1);
View Full Code Here

Examples of org.jfree.ui.Spacer

        assertFalse(b1.equals(b2));
        b2.setOutlineStroke(new BasicStroke(1.1f));
        assertTrue(b1.equals(b2));

        // interiorGap
        b1.setInteriorGap(new Spacer(Spacer.ABSOLUTE, 10, 10, 10, 10));
        assertFalse(b1.equals(b2));
        b2.setInteriorGap(new Spacer(Spacer.ABSOLUTE, 10, 10, 10, 10));
        assertTrue(b1.equals(b2));
       
        // backgroundPaint
        b1.setBackgroundPaint(Color.blue);
        assertFalse(b1.equals(b2));
View Full Code Here

Examples of org.jfree.ui.Spacer

     * @param block  the text block.
     */
    public TextBox(final TextBlock block) {
        this.outlinePaint = Color.black;
        this.outlineStroke = new BasicStroke(1.0f);
        this.interiorGap = new Spacer(Spacer.ABSOLUTE, 3.0, 1.0, 3.0, 1.0);
        this.backgroundPaint = new Color(255, 255, 192);
        this.shadowPaint = Color.gray;
        this.shadowXOffset = 2.0;
        this.shadowYOffset = 2.0;
        this.textBlock = block;     
View Full Code Here

Examples of org.joshy.gfx.node.layout.Spacer

                        .add(new Label("Build number"))
                        .add(new Label(Main.releaseProperties.getProperty("org.joshy.sketch.build.number"))))
                .add(new HFlexBox()
                        .add(new Label("Build date"))
                        .add(new Label(Main.releaseProperties.getProperty("org.joshy.sketch.build.date"))))
                .add(new Spacer(),1)
                .add(new HFlexBox().add(new Spacer(),1).add(new Button("Close").onClicked(closeStage)))
        );
        stage.setWidth(400);
        stage.setHeight(400);
        stage.centerOnScreen();
    }
View Full Code Here

Examples of org.joshy.gfx.node.layout.Spacer

                u.p("version = " + release.attr("version"));
                u.p("description = " + release.text());
                box.add(new Label("Version: " + release.attr("version")).setPrefWidth(200));
                box.add(new Label(release.text()).setPrefWidth(200));
            }
            box.add(new Spacer(),1);
            box.add(new HFlexBox()
                    .add(new Button("Get the Update").onClicked(getUpdate))
                    .add(new Button("Skip This Version").onClicked(skipVersion))
                    .add(new Button("Remind Me Later").onClicked(dismiss))
            );
View Full Code Here

Examples of org.joshy.gfx.node.layout.Spacer

                .add(new Label(getString("misc.changesAppliedLater").toString()))
        );

        stage.setContent(new VFlexBox().setBoxAlign(VFlexBox.Align.Stretch)
                .add(tab,1)
                .add(new HFlexBox().add(new Spacer(),1).add(new Button(getString("misc.close")).onClicked(closeAction)))
        );
    }
View Full Code Here

Examples of org.joshy.gfx.node.layout.Spacer

        tg.setSelectedButton(page);

        grid.addControl(new Label("Share:"));
        grid.addControl(selected);
        grid.nextRow();
        grid.addControl(new Spacer());
        grid.addControl(contents);
        grid.nextRow();
        grid.addControl(new Spacer());
        grid.addControl(page);
        grid.nextRow();
        grid.nextRow();
        grid.addControl(includeStamp);
        grid.nextRow();
View Full Code Here

Examples of org.joshy.gfx.node.layout.Spacer

                                    .createColumn(50,GridBox.Align.Right)
                                    .createColumn(50,GridBox.Align.Fill)
                                    .addControl(new Label(getString("twitterAuthDialog.text1")))
                                    .addControl(new Label(getString("twitterAuthDialog.text2")))
                                    .nextRow()
                                    .addControl(new Spacer())
                                    .addControl(new Button("Goto Twitter.com").onClicked(new Callback<ActionEvent>() {
                                        public void call(ActionEvent event) {
                                            OSUtil.openBrowser(url);
                                        }
                                    }))
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.