Overview
The CubicCurve
class defines a cubic parametric curve
segment by means of a start point (x1, y1), two control points,
(ctrlx1, ctrly1), (ctrlx2, ctrly2), and an end point (x2, y2).
Attribute Summary
name | type | description |
---|---|---|
Public | ||
ctrlx1 | Number |
The x coordinate of the first control point of this cubic curve. |
ctrlx2 | Number |
The x coordinate of the second control point of this cubic curve. |
ctrly1 | Number |
The y coordinate of the first control point of this cubic curve. |
ctrly2 | Number |
The y coordinate of the second control point of this cubic curve. |
x1 | Number |
The x coordinate of the start point of this cubic curve. |
x2 | Number |
The x coordinate of the endpoint of this cubic curve |
y1 | Number |
The y coordinate of the start point of this cubic curve. |
y2 | Number |
The y coordinate of the endpoint of this cubic curve |
Protected |
Inherited Attributes
javafx.ui.canvas.Shape
public | name | type |
---|---|---|
affineTransformHACK | AffineTransform | |
fillRule | FillRule | |
outline | Boolean | |
sgshape | SGShape |
javafx.ui.canvas.VisualNode
public | name | type |
---|---|---|
fill | Paint | |
stroke | Paint | |
strokeDashArray | Number[] | |
strokeDashOffset | Number | |
strokeLineCap | StrokeLineCap | |
strokeLineJoin | StrokeLineJoin | |
strokeMiterLimit | Number | |
strokeWidth | Number |
javafx.ui.canvas.Node
public | name | type |
---|---|---|
bounds | Rectangle2D | |
canAcceptDrop | function(:CanvasDropEvent):boolean | |
clip | Clip | |
currentHeight | Number |
Read-only attribute returning the current height of this node. |
currentWidth | Number |
Read-only attribute returning the current width of this node. |
currentX | Number |
Read-only attribute returning the current x coordinate of this node relative to its parent. |
currentY | Number |
Read-only attribute returning the current y coordinate of this node relative to its parent. |
cursor | Cursor |
Optional cursor to use when the mouse is over this node. |
exportAsDrag | function():CanvasDragEvent | |
exportDrag | Boolean | |
filter | Filter |
An optional Filter chain that will be applied to this node. |
focusable | Boolean |
Sets the focusable state of this Node to the specified value. |
focused | Boolean | |
halign | HorizontalAlignment |
Determines the horizontal alignment of this node relative to its origin. |
hover | Boolean | |
id | String | |
isSelectionRoot | Boolean | |
keyListener | SGKeyListener | |
LISTENER | FXNodeListener | |
MOUSE_DRAG | MouseEvent | |
MOUSE_DRAG_SCREEN | Point | |
MOUSE_PRESS | MouseEvent | |
mouseListener | SGMouseListener | |
onDragEnter | function(:CanvasDropEvent):Void | |
onDragExit | function(:CanvasDropEvent):Void | |
onDrop | function(:CanvasDropEvent):Void | |
onKeyDown | function(:KeyEvent):Void | |
onKeyTyped | function(:KeyEvent):Void | |
onKeyUp | function(:KeyEvent):Void | |
onMouseClicked | function(:CanvasMouseEvent):Void |
|
onMouseDragged | function(:CanvasMouseEvent):Void |
|
onMouseEntered | function(:CanvasMouseEvent):Void |
|
onMouseExited | function(:CanvasMouseEvent):Void |
|
onMouseMoved | function(:CanvasMouseEvent):Void |
|
onMousePressed | function(:CanvasMouseEvent):Void |
|
onMouseReleased | function(:CanvasMouseEvent):Void |
|
opacity | Number |
A number between 0 and 1, 0 being transparent and 1 opaque. |
opacitySet | Boolean | |
scaleToFitCanvas | Boolean |
If true this node will be scaled to the size of its containing canvas. |
selectable | Boolean |
Determines whether this node responds to mouse events, or other picking functions. |
toolTipText | String | |
valign | VerticalAlignment |
Determines the vertical alignment of this node relative to its origin. |
visible | Boolean |
Determines whether this node is visible in the canvas. |
javafx.ui.canvas.CanvasElement
public | name | type |
---|---|---|
parentCanvasElement | CanvasElement |
The containing element of this element. |
javafx.ui.canvas.Transformable
public | name | type |
---|---|---|
affineTransform | AffineTransform | |
onTransformChanged | function(:AffineTransform):Void | |
transform | Transform[] |
A list of transformation functions that will be performed on this object. |
javafx.ui.canvas.AbstractPathElement
public | name | type |
---|---|---|
path | Path |
Function Summary
- public createShape() : SGShape
Inherited Functions
javafx.ui.canvas.Shape
- protected addTo(gp: GeneralPath, ) : Void
- public bound angleAt(length: Number, ) : Number
- protected abstract createShape() : SGShape
- public createVisualNode() : SGAbstractShape
- public getShape() : SGShape
- public getTransformedShape() : Shape
- public bound length() : Number
- public bound pointAt(length: Number, ) : Point2D
- public toPath() : Path
- public transformAt(length: Number, ) : <any>[]
javafx.ui.canvas.VisualNode
- public createNode() : SGNode
- public abstract createVisualNode() : SGAbstractShape
- public getVisualNode() : SGAbstractShape
- public updateStroke() : Void
javafx.ui.canvas.Node
- protected abstract createNode() : SGNode
- public getGlobalBounds() : Rectangle2D
- public getNode() : SGNode
- public handleAcceptDrop(e: CanvasDropEvent, ) : Boolean
- public handleDragEnter(e: CanvasDropEvent, ) : Boolean
- public handleDragExit(e: CanvasDropEvent, ) : Boolean
- public handleDrop(e: CanvasDropEvent, ) : Boolean
- protected installFocusListener() : Void
- public installKeyListener() : Void
- protected installMouseListener() : Void
- protected makeCanvasMouseEvent(e: MouseEvent, ) : CanvasMouseEvent
- protected makeKeyEvent(e: KeyEvent, ) : KeyEvent
- public requestFocus() : Void
javafx.ui.canvas.CanvasElement
- public getCanvas() : Canvas
-
Convenience method to obtain the containing canvas.
- public bound getContainer() : Container
-
Returns the canvas element that contains this element
- public bound hasParent() : Boolean
- public lower() : Void
-
raise this element below its previous sibling
- protected onSetCanvas(canvas: Canvas, ) : Void
- public raise() : Void
-
raise this element above its next sibling
- public toBack() : Void
-
move this element before all of its previous siblings
- public toFront() : Void
-
move this element after all of its following siblings
javafx.ui.canvas.Transformable
- protected updateTransform() : Void
javafx.ui.canvas.AbstractPathElement
- protected abstract addTo(gp: GeneralPath, ) : Void
Attributes
public ctrlx1: Number
The x coordinate of the first control point of this cubic curve.
public ctrlx2: Number
The x coordinate of the second control point of this cubic curve.
public ctrly1: Number
The y coordinate of the first control point of this cubic curve.
public ctrly2: Number
The y coordinate of the second control point of this cubic curve.
public x1: Number
The x coordinate of the start point of this cubic curve.
public x2: Number
The x coordinate of the endpoint of this cubic curve
public y1: Number
The y coordinate of the start point of this cubic curve.
public y2: Number
The y coordinate of the endpoint of this cubic curve
Functions
public createShape():SGShape
-
Returns
- SGShape