Overview

A shape which describes a star by means of a center point (cx, cy), an inner radius (rin), an outer radius (rout), a count of points (points), and an angle at which to draw the first point (startAngle).

Attribute Summary

nametypedescription
Public
cxNumber

The x coordinate of the center point of this star.

cyNumber

The y coordinate of the center point of this star.

pointsNumber

The number of points this star has.

rinNumber

The inner radius of this star.

routNumber

The outer radius of this star.

startAngleNumber

The angle, in degress, at which to draw the first point.

Protected

Inherited Attributes

javafx.ui.canvas.Shape

publicnametype
affineTransformHACKAffineTransform
fillRuleFillRule
outlineBoolean
sgshapeSGShape

javafx.ui.canvas.VisualNode

publicnametype
fillPaint
strokePaint
strokeDashArrayNumber[]
strokeDashOffsetNumber
strokeLineCapStrokeLineCap
strokeLineJoinStrokeLineJoin
strokeMiterLimitNumber
strokeWidthNumber

javafx.ui.canvas.Node

publicnametype
boundsRectangle2D
canAcceptDropfunction(:CanvasDropEvent):boolean
clipClip
currentHeightNumber

Read-only attribute returning the current height of this node.

currentWidthNumber

Read-only attribute returning the current width of this node.

currentXNumber

Read-only attribute returning the current x coordinate of this node relative to its parent.

currentYNumber

Read-only attribute returning the current y coordinate of this node relative to its parent.

cursorCursor

Optional cursor to use when the mouse is over this node.

exportAsDragfunction():CanvasDragEvent
exportDragBoolean
filterFilter

An optional Filter chain that will be applied to this node.

focusableBoolean

Sets the focusable state of this Node to the specified value.

focusedBoolean
halignHorizontalAlignment

Determines the horizontal alignment of this node relative to its origin.

hoverBoolean
idString
isSelectionRootBoolean
keyListenerSGKeyListener
LISTENERFXNodeListener
MOUSE_DRAGMouseEvent
MOUSE_DRAG_SCREENPoint
MOUSE_PRESSMouseEvent
mouseListenerSGMouseListener
onDragEnterfunction(:CanvasDropEvent):Void
onDragExitfunction(:CanvasDropEvent):Void
onDropfunction(:CanvasDropEvent):Void
onKeyDownfunction(:KeyEvent):Void
onKeyTypedfunction(:KeyEvent):Void
onKeyUpfunction(:KeyEvent):Void
onMouseClickedfunction(:CanvasMouseEvent):Void

attribute onMouseClicked: function(e:CanvasMouseEvent)

Optional handler for mouse click events

onMouseDraggedfunction(:CanvasMouseEvent):Void

attribute onMouseDragged: function(e:CanvasMouseEvent)

Optional handler for mouse drag events.

onMouseEnteredfunction(:CanvasMouseEvent):Void

attribute onMouseEntered: function(e:CanvasMouseEvent)

Optional handler for mouse enter events.

onMouseExitedfunction(:CanvasMouseEvent):Void

attribute onMouseExited: function(e:CanvasMouseEvent)

Optional handler for mouse exit events.

onMouseMovedfunction(:CanvasMouseEvent):Void

attribute onMouseMoved: function(e:CanvasMouseEvent)

Optional handler for mouse motion events.

onMousePressedfunction(:CanvasMouseEvent):Void

attribute onMousePressed: function(e:CanvasMouseEvent)

Optional handler for mouse press events.

onMouseReleasedfunction(:CanvasMouseEvent):Void

attribute onMouseReleased: function(e:CanvasMouseEvent)

Optional handler for mouse release events.

opacityNumber

A number between 0 and 1, 0 being transparent and 1 opaque.

opacitySetBoolean
scaleToFitCanvasBoolean

If true this node will be scaled to the size of its containing canvas.

selectableBoolean

Determines whether this node responds to mouse events, or other picking functions.

toolTipTextString
valignVerticalAlignment

Determines the vertical alignment of this node relative to its origin.

visibleBoolean

Determines whether this node is visible in the canvas.

javafx.ui.canvas.CanvasElement

publicnametype
parentCanvasElementCanvasElement

The containing element of this element.

javafx.ui.canvas.Transformable

publicnametype
affineTransformAffineTransform
onTransformChangedfunction(:AffineTransform):Void
transformTransform[]

A list of transformation functions that will be performed on this object.

javafx.ui.canvas.AbstractPathElement

publicnametype
pathPath

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 cx: Number

The x coordinate of the center point of this star.

public cy: Number

The y coordinate of the center point of this star.

public points: Number

The number of points this star has.

public rin: Number

The inner radius of this star.

public rout: Number

The outer radius of this star.

public startAngle: Number

The angle, in degress, at which to draw the first point.

Functions