Class StyleParser.BoxInfo
java.lang.Object
com.codename1.ui.plaf.StyleParser.BoxInfo
- Direct Known Subclasses:
StyleParser.MarginInfo, StyleParser.PaddingInfo
- Enclosing class:
StyleParser
Base class for style values that consist of 4 scalar values, such as padding and margin.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBoxInfo(StyleParser.ScalarValue[] values) Creates a new box with the specified scalar values. -
Method Summary
Modifier and TypeMethodDescriptiongetValue(int side) Gets a value for a side.Gets the scalar values of this box as a 4-element array.voidsetValues(StyleParser.ScalarValue[] values) Sets the scalar values of this box as a 4-element array.toString()Returns string of values in format.toString(int side) Returns the string representation of one of the sides of the box.
-
Field Details
-
values
-
-
Constructor Details
-
BoxInfo
Creates a new box with the specified scalar values.
Parameters
values: A 4-element array of scalar values.
-
-
Method Details
-
toString
-
toString
Returns the string representation of one of the sides of the box.
Parameters
side: One ofComponent#TOP,Component#RIGHT,Component#BOTTOM,Component#LEFT.
-
getValues
Gets the scalar values of this box as a 4-element array. -
setValues
Sets the scalar values of this box as a 4-element array.
Parameters
values
-
getValue
Gets a value for a side.
Parameters
side: One ofComponent#TOP,Component#RIGHT,Component#BOTTOM,Component#LEFT.
Returns
The value portion of the scalar value.
-