LinearGradient

class LinearGradient(val delegate: LinearGradient) extends Paint with SFXDelegate[LinearGradient]
Companion
object
class Paint
trait SFXDelegate[LinearGradient]
class Object
trait Matchable
class Any

Value members

Constructors

def this(startX: Double, startY: Double, endX: Double, endY: Double, proportional: Boolean, cycleMethod: CycleMethod, stops: Seq[Stop])

Creates a new instance of LinearGradient.

Creates a new instance of LinearGradient.

Value Params
cycleMethod

cycle method applied to the gradient. Default value = scalafx.scene.paint.CycleMethod.NoCycle

endX

the X coordinate of the gradient axis end point. Default value = 0.0

endY

the Y coordinate of the gradient axis end point. Default value = 0.0

proportional

whether the coordinates are proportional to the shape which this gradient fills. Default value = true

startX

the X coordinate of the gradient axis start point. Default value = 0.0

startY

the Y coordinate of the gradient axis start point. Default value = 0.0

stops

the gradient's color specification. Default value = scala.Nil

Concrete methods

Defines which of the following cycle method is applied to the LinearGradient: scalafx.scene.paint.CycleMethod.NoCycle, scalafx.scene.paint.CycleMethod.Reflect or scalafx.scene.paint.CycleMethod.Repeat.

Defines which of the following cycle method is applied to the LinearGradient: scalafx.scene.paint.CycleMethod.NoCycle, scalafx.scene.paint.CycleMethod.Reflect or scalafx.scene.paint.CycleMethod.Repeat.

def endX: Double

Defines the X coordinate of the gradient axis end point.

Defines the X coordinate of the gradient axis end point.

def endY: Double

Defines the Y coordinate of the gradient axis end point.

Defines the Y coordinate of the gradient axis end point.

def proportional: Boolean

Indicates whether start and end locations are proportional or absolute.

Indicates whether start and end locations are proportional or absolute.

def startX: Double

Defines the X coordinate of the gradient axis start point.

Defines the X coordinate of the gradient axis start point.

def startY: Double

Defines the Y coordinate of the gradient axis start point.

Defines the Y coordinate of the gradient axis start point.

def stops: List[Stop]

A sequence of 2 or more Stop values specifying how to distribute the colors along the gradient.

A sequence of 2 or more Stop values specifying how to distribute the colors along the gradient.

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value Params
ref

Object to be compared.

Returns

if the other object is equals to this delegate or not.

Definition Classes
Inherited from
SFXDelegate
override def hashCode: Int
Returns

The delegate hashcode

Definition Classes
Inherited from
SFXDelegate
override def toString: String
Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
Inherited from
SFXDelegate

Concrete fields

override val delegate: LinearGradient