javafx.ui

LinearGradient

Extends: Gradient

A linear gradient consists of a continuously smooth color transition along a line from one color to another, possibly followed by additional transitions along the same line to other colors. The values (x1, y1, x2, y2) define the line onto which gradient "stops" are mapped. The values of x1, y1, x2, y2 are numbers between zero and 1, defining percentage offsets with respect to the target bounds that will be painted by this gradient.

Attributes

public x1: Number
The x coordinate of the start point of the line.
public x2: Number
The x coordinate of the end point of the line.
public y1: Number
The y coordinate of the start point of the line.
public y2: Number
The y coordinate of the end point of the line.

Attributes Inherited from javafx.ui.Gradient

gradientUnits, holders, spreadMethod, stopCount, stops

Attributes Inherited from javafx.ui.canvas.Transformable

affineTransform, transform

Operations/Functions

protected createColor(stopCount: Number, t: java.awt.geom.AffineTransform, x1: Number, y1: Number, x2: Number, y2: Number, holders: javafx.ui.StopHolder*, spreadMethod: SpreadMethod, gradientUnits: GradientUnits): java.awt.Color
protected createPaint(stopCount: Number, t: java.awt.geom.AffineTransform, x1: Number, y1: Number, x2: Number, y2: Number, holders: javafx.ui.StopHolder*, spreadMethod: SpreadMethod, gradientUnits: GradientUnits): java.awt.Paint
Indicates what happens if this gradient starts or ends inside the bounds of the target rectangle. Possible values are: PAD, which says to use the terminal colors of the gradient to fill the remainder of the target region, REFLECT, which says to reflect the gradient pattern start-to- end, end-to-start, start-to-end, etc. continuously until the target rectangle is filled, and REPEAT, which says to repeat the gradient pattern start-to-end, start-to-end, start-to-end, etc. continuously until the target region is filled. If the attribute is not specified, the effect is as if a value of "pad" were specified.

Operations/Functions Inherited from javafx.ui.AbstractColor

getColor

Operations/Functions Inherited from javafx.ui.Paint

getPaint

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

onTransformChanged, updateTransform