Module javafx.graphics
Package javafx.css.converter

# Class SizeConverter

java.lang.Object
javafx.css.StyleConverter<ParsedValue<?,Size>,Number>
javafx.css.converter.SizeConverter

public final class SizeConverter extends StyleConverter<ParsedValue<?,Size>,Number>
Converter to convert a `Size` to a `Number`.

Since:
  9

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static final class`
  `SizeConverter.SequenceConverter`
  Converter to convert a sequence of sizes to an array of `Number`.

  ## Nested classes/interfaces declared in class javafx.css.StyleConverter

  `StyleConverter.StringStore`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static StyleConverter<ParsedValue<?,Size>,Number>`
  `getInstance()`
  Gets the `SizeConverter` instance.

  ### Methods declared in class javafx.css.StyleConverter

  `cacheValue, clearCache, convert, convert, getBooleanConverter, getCachedValue, getColorConverter, getDurationConverter, getEffectConverter, getEnumConverter, getFontConverter, getInsetsConverter, getPaintConverter, getSizeConverter, getStringConverter, getUrlConverter, readBinary, writeBinary`

  ### Methods declared in class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getInstance

    public static StyleConverter<ParsedValue<?,Size>,Number> getInstance()
    Gets the `SizeConverter` instance.
    Returns:
      the `SizeConverter` instance