LinearGradient

scalafx.scene.paint.LinearGradient
See theLinearGradient companion object
class LinearGradient(val delegate: LinearGradient) extends Paint, SFXDelegate[LinearGradient]

Attributes

Companion
object
Graph
Supertypes
class Paint
trait SFXDelegate[LinearGradient]
class Object
trait Matchable
class Any

Members list

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 parameters

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

Attributes

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.

Attributes

def endX: Double

Defines the X coordinate of the gradient axis end point.

Defines the X coordinate of the gradient axis end point.

Attributes

def endY: Double

Defines the Y coordinate of the gradient axis end point.

Defines the Y coordinate of the gradient axis end point.

Attributes

Indicates whether start and end locations are proportional or absolute.

Indicates whether start and end locations are proportional or absolute.

Attributes

def startX: Double

Defines the X coordinate of the gradient axis start point.

Defines the X coordinate of the gradient axis start point.

Attributes

def startY: Double

Defines the Y coordinate of the gradient axis start point.

Defines the Y coordinate of the gradient axis start point.

Attributes

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.

Attributes

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 parameters

ref

Object to be compared.

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

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

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: LinearGradient

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes