Overview
The Shape
class provides definitions for common shapes objects that
represent some form of geometric shapes giving their stroke and fill style.
Profile: common
Attribute Summary
name | type | description |
---|---|---|
Public | ||
fill | Paint |
Defines parameters to fill the interior of an Defines parameters to fill the interior of an Default value: null Profile: common This comment needs review. |
smooth | Boolean |
Defines whether antialiasing hints are used or not for this Defines whether antialiasing hints are used or not for this Default value: true This comment needs review. |
stroke | Paint |
Defines parameters of an Defines parameters of an Default value: null Profile: common This comment needs review. |
strokeDashArray | Number[] |
Defines the array representing the lengths of the dash segments. More: [+]Defines the array representing the lengths of the dash segments.
Alternate entries in the array represent the user space lengths
of the opaque and transparent segments of the dashes.
As the pen moves along the outline of the Default value: [1.0] Profile: common This comment needs review. |
strokeDashOffset | Number |
Defines a distance specified in user coordinates that represents an offset into the dashing pattern. More: [+]Defines a distance specified in user coordinates that represents an offset into the dashing pattern. In other words, the dash phase defines the point in the dashing pattern that will correspond to the beginning of the stroke. Default value: 0.0 Profile: common This comment needs review. |
strokeLineCap | StrokeLineCap |
The end cap style of this The end cap style of this Default value: StrokeLineCap.SQUARE Profile: common This comment needs review. |
strokeLineJoin | StrokeLineJoin |
Defines the decoration applied where path segments meet. More: [+]Defines the decoration applied where path segments meet.
The value must have one of the following values:
Default value: StrokeLineJoin.MITER Profile: common This comment needs review. |
strokeMiterLimit | Number |
Defines the limit for the Defines the limit for the Default value: 10.0 Profile: common This comment needs review. |
strokeWidth | Number |
Defines a square pen line width, the default value is 1.0. More: [+]Defines a square pen line width, the default value is 1.0. Default value: 1.0 Profile: common This comment needs review. |
Protected |
Inherited Attributes
javafx.scene.Node
name | type | description |
---|---|---|
anchorX | Number |
Defines the X coordinate of the rotation anchor point of this Defines the X coordinate of the rotation anchor point of this Default value: 0 Profile: common |
anchorY | Number |
Defines the Y coordinate of the rotation anchor point of this Defines the Y coordinate of the rotation anchor point of this Default value: 0 Profile: common |
blocksMouse | Boolean |
More: [+]
Profile: common conditional mouse |
cache | Boolean |
Defines if this node should be cached as a bitmap More: [+]Defines if this node should be cached as a bitmap Profile: common |
clip | Shape |
Defines the clipping shape of this Defines the clipping shape of this Profile: common conditional clip |
clipAntialiased | Boolean |
Defines if the soft clipping is used by this Defines if the soft clipping is used by this Profile: common conditional clip |
cursor | Cursor |
Defines the mouse cursor for this Defines the mouse cursor for this Profile: common conditional cursor |
effect | Effect |
Sets an effect on this node. More: [+]Sets an effect on this node. |
horizontalAlignment | HorizontalAlignment |
Defines the HorizontalAlignment of this Defines the HorizontalAlignment of this Default value: HorizontalAlignment.LEADING Profile: common |
id | String |
The id of this node. More: [+]The id of this node. Default value: null Profile: common |
impl_cachedBounds | Rectangle2D |
More: [+]
This attribute should be treated as private |
impl_cachedXYWH | Rectangle2D |
More: [+]
This attribute should be treated as private |
impl_layoutX | Number |
More: [+]
This attribute should be treated as private |
impl_layoutY | Number |
More: [+]
This attribute should be treated as private |
impl_needsLayout | Boolean |
More: [+]
This attribute should be treated as private |
onKeyPressed | function(:KeyEvent):Void |
Defines a function to be notified when a key has been typed. More: [+]Defines a function to be notified when a key has been typed. Profile: common conditional keyboard |
onKeyReleased | function(:KeyEvent):Void |
Defines a function to be notified when a key has been released. More: [+]Defines a function to be notified when a key has been released. Profile: common conditional keyboard |
onKeyTyped | function(:KeyEvent):Void |
Defines a function to be notified when a key has been typed. More: [+]Defines a function to be notified when a key has been typed. Profile: common conditional keyboard |
onMouseClicked | function(:MouseEvent):Void |
Defines a function to be notified when a mouse button has been clicked
(pressed and released) on this Defines a function to be notified when a mouse button has been clicked
(pressed and released) on this Profile: common conditional mouse |
onMouseDragged | function(:MouseEvent):Void |
Defines a function to be notified when a mouse button is pressed
on this Defines a function to be notified when a mouse button is pressed
on this Profile: common conditional mouse |
onMouseEntered | function(:MouseEvent):Void |
Defines a function to be notified when the mouse enters this Defines a function to be notified when the mouse enters this Profile: common conditional mouse |
onMouseExited | function(:MouseEvent):Void |
Defines a function to be notified when the mouse exits this Defines a function to be notified when the mouse exits this Profile: common conditional mouse |
onMouseMoved | function(:MouseEvent):Void |
Defines a function to be notified when mouse cursor has been moved onto
this Defines a function to be notified when mouse cursor has been moved onto
this Profile: common conditional mouse |
onMousePressed | function(:MouseEvent):Void |
Defines a function to be notified when a mouse button
has been pressed on this Defines a function to be notified when a mouse button
has been pressed on this Profile: common conditional mouse |
onMouseReleased | function(:MouseEvent):Void |
Defines a function to be notified when a mouse button
has been released on this Defines a function to be notified when a mouse button
has been released on this Profile: common conditional mouse |
onMouseWheelMoved | function(:MouseEvent):Void |
Defines a function to be notified when the mouse scroll wheel has moved. More: [+]Defines a function to be notified when the mouse scroll wheel has moved. Profile: common conditional mouse |
opacity | Number |
More: [+]
Profile: common conditional groupOpacity In the common profile opacity is supported unconditionally on all nodes except Group, where on some platforms the implementation might try to deliver the result with best effort. The application should check groupOpacity feature value on the particular platform to see how group opacity works. Possible values are: <ul> <li><code>FULLY_SUPPORTED</code> - for full support of the group opacity</li> <li><code>BEST_EFFORT</code> - for a support which does not guarantee an exact appearance of the group opacity (e.g. overlapping graphics nodes might be visualized differently</li> </ul> On some platforms ImageView might not support opacity attribute. |
rotate | Number |
Defines the angle of rotation measured in degrees for this Defines the angle of rotation measured in degrees for this Profile: common |
scaleX | Number |
Defines the factor by which coordinates are scaled along the
X axis direction of this Defines the factor by which coordinates are scaled along the
X axis direction of this Default value: 1.0 Profile: common |
scaleY | Number |
Defines the factor by which coordinates are scaled along the
Y axis direction of this Defines the factor by which coordinates are scaled along the
Y axis direction of this Default value: 1.0 Profile: common |
shearX | Number |
Defines the multiplier by which coordinates are shifted in the direction of the positive X axis as a factor of their Y coordinate. More: [+]Defines the multiplier by which coordinates are shifted in the direction of the positive X axis as a factor of their Y coordinate. Profile: common |
shearY | Number |
Defines the multiplier by which coordinates are shifted in the direction of the positive Y axis as a factor of their X coordinate More: [+]Defines the multiplier by which coordinates are shifted in the direction of the positive Y axis as a factor of their X coordinate Profile: common |
transform | Transform[] |
Defines the array of Transform objects to be applied when
this Defines the array of Transform objects to be applied when
this Profile: common |
translateX | Number |
Defines the distance by which coordinates are translated in the
X axis direction of this Defines the distance by which coordinates are translated in the
X axis direction of this Default value: 0 Profile: common |
translateY | Number |
Defines the distance by which coordinates are translated in the
Y axis direction of this Defines the distance by which coordinates are translated in the
Y axis direction of this Default value: 0 Profile: common |
verticalAlignment | VerticalAlignment |
Defines the VerticalAlignment of this Defines the VerticalAlignment of this Default value: VerticalAlignment.TOP Profile: common |
visible | Boolean |
Defines if this Defines if this Default value: true Profile: common |
Function Summary
- public impl_getSGAbstractShape() : com.sun.scenario.scenegraph.SGAbstractShape
-
More: [+]
-
Returns
- SGAbstractShape
- public ofTheWay(endVal: java.lang.Object, t: Number) : java.lang.Object
-
More: [+]
-
Parameters
- endVal
- t
-
Returns
- Object
Inherited Functions
javafx.scene.Node
- public contains(x: Number, y: Number) : Boolean
-
Returns
More: [+]true
if the given point (specified in the local coordinate space of thisNode
) is contained within the visual bounds of thisNode
.Returns
true
if the given point (specified in the local coordinate space of thisNode
) is contained within the visual bounds of thisNode
. Note that this method does not take visibility into account; the test is based on the geometry of thisNode
only.-
Parameters
- x
- y
-
Returns
- Boolean
Profile: common
- public bound getBoundsHeight() : Number
-
Returns the current height of this
More: [+]Node
.Returns the current height of this
Node
. This value includes the node's transform.-
Returns
- Number
Profile: common
- public bound getBoundsWidth() : Number
-
Returns the current width of this
More: [+]Node
.Returns the current width of this
Node
. This value includes the node's transform.-
Returns
- Number
Profile: common
- public bound getBoundsX() : Number
-
Returns the current x coordinate of the
More: [+]Node
origin.Returns the current x coordinate of the
Node
origin. This value includes the node's transform.-
Returns
- Number
Profile: common
- public bound getBoundsY() : Number
-
Returns the current y coordinate of the
More: [+]Node
origin.Returns the current y coordinate of the
Node
origin. This value includes the node's transform.-
Returns
- Number
Profile: common
- public bound getHeight() : Number
-
Returns the current height of this
More: [+]Node
.Returns the current height of this
Node
. This value does not include the node's transform.-
Returns
- Number
Profile: common
- public getParent() : Node
-
Returns the parent
More: [+]Node
of thisNode
.Returns the parent
Node
of thisNode
.-
Returns
- Node
Profile: common
- public bound getWidth() : Number
-
Returns the current width of this
More: [+]Node
.Returns the current width of this
Node
. This value does not include the node's transform.-
Returns
- Number
Profile: common
- public bound getX() : Number
-
Returns the current x coordinate of the
More: [+]Node
origin.Returns the current x coordinate of the
Node
origin. This value does not include the node's transform.-
Returns
- Number
Profile: common
- public bound getY() : Number
-
Returns the current y coordinate of the
More: [+]Node
origin.Returns the current y coordinate of the
Node
origin. This value does not include the node's transform.-
Returns
- Number
Profile: common
- public bound hasFocus() : Boolean
-
Returns
More: [+]true
if thisNode
is the focus owner.Returns
true
if thisNode
is the focus owner.-
Returns
- Boolean
Profile: common
- public abstract impl_createSGNode() : com.sun.scenario.scenegraph.SGNode
-
More: [+]
-
Returns
- SGNode
- public impl_getFXNode() : com.sun.scenario.scenegraph.fx.FXNode
-
More: [+]
-
Returns
- FXNode
- public impl_getSGNode() : com.sun.scenario.scenegraph.SGNode
-
More: [+]
-
Returns
- SGNode
- protected impl_requestLayout() : Void
-
Set the impl_needsLayout attribute of every ancestor of this Node.
More: [+]Set the impl_needsLayout attribute of every ancestor of this Node. If this Node is a Group/CustomNode then set its impl_needsLayout attribute as well. We short-circuit when we find a node who's impl_needsLayout bit is already set.
- public impl_updateFXNodeTransform() : Void
-
More: [+]
- public bound isFocusable() : Boolean
-
Defines whether this
More: [+]Node
can be focused.Defines whether this
Node
can be focused.-
Returns
- Boolean
Profile: common
- public isMouseButtonDown(buttonNumber: Integer) : Boolean
-
Returns
More: [+]true
if the specified mouse button is pressed.Returns
true
if the specified mouse button is pressed.-
Parameters
- buttonNumber
- nubmer of mouse button to be checked
-
Returns
- Boolean
Profile: common conditional mouse
- public bound isMouseOver() : Boolean
-
Returns
More: [+]true
if the mouse is over thisNode
.Returns
true
if the mouse is over thisNode
.-
Returns
- Boolean
Profile: common conditional mouse
- public lookup(id: java.lang.String) : Node
-
Returns this Node if its id matches.
More: [+]Returns this Node if its id matches. Otherwise, if this Node is a Group, then return the first descendant whose id matches.
-
Parameters
- id
-
Returns
- Node
Profile: common
- public requestFocus() : Void
-
Requests that this
More: [+]Node
get the input focus, and that thisNode
's top-level ancestor become the focused Window.Requests that this
Node
get the input focus, and that thisNode
's top-level ancestor become the focused Window.Profile: common
- public toBack() : Void
-
Moves this node to the back of it's sibiling nodes
More: [+]Moves this node to the back of it's sibiling nodes
Profile: common
- public toFront() : Void
-
Moves this node to the front of it's sibiling nodes
More: [+]Moves this node to the front of it's sibiling nodes
Profile: common
javafx.animation.Interpolatable
- public abstract ofTheWay(endVal: java.lang.Object, t: Number) : java.lang.Object
-
More: [+]
-
Parameters
- endVal
- t
-
Returns
- Object