< prev index next >
modules/graphics/src/main/java/javafx/css/converter/InsetsConverter.java
Print this page
*** 30,40 ****
import javafx.css.StyleConverter;
import javafx.geometry.Insets;
import javafx.scene.text.Font;
/**
! * Convert <size>{1,4} to 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.
*
--- 30,41 ----
import javafx.css.StyleConverter;
import javafx.geometry.Insets;
import javafx.scene.text.Font;
/**
! * Converts 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.
*
*** 70,80 ****
public String toString() {
return "InsetsConverter";
}
/**
! * Convert a <size>{1,4} [,<size>{1,4}]* an Insets[]
*/
public static final class SequenceConverter extends StyleConverter<ParsedValue<ParsedValue[], Insets>[], Insets[]> {
public static SequenceConverter getInstance() {
return Holder.SEQUENCE_INSTANCE;
--- 71,82 ----
public String toString() {
return "InsetsConverter";
}
/**
! * Converts an array of parsed values, each of which is an array
! * of 1 to 4 size components, to an array of Insets objects.
*/
public static final class SequenceConverter extends StyleConverter<ParsedValue<ParsedValue[], Insets>[], Insets[]> {
public static SequenceConverter getInstance() {
return Holder.SEQUENCE_INSTANCE;
< prev index next >