20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.shape;
27
28
29
30 import javafx.beans.property.DoubleProperty;
31 import javafx.beans.property.DoublePropertyBase;
32 import javafx.css.CssMetaData;
33 import javafx.css.Styleable;
34 import javafx.css.StyleableDoubleProperty;
35 import javafx.css.StyleableProperty;
36 import javafx.scene.paint.Paint;
37 import java.util.ArrayList;
38 import java.util.Collections;
39 import java.util.List;
40 import com.sun.javafx.css.converters.SizeConverter;
41 import com.sun.javafx.geom.BaseBounds;
42 import com.sun.javafx.geom.RoundRectangle2D;
43 import com.sun.javafx.geom.transform.BaseTransform;
44 import com.sun.javafx.scene.DirtyBits;
45 import com.sun.javafx.sg.prism.NGNode;
46 import com.sun.javafx.sg.prism.NGRectangle;
47 import com.sun.javafx.sg.prism.NGShape;
48
49
50 /**
51 * The {@code Rectangle} class defines a rectangle
52 * with the specified size and location. By default the rectangle
53 * has sharp corners. Rounded corners can be specified by setting both of
54 * the arcWidth and arcHeight properties to positive values {@code (> 0.0)}.
55
56 * <p>Example code: the following code creates a rectangle with 20 pixel
57 * rounded corners.</p>
58 *
59 <PRE>
60 import javafx.scene.shape.*;
|
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package javafx.scene.shape;
27
28
29
30 import javafx.beans.property.DoubleProperty;
31 import javafx.beans.property.DoublePropertyBase;
32 import javafx.css.CssMetaData;
33 import javafx.css.Styleable;
34 import javafx.css.StyleableDoubleProperty;
35 import javafx.css.StyleableProperty;
36 import javafx.scene.paint.Paint;
37 import java.util.ArrayList;
38 import java.util.Collections;
39 import java.util.List;
40 import javafx.css.converter.SizeConverter;
41 import com.sun.javafx.geom.BaseBounds;
42 import com.sun.javafx.geom.RoundRectangle2D;
43 import com.sun.javafx.geom.transform.BaseTransform;
44 import com.sun.javafx.scene.DirtyBits;
45 import com.sun.javafx.sg.prism.NGNode;
46 import com.sun.javafx.sg.prism.NGRectangle;
47 import com.sun.javafx.sg.prism.NGShape;
48
49
50 /**
51 * The {@code Rectangle} class defines a rectangle
52 * with the specified size and location. By default the rectangle
53 * has sharp corners. Rounded corners can be specified by setting both of
54 * the arcWidth and arcHeight properties to positive values {@code (> 0.0)}.
55
56 * <p>Example code: the following code creates a rectangle with 20 pixel
57 * rounded corners.</p>
58 *
59 <PRE>
60 import javafx.scene.shape.*;
|