public static class StyleParser.BoxInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected StyleParser.ScalarValue[] |
values |
Constructor and Description |
---|
BoxInfo(StyleParser.ScalarValue[] values)
Creates a new box with the specified scalar values.
|
Modifier and Type | Method and Description |
---|---|
StyleParser.ScalarValue |
getValue(int side)
Gets a value for a side.
|
StyleParser.ScalarValue[] |
getValues()
Gets the scalar values of this box as a 4-element array.
|
void |
setValues(StyleParser.ScalarValue[] values)
Sets the scalar values of this box as a 4-element array.
|
String |
toString()
Returns string of values in <top> <right> <bottom> <left> format.
|
String |
toString(int side)
Returns the string representation of one of the sides of the box.
|
protected StyleParser.ScalarValue[] values
public BoxInfo(StyleParser.ScalarValue[] values)
values
- A 4-element array of scalar values.public String toString()
public String toString(int side)
side
- One of Component.TOP
, Component.RIGHT
, Component.BOTTOM
, Component.LEFT
.public StyleParser.ScalarValue[] getValues()
public void setValues(StyleParser.ScalarValue[] values)
values
- public StyleParser.ScalarValue getValue(int side)
side
- One of Component.TOP
, Component.RIGHT
, Component.BOTTOM
, Component.LEFT
.