Package com.jogamp.graph.ui.layout
Class Padding
- java.lang.Object
-
- com.jogamp.graph.ui.layout.Padding
-
public class Padding extends Object
GraphUI CSS property Padding, space belonging to the element and included in the element's size. The CSS padding properties are used to generate space around an element's content, inside of any defined borders.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
height()
Return height of vertical values bottom + top.String
toString()
float
width()
Return width of horizontal values top + right.boolean
zeroSumHeight()
boolean
zeroSumSize()
boolean
zeroSumWidth()
-
-
-
Constructor Detail
-
Padding
public Padding()
Ctor w/ zero values
-
Padding
public Padding(float top, float right, float bottom, float left)
Ctor- Parameters:
top
- top valueright
- right valuebottom
- bottom valueleft
- left value
-
Padding
public Padding(float top, float rl, float bottom)
Ctor- Parameters:
top
- top valuerl
- right and left valuebottom
- bottom value
-
Padding
public Padding(float tb, float rl)
Ctor- Parameters:
tb
- top and bottom valuerl
- right and left value
-
Padding
public Padding(float trbl)
Ctor- Parameters:
trbl
- top, right, bottom and left value
-
-