file: Shape.aus

class: Shape

[32: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.

CSS Properties -- Shape

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.

Methods