Class InsetsConverter

java.lang.Object
javafx.css.StyleConverter<ParsedValue[],​Insets>
javafx.css.converter.InsetsConverter

public final class InsetsConverter
extends StyleConverter<ParsedValue[],​Insets>
Converter to convert a parsed value array of 1 to 4 size components to an Insets. The size values are interpreted as top, right, bottom, left. If only top is given, that value is used on all sides. If there is only top and right, then bottom is set to top and left is set to right. If top, right and bottom are given, then left is set to right.
Since:
9
  • Method Details

    • getInstance

      public static StyleConverter<ParsedValue[],​Insets> getInstance()
      Gets the InsetsConverter instance.
      Returns:
      the InsetsConverter instance