FontWeight

object FontWeight extends SFXEnumDelegateCompanion[FontWeight, FontWeight]
Companion
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case object Black extends FontWeight
case object Bold extends FontWeight
case object ExtraBold extends FontWeight
case object ExtraLight extends FontWeight
case object Light extends FontWeight
case object Medium extends FontWeight
case object Normal extends FontWeight
case object SemiBold extends FontWeight
case object Thin extends FontWeight

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def findByName(name: String): FontWeight

Returns FontWeight by its name.

Returns FontWeight by its name.

def findByWeight(weight: Int): FontWeight

Returns the closest javafx.scene.text.FontWeight for a weight value as defined by the CSS and OpenType specifications.

Returns the closest javafx.scene.text.FontWeight for a weight value as defined by the CSS and OpenType specifications.

Inherited methods

def apply(e: FontWeight): FontWeight

Converts a JavaFX enum to its respective SFXEnumDelegate.

Converts a JavaFX enum to its respective SFXEnumDelegate.

Value Params
e

JavaFX enum

Returns

[[scalafx.delegate.SFXEnumDelegate]] equivalent to argument.

Inherited from
SFXEnumDelegateCompanion
def apply(name: String): FontWeight

Returns the enum constant of this type with the specified name.

Returns the enum constant of this type with the specified name.

Value Params
name

the name of the constant to return

Throws
IllegalArgumentException

If the specified enum type has no constant with the specified name, or the specified class object does not represent an enum type.

Inherited from
SFXEnumDelegateCompanion
def jfxEnum2sfx(e: FontWeight): FontWeight

Converts a JavaFX enum to its respective SFXEnumDelegate.

Converts a JavaFX enum to its respective SFXEnumDelegate.

Value Params
e

JavaFX enum

Returns

[[scalafx.delegate.SFXEnumDelegate]] equivalent to argument.

Inherited from
SFXEnumDelegateCompanion

Deprecated fields

@deprecated("Use Black; BLACK will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use Bold; BOLD will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use ExtraBold; EXTRA_BOLD will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use ExtraLight; EXTRA_LIGHT will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use Light; LIGHT will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use Medium; MEDIUM will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use Normal; NORMAL will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use SemiBold; SEMI_BOLD will be removed in a future release", "2.2.60")
Deprecated
@deprecated("Use Thin; THIN will be removed in a future release", "2.2.60")
Deprecated

Inherited fields

lazy val values: List[FontWeight]

Returns a List containing the constants of this enum type, in the order they are declared.

Returns a List containing the constants of this enum type, in the order they are declared.

Inherited from
SFXEnumDelegateCompanion

Implicits

Inherited implicits

implicit def sfxEnum2jfx(s: FontWeight): FontWeight

Converts a SFXEnumDelegate to its respective JavaFX Enum.

Converts a SFXEnumDelegate to its respective JavaFX Enum.

Value Params
s

SFXEnumDelegate instance

Returns

Delegated enum

Inherited from
SFXEnumDelegateCompanion