PaintIncludes

scalafx.scene.paint.PaintIncludes
See thePaintIncludes companion object

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

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object PaintIncludes.type
object SceneIncludes.type
trait Includes
object Includes.type

Members list

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 parameters

h

Number to be converted

Attributes

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 parameters

h

Number to be converted

Attributes

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 parameters

c

JavaFX Color

Attributes

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 parameters

e

JavaFX CycleMethod

Attributes

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 parameters

lg

JavaFX LinearGradient

Attributes

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 parameters

p

JavaFX Paint

Attributes

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 parameters

pm

JavaFX PhongMaterial

Attributes

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 parameters

rg

JavaFX RadialGradient

Attributes

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 parameters

c

JavaFX Stop

Attributes

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 parameters

s

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

Attributes

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 parameters

s

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

Attributes

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 parameters

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

Attributes

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 parameters

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

Attributes

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 parameters

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

Attributes

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 parameters

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

Attributes

Returns

Color correspondent to Tuple.