javafx.ui.canvas

VisualNode

Extends: Node

Abstract base class for visual elements that appear in the canvas.

Attributes

protected awtFill: java.awt.Paint?
protected awtStroke: java.awt.Paint?
public composite: java.awt.AlphaComposite?
public fill: Paint?
The fill property paints the interior of the given graphical element. The area to be painted consists of any areas inside the outline of the node's shape.
public stroke: Paint?
The stroke property paints along the outline of the given graphical element.
public strokeComposite: java.awt.AlphaComposite?
public strokeDashArray: Number*
strokeDashArray controls the pattern of dashes and gaps used to stroke paths. This attribute contains a list of lengths that specify the lengths of alternating dashes and gaps. If an odd number of values is provided, then the list of values is repeated to yield an even number of values. Thus, strokeDashArray: [5,3,2] is equivalent to strokeDashArray: [5,3,2,5,3,2]. Defaults to [].
public strokeDashOffset: Number
strokeDashOffset specifies the distance into the dash pattern to start the dash. Defaults to 0.0.
public strokeLineCap: StrokeLineCap
strokeLineCap specifies the shape to be used at the end of open subpaths when they are stroked. Defaults to SQUARE.
public strokeLineJoin: StrokeLineJoin
strokeLineJoin specifies the shape to be used at the corners of paths or basic shapes when they are stroked. Defaults to MITER.
public strokeMiterLimit: Number

When two line segments meet at a sharp angle and miter joins have been specified for 'stroke-linejoin', it is possible for the miter to extend far beyond the thickness of the line stroking the path. The 'strokeMiterLimit' imposes a limit on the ratio of the miter length to the 'strokeWidth'. When the limit is exceeded, the join is converted from a miter to a bevel.

strokeMiterLimit
The limit on the ratio of the miter length to the 'strokeWidth'. The value of must be a number greater than or equal to 1. Any other value is an error. Defaults to 10.0.

The ratio of miter length (distance between the outer tip and the inner corner of the miter) to 'strokeWidth' is directly related to the angle (theta) between the segments in user space by the formula:

    miterLength / strokeWidth = 1 / sin(theta/2)

For example, a miter limit of 1.414 converts miters to bevels for theta less than 90 degrees, a limit of 4.0 converts them for theta less than approximately 29 degrees, and a limit of 10.0 converts them for theta less than approximately 11.5 degrees.

public strokeWidth: Number
The width of the stroke on the current object. A zero value causes no stroke to be painted. A negative value is an error. Defaults to 1.0.
private zvisualnode: net.java.javafx.jazz.component.ZBasicVisualComponent

Attributes Inherited from javafx.ui.canvas.Node

ag, alignmentTransform, antialiasClip, bounds, cachedCanvas, canAcceptDrop, cg, clip, clipNode, currentHeight, currentWidth, currentX, currentY, cursor, dragCount, exportAsDrag, exportDrag, fadeGroup, filter, filterGroup, focusable, focused, halign, hover, id, isSelectionRoot, mouseListener, mouseMotionListener, onDragEnter, onDragExit, onDrop, onKeyDown, onKeyTyped, onKeyUp, onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, opacity, scaleToFitCanvas, selectable, sg, tg, toolTipText, valign, visible

Attributes Inherited from javafx.ui.canvas.CanvasElement

parentCanvasElement

Attributes Inherited from javafx.ui.canvas.Transformable

affineTransform, transform

Operations/Functions

protected createVisualNode(): net.java.javafx.jazz.component.ZBasicVisualComponent

Operations/Functions Inherited from javafx.ui.canvas.Node

createNode, doDragExport, getF3, getGlobalBounds, getNode, getVisualComponent, handleAcceptDrop, handleDragEnter, handleDragExit, handleDrop, installMouseListener, installMouseMotionListener, makeCanvasMouseEvent

Operations/Functions Inherited from javafx.ui.canvas.CanvasElement

getCanvas, getContainer, hasParent, lower, onSetCanvas, raise, toBack, toFront

Operations/Functions Inherited from javafx.ui.canvas.Transformable

onTransformChanged, updateTransform