[31:7] extends: Node
Wraps JavaFX javafx.scene.shape.Shape, the abstract base class for
every 2D geometric primitive (Circle, Rectangle, Line, Polygon, ...).
Shape extends Node and adds fill paint, stroke paint, stroke width,
stroke type (inside/outside/centered), line join, line cap, miter limit,
dash array, dash offset, and a smooth (anti-alias) flag. All shape
wrappers in fx/ inherit from this class.
| Property | Values | Default | Description |
|---|---|---|---|
-fx-fill |
<paint> |
black |
Fill paint for the interior of the shape. |
-fx-smooth |
true | false |
true |
When true, anti-aliasing is applied to the shape edges. |
-fx-stroke |
<paint> |
null |
Paint for the shape outline stroke. No stroke is drawn when null. |
-fx-stroke-type |
inside | outside | centered |
centered |
Position of the stroke relative to the shape boundary. |
-fx-stroke-dash-array |
<size> [<size>]* |
(none) | Pattern of dashes and gaps for a dashed stroke. |
-fx-stroke-dash-offset |
<number> |
0 |
Offset into the dash pattern at which to begin rendering. |
-fx-stroke-line-cap |
square | butt | round |
square |
Style of the end caps on open path strokes. |
-fx-stroke-line-join |
miter | bevel | round |
miter |
Style used at corners where two stroke segments meet. |
-fx-stroke-miter-limit |
<number> |
10 |
Limit on the ratio of miter length to stroke width; beyond this the join becomes a bevel. |
-fx-stroke-width |
<size> |
1 |
Width of the shape stroke in pixels. |
Shape ()
Empty default constructor; populated by
adopt. Shape is abstract in JavaFX.
adopt (object Ajo)
Wraps an existing javafx.scene.shape.Shape AussomJavaObject.
Ajo is an AussomJavaObject around a javafx.scene.shape.Shape.A new Shape wrapper.setStrokeType (object StrokeType)
Sets the position of the stroke relative to the shape boundary.
StrokeType is a StrokeType AussomJavaObject (INSIDE, OUTSIDE, CENTERED).this objectgetStrokeType ()
Returns the current stroke type.
A StrokeType AussomJavaObject.strokeTypeProperty ()
Returns the strokeType property for this shape.
An ObjectProperty AussomJavaObject.setStrokeWidth (double Width)
Sets the width of the shape outline stroke in pixels.
Width is a double with the stroke width.this objectgetStrokeWidth ()
Returns the current stroke width in pixels.
A double with the stroke width.strokeWidthProperty ()
Returns the strokeWidth property for this shape.
A DoubleProperty AussomJavaObject.setStrokeLineJoin (object LineJoin)
Sets the style used at corners where two stroke segments meet.
LineJoin is a StrokeLineJoin AussomJavaObject (MITER, BEVEL, ROUND).this objectgetStrokeLineJoin ()
Returns the current stroke line join style.
A StrokeLineJoin AussomJavaObject.strokeLineJoinProperty ()
Returns the strokeLineJoin property for this shape.
An ObjectProperty AussomJavaObject.setStrokeLineCap (object LineCap)
Sets the style of the end caps on open path strokes.
LineCap is a StrokeLineCap AussomJavaObject (SQUARE, BUTT, ROUND).this objectgetStrokeLineCap ()
Returns the current stroke line cap style.
A StrokeLineCap AussomJavaObject.strokeLineCapProperty ()
Returns the strokeLineCap property for this shape.
An ObjectProperty AussomJavaObject.setStrokeMiterLimit (double Limit)
Sets the miter limit, the ratio of miter length to stroke width above which a miter join is converted to a bevel.
Limit is a double with the miter limit; values below 1.0 are clamped.this objectgetStrokeMiterLimit ()
Returns the current miter limit.
A double with the miter limit.strokeMiterLimitProperty ()
Returns the strokeMiterLimit property for this shape.
A DoubleProperty AussomJavaObject.setStrokeDashOffset (double Offset)
Sets the offset into the dash pattern at which to begin rendering.
Offset is a double with the dash offset in user-space units.this objectgetStrokeDashOffset ()
Returns the current dash offset.
A double with the dash offset.strokeDashOffsetProperty ()
Returns the strokeDashOffset property for this shape.
A DoubleProperty AussomJavaObject.getStrokeDashArray ()
Returns the observable list of dash segment lengths. Mutate the list to change the dash pattern.
An ObservableList AussomJavaObject of Double values.setFill (object Paint)
Sets the fill paint for the interior of the shape.
Paint is a Paint AussomJavaObject (Color, LinearGradient, RadialGradient, ImagePattern).this objectgetFill ()
Returns the current fill paint.
A Paint AussomJavaObject, or null when there is no fill.fillProperty ()
Returns the fill property for this shape.
An ObjectProperty AussomJavaObject.setStroke (object Paint)
Sets the stroke paint used to draw the shape outline.
Paint is a Paint AussomJavaObject, or null to disable the stroke.this objectgetStroke ()
Returns the current stroke paint.
A Paint AussomJavaObject, or null when there is no stroke.strokeProperty ()
Returns the stroke property for this shape.
An ObjectProperty AussomJavaObject.setSmooth (bool Smooth)
Sets whether anti-aliasing is applied to the shape edges.
Smooth is a bool; when true edges are anti-aliased.this objectisSmooth ()
Returns whether smoothing (anti-aliasing) is enabled.
A bool with the current smooth setting.smoothProperty ()
Returns the smooth property for this shape.
A BooleanProperty AussomJavaObject.getCssMetaData ()
Returns the CSS metadata for this shape's styleable properties.
A List AussomJavaObject of CssMetaData entries.