|
JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java (public API).
|
GraphUI CSS property Margin, scaled space between or around elements and not included in the element's size. More...
Public Member Functions | |
| Margin (final float top, final float right, final float bottom, final float left) | |
| Ctor. More... | |
| Margin (final float top, final float rl, final float bottom) | |
| Ctor. More... | |
| Margin (final float tb, final float rl) | |
| Ctor. More... | |
| Margin (final float trbl) | |
| Ctor. More... | |
| float | width () |
| Return scaled width of horizontal values top + right. More... | |
| float | height () |
| Return scaled height of vertical values bottom + top. More... | |
| boolean | zeroWidth () |
| boolean | zeroHeight () |
| boolean | zeroSize () |
| String | toString () |
Public Attributes | |
| final float | top |
| Scaled top value. More... | |
| final float | right |
| Scaled right value. More... | |
| final float | bottom |
| Scaled bottom value. More... | |
| final float | left |
| Scaled left value. More... | |
Static Public Attributes | |
| static final Margin | None = new Margin() |
| Zero margin constant. More... | |
GraphUI CSS property Margin, scaled space between or around elements and not included in the element's size.
The CSS margin properties are used to create space around elements, outside of any defined borders.
Center alignment is defined via Alignment and Margin ignored with only center Alignment w/o Alignment.Bit#Fill scale.
Definition at line 41 of file Margin.java.
| com.jogamp.graph.ui.layout.Margin.Margin | ( | final float | top, |
| final float | right, | ||
| final float | bottom, | ||
| final float | left | ||
| ) |
Ctor.
| top | scaled top value |
| right | scaled right value |
| bottom | scaled bottom value |
| left | scaled left value |
Definition at line 65 of file Margin.java.
| com.jogamp.graph.ui.layout.Margin.Margin | ( | final float | top, |
| final float | rl, | ||
| final float | bottom | ||
| ) |
Ctor.
| top | scaled top value |
| rl | scaled right and left value |
| bottom | scaled bottom value |
Definition at line 78 of file Margin.java.
| com.jogamp.graph.ui.layout.Margin.Margin | ( | final float | tb, |
| final float | rl | ||
| ) |
Ctor.
| tb | scaled top and bottom value |
| rl | scaled right and left value |
Definition at line 90 of file Margin.java.
| com.jogamp.graph.ui.layout.Margin.Margin | ( | final float | trbl | ) |
Ctor.
| trbl | scaled top, right, bottom and left value |
Definition at line 101 of file Margin.java.
| float com.jogamp.graph.ui.layout.Margin.height | ( | ) |
Return scaled height of vertical values bottom + top.
Zero if isCenteredVert().
Definition at line 112 of file Margin.java.
| String com.jogamp.graph.ui.layout.Margin.toString | ( | ) |
| float com.jogamp.graph.ui.layout.Margin.width | ( | ) |
Return scaled width of horizontal values top + right.
Zero if isCenteredHoriz().
Definition at line 109 of file Margin.java.
| boolean com.jogamp.graph.ui.layout.Margin.zeroHeight | ( | ) |
Definition at line 116 of file Margin.java.
| boolean com.jogamp.graph.ui.layout.Margin.zeroSize | ( | ) |
Definition at line 118 of file Margin.java.
| boolean com.jogamp.graph.ui.layout.Margin.zeroWidth | ( | ) |
Definition at line 114 of file Margin.java.
| final float com.jogamp.graph.ui.layout.Margin.bottom |
Scaled bottom value.
Definition at line 50 of file Margin.java.
| final float com.jogamp.graph.ui.layout.Margin.left |
Scaled left value.
Definition at line 52 of file Margin.java.
Zero margin constant.
Definition at line 43 of file Margin.java.
| final float com.jogamp.graph.ui.layout.Margin.right |
Scaled right value.
Definition at line 48 of file Margin.java.
| final float com.jogamp.graph.ui.layout.Margin.top |
Scaled top value.
Definition at line 46 of file Margin.java.