< prev index next >
modules/javafx.graphics/src/main/java/javafx/css/converter/InsetsConverter.java
Print this page
@@ -30,11 +30,12 @@
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
+ * 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,11 +71,12 @@
public String toString() {
return "InsetsConverter";
}
/**
- * Convert a <size>{1,4} [,<size>{1,4}]* an Insets[]
+ * 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 >