Examples of relocate()


Examples of javafx.scene.layout.Region.relocate()

                cosValue = Math.cos(Math.toRadians(angle));
                Region tick = ticks.get(index);
                if (angle % 30 == 0) {
                    tick.setPrefWidth(size * majorTickWidthFactor);
                    tick.setPrefHeight(size * majorTickHeightFactor);                   
                    tick.relocate(size * 0.5 + ((size * (radius + majorTickOffset) * sinValue) - (size * (majorTickWidthFactor) * 0.5)),
                                  size * 0.5 + ((size * (radius + majorTickOffset) * cosValue) - (size * (majorTickHeightFactor) * 0.5)));
                } else {
                    tick.setPrefWidth(size * minorTickWidthFactor);
                    tick.setPrefHeight(size * minorTickHeightFactor);                   
                    tick.relocate(size * 0.5 + ((size * (radius + minorTickOffset) * sinValue) - (size * (minorTickWidthFactor) * 0.5)),
 
View Full Code Here

Examples of javafx.scene.layout.Region.relocate()

                    tick.relocate(size * 0.5 + ((size * (radius + majorTickOffset) * sinValue) - (size * (majorTickWidthFactor) * 0.5)),
                                  size * 0.5 + ((size * (radius + majorTickOffset) * cosValue) - (size * (majorTickHeightFactor) * 0.5)));
                } else {
                    tick.setPrefWidth(size * minorTickWidthFactor);
                    tick.setPrefHeight(size * minorTickHeightFactor);                   
                    tick.relocate(size * 0.5 + ((size * (radius + minorTickOffset) * sinValue) - (size * (minorTickWidthFactor) * 0.5)),
                                  size * 0.5 + ((size * (radius + minorTickOffset) * cosValue) - (size * (minorTickHeightFactor) * 0.5)));
                }
                tick.setRotate(-angle);
                index++;
            }
View Full Code Here

Examples of javafx.scene.text.Text.relocate()

        Text label = new Text(" " + labelText + " ");
        label.setTextAlignment(TextAlignment.CENTER);
        label.setFont(Font.font(null, bold ? FontWeight.BOLD : FontWeight.NORMAL, 10));
        //position label accounting for width
        label.relocate(labelX + labelWidth / 2 - label.getBoundsInLocal().getWidth() / 2, 0);
        label.autosize();

        if (leafPane.getChildren().isEmpty()) {
            //just add first label
            leafPane.getChildren().add(label);
View Full Code Here

Examples of org.apache.maven.model.converter.relocators.PluginRelocator.relocate()

        Iterator iterator = pluginRelocators.iterator();
        while ( iterator.hasNext() )
        {
            pluginRelocator = (PluginRelocator) iterator.next();
            pluginRelocator.addListeners( listeners );
            pluginRelocator.relocate( v4Model );
        }

        // Sort the plugins
        if ( v4Model.getBuild() != null )
        {
View Full Code Here

Examples of org.apache.maven.plugin.surefire.util.Relocator.relocate()

    public void testFoo()
    {
        Relocator relocator = new Relocator( "shadefire" );
        String cn = "org.apache.maven.surefire.report.ForkingConsoleReporter";
        assertEquals( "org.apache.maven.surefire.shadefire.report.ForkingConsoleReporter", relocator.relocate( cn ) );
    }

    public void testRelocation()
    {
        Relocator relocator = new Relocator( "shadefire" );
View Full Code Here

Examples of org.apache.maven.plugin.surefire.util.Relocator.relocate()

    public void testRelocation()
    {
        Relocator relocator = new Relocator( "shadefire" );
        String org1 = "org.apache.maven.surefire.fooz.Baz";
        assertEquals( "org.apache.maven.surefire.shadefire.fooz.Baz", relocator.relocate( org1 ) );
    }
}
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.