JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.graph.ui.layout.Margin Class Reference

GraphUI CSS property Margin, scaled space between or around elements and not included in the element's size. More...

Collaboration diagram for com.jogamp.graph.ui.layout.Margin:

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Margin() [1/4]

com.jogamp.graph.ui.layout.Margin.Margin ( final float  top,
final float  right,
final float  bottom,
final float  left 
)

Ctor.

Parameters
topscaled top value
rightscaled right value
bottomscaled bottom value
leftscaled left value

Definition at line 65 of file Margin.java.

◆ Margin() [2/4]

com.jogamp.graph.ui.layout.Margin.Margin ( final float  top,
final float  rl,
final float  bottom 
)

Ctor.

Parameters
topscaled top value
rlscaled right and left value
bottomscaled bottom value

Definition at line 78 of file Margin.java.

◆ Margin() [3/4]

com.jogamp.graph.ui.layout.Margin.Margin ( final float  tb,
final float  rl 
)

Ctor.

Parameters
tbscaled top and bottom value
rlscaled right and left value

Definition at line 90 of file Margin.java.

◆ Margin() [4/4]

com.jogamp.graph.ui.layout.Margin.Margin ( final float  trbl)

Ctor.

Parameters
trblscaled top, right, bottom and left value

Definition at line 101 of file Margin.java.

Member Function Documentation

◆ height()

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.

Here is the caller graph for this function:

◆ toString()

String com.jogamp.graph.ui.layout.Margin.toString ( )

Definition at line 121 of file Margin.java.

Here is the caller graph for this function:

◆ width()

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.

Here is the caller graph for this function:

◆ zeroHeight()

boolean com.jogamp.graph.ui.layout.Margin.zeroHeight ( )

Definition at line 116 of file Margin.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zeroSize()

boolean com.jogamp.graph.ui.layout.Margin.zeroSize ( )

Definition at line 118 of file Margin.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zeroWidth()

boolean com.jogamp.graph.ui.layout.Margin.zeroWidth ( )

Definition at line 114 of file Margin.java.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ bottom

final float com.jogamp.graph.ui.layout.Margin.bottom

Scaled bottom value.

Definition at line 50 of file Margin.java.

◆ left

final float com.jogamp.graph.ui.layout.Margin.left

Scaled left value.

Definition at line 52 of file Margin.java.

◆ None

final Margin com.jogamp.graph.ui.layout.Margin.None = new Margin()
static

Zero margin constant.

Definition at line 43 of file Margin.java.

◆ right

final float com.jogamp.graph.ui.layout.Margin.right

Scaled right value.

Definition at line 48 of file Margin.java.

◆ top

final float com.jogamp.graph.ui.layout.Margin.top

Scaled top value.

Definition at line 46 of file Margin.java.


The documentation for this class was generated from the following file: