PaintIncludes

Contains implcit methods to convert from `javafx.scene.paint` Classes/Traits to their ScalaFX counterparts.

Contains implcit methods to convert from `javafx.scene.paint` Classes/Traits to their ScalaFX counterparts.

Companion
object
class Object
trait Matchable
class Any

Implicits

Implicits

implicit def hex2jfxColor(h: Int): Color

Converts a Interger (preferentially in a Hexadecinal format) to a JavaFX Color. See JavaFX's Color.rgb() for more details.

Converts a Interger (preferentially in a Hexadecinal format) to a JavaFX Color. See JavaFX's Color.rgb() for more details.

Value Params
h

Number to be converted

Returns

JavaFX Color correspondent to Number.

implicit def hex2sfxColor(h: Int): Color

Converts a Interger (preferentially in a Hexadecinal format) to a ScalaFX Color. See JavaFX's Color.rgb() for more details.

Converts a Interger (preferentially in a Hexadecinal format) to a ScalaFX Color. See JavaFX's Color.rgb() for more details.

Value Params
h

Number to be converted

Returns

ScalaFX Color correspondent to Number.

implicit def jfxColor2sfx(c: Color): Color

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Color.html Color]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Color.html Color]] instance to its ScalaFX counterpart.

Value Params
c

JavaFX Color

Returns

ScalaFX Color

implicit def jfxCycleMethod2sfx(e: CycleMethod): CycleMethod

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/CycleMethod.html CycleMethod]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/CycleMethod.html CycleMethod]] instance to its ScalaFX counterpart.

Value Params
e

JavaFX CycleMethod

Returns

ScalaFX CycleMethod

implicit def jfxLinearGradient2sfx(lg: LinearGradient): LinearGradient

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/LinearGradient.html LinearGradient]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/LinearGradient.html LinearGradient]] instance to its ScalaFX counterpart.

Value Params
lg

JavaFX LinearGradient

Returns

ScalaFX LinearGradient

implicit def jfxPaint2sfx(p: Paint): Paint

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Paint.html Paint]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Paint.html Paint]] instance to its ScalaFX counterpart.

Value Params
p

JavaFX Paint

Returns

ScalaFX Paint

implicit def jfxPhongMaterial2sfx(pm: PhongMaterial): PhongMaterial

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/PhongMaterial.html PhongMaterial]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/PhongMaterial.html PhongMaterial]] instance to its ScalaFX counterpart.

Value Params
pm

JavaFX PhongMaterial

Returns

ScalaFX PhongMaterial

implicit def jfxRadialGradient2sfx(rg: RadialGradient): RadialGradient

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/RadialGradient.html RadialGradient]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/RadialGradient.html RadialGradient]] instance to its ScalaFX counterpart.

Value Params
rg

JavaFX RadialGradient

Returns

ScalaFX RadialGradient

implicit def jfxStop2sfx(c: Stop): Stop

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Stop.html Stop]] instance to its ScalaFX counterpart.

Converts a JavaFX [[http://docs.oracle.com/javase/8/javafx/api/javafx/scene/paint/Stop.html Stop]] instance to its ScalaFX counterpart.

Value Params
c

JavaFX Stop

Returns

ScalaFX Stop

implicit def string2jfxColor(s: String): Color

Converts an HTML or CSS attribute string to a JavaFX Color. See JavaFX's Color.web() for more details.

Converts an HTML or CSS attribute string to a JavaFX Color. See JavaFX's Color.web() for more details.

Value Params
s

The name or numeric representation of the color in one of the supported formats

Returns

JavaFX Color correspondent to argument

implicit def string2sfxColor(s: String): Color

Converts an HTML or CSS attribute string to a ScalaFX Color. See JavaFX's Color.web() for more details.

Converts an HTML or CSS attribute string to a ScalaFX Color. See JavaFX's Color.web() for more details.

Value Params
s

The name or numeric representation of the color in one of the supported formats

Returns

ScalaFX Color correspondent to argument

implicit def tuple32JfxColor(tuple: (Int, Int, Int)): Color

Converts a tuple of 3 Integers to a JavaFX Color.

Converts a tuple of 3 Integers to a JavaFX Color.

Value Params
tuple

A tuple of 3 Integers (all of them must be lesser than 256) correspondent respectively to red, green and blue components of desired Color

Returns

Color correspondent to Tuple.

implicit def tuple32SfxColor(tuple: (Int, Int, Int)): Color

Converts a tuple of 3 Integers to a ScalaFX Color.

Converts a tuple of 3 Integers to a ScalaFX Color.

Value Params
tuple

A tuple of 3 Integers (all of them must be lesser than 256) correspondent respectively to red, green and blue components of desired Color

Returns

Color correspondent to Tuple.

implicit def tuple42JfxColor(tuple: (Int, Int, Int, Double)): Color

Converts a tuple of 3 Integers and a double to a JavaFX Color.

Converts a tuple of 3 Integers and a double to a JavaFX Color.

Value Params
tuple

A tuple of 3 Integers (all of them must be lesser than 256) and a Double (lesser than 1.0) correspondent respectively to red, green, blue and opacity components of desired Color

Returns

Color correspondent to Tuple.

implicit def tuple42SfxColor(tuple: (Int, Int, Int, Double)): Color

Converts a tuple of 3 Integers and a double to a ScalaFX Color.

Converts a tuple of 3 Integers and a double to a ScalaFX Color.

Value Params
tuple

A tuple of 3 Integers (all of them must be lesser than 256) and a Double (lesser than 1.0) correspondent respectively to red, green, blue and opacity components of desired Color

Returns

Color correspondent to Tuple.