|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
GraphUI Grid Group.Layout.
More...
Classes | |
| enum | Order |
Layout order for Group#getShapes()} after population. More... | |
Public Member Functions | |
| GridLayout (final int column_limit, final float cellWidth, final float cellHeight, final Alignment alignment) | |
Default layout order of Group#getShapes()} is Order#COLUMN. More... | |
| GridLayout (final int column_limit, final float cellWidth, final float cellHeight, final Alignment alignment, final Gap gap) | |
Default layout order of Group#getShapes()} is Order#COLUMN. More... | |
| GridLayout (final int column_limit, final float cellWidth, final float cellHeight, final Alignment alignment, final Gap gap, final Padding padding) | |
Default layout order of Group#getShapes()} is Order#COLUMN. More... | |
| GridLayout (final float cellWidth, final float cellHeight, final Alignment alignment, final int row_limit) | |
Default layout order of Group#getShapes()} is Order#ROW. More... | |
| GridLayout (final float cellWidth, final float cellHeight, final Alignment alignment, final Gap gap, final int row_limit) | |
Default layout order of Group#getShapes()} is Order#ROW. More... | |
| GridLayout (final float cellWidth, final float cellHeight, final Alignment alignment, final Gap gap, final Padding padding, final int row_limit) | |
Default layout order of Group#getShapes()} is Order#ROW. More... | |
| Order | getOrder () |
Returns given Order. More... | |
| int | getColumnCount () |
Returns column count after layout(Group, AABBox, PMVMatrix4f). More... | |
| int | getRowCount () |
Returns row count after layout(Group, AABBox, PMVMatrix4f). More... | |
| Vec2f | getCellSize () |
| Returns the preset cell size. More... | |
| Alignment | getAlignment () |
Returns given Alignment. More... | |
| Gap | getGap () |
Returns given scaled Gap. More... | |
| Padding | getPadding () |
Returns given unscaled Padding, may be null if not given via constructor. More... | |
| void | preValidate (final Shape s) |
Prepare given Shape before validation, e.g. More... | |
| void | layout (final Group g, final AABBox box, final PMVMatrix4f pmv) |
Performing the layout of Group#getShapes(), called @ Shape#validate(GL2ES2) or Shape#validate(GLProfile). More... | |
| String | toString () |
| void | preValidate (final Shape s) |
Prepare given Shape before validation, e.g. More... | |
| void | layout (final Group g, final AABBox box, final PMVMatrix4f pmv) |
Performing the layout of Group#getShapes(), called @ Shape#validate(GL2ES2) or Shape#validate(GLProfile). More... | |
GraphUI Grid Group.Layout.
A grid of Shapes
horizontally, vertically or both. Alignment#Fill Padding is applied to each {@Shape} via Shape#setPaddding(Padding) if passed in constructor and is scaled if Alignment.Bit#Fill Padding Gap is applied unscaled if used. Order#COLUMN or Order#ROW major-order. Alignment: Top, Right, Bottom, Left Definition at line 56 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final int | column_limit, |
| final float | cellWidth, | ||
| final float | cellHeight, | ||
| final Alignment | alignment | ||
| ) |
Default layout order of Group#getShapes()} is Order#COLUMN.
| column_limit | [1..inf) |
| cellWidth | |
| cellHeight | |
| alignment | TODO |
Definition at line 84 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final int | column_limit, |
| final float | cellWidth, | ||
| final float | cellHeight, | ||
| final Alignment | alignment, | ||
| final Gap | gap | ||
| ) |
Default layout order of Group#getShapes()} is Order#COLUMN.
| column_limit | [1..inf) |
| cellWidth | |
| cellHeight | |
| alignment | TODO |
| gap | scaled Gap value is applied w/o additional scaling |
Definition at line 96 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final int | column_limit, |
| final float | cellWidth, | ||
| final float | cellHeight, | ||
| final Alignment | alignment, | ||
| final Gap | gap, | ||
| final Padding | padding | ||
| ) |
Default layout order of Group#getShapes()} is Order#COLUMN.
| column_limit | [1..inf) |
| cellWidth | |
| cellHeight | |
| alignment | TODO |
| gap | scaled Gap value is applied w/o additional scaling |
| padding | unscaled Padding applied to each {@Shape} via Shape#setPaddding(Padding) and is scaled if Alignment.Bit#Fill |
Definition at line 109 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final float | cellWidth, |
| final float | cellHeight, | ||
| final Alignment | alignment, | ||
| final int | row_limit | ||
| ) |
Default layout order of Group#getShapes()} is Order#ROW.
| cellWidth | |
| cellHeight | |
| alignment | TODO |
| row_limit | [1..inf) |
Definition at line 120 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final float | cellWidth, |
| final float | cellHeight, | ||
| final Alignment | alignment, | ||
| final Gap | gap, | ||
| final int | row_limit | ||
| ) |
Default layout order of Group#getShapes()} is Order#ROW.
| cellWidth | |
| cellHeight | |
| alignment | TODO |
| gap | scaled Gap value is applied w/o additional scaling |
| row_limit | [1..inf) |
Definition at line 132 of file GridLayout.java.
| com.jogamp.graph.ui.layout.GridLayout.GridLayout | ( | final float | cellWidth, |
| final float | cellHeight, | ||
| final Alignment | alignment, | ||
| final Gap | gap, | ||
| final Padding | padding, | ||
| final int | row_limit | ||
| ) |
Default layout order of Group#getShapes()} is Order#ROW.
| cellWidth | |
| cellHeight | |
| alignment | TODO |
| gap | scaled Gap value is applied w/o additional scaling |
| padding | unscaled Padding applied to each {@Shape} via Shape#setPaddding(Padding) and is scaled if Alignment.Bit#Fill |
| row_limit | [1..inf) |
Definition at line 145 of file GridLayout.java.
| Alignment com.jogamp.graph.ui.layout.GridLayout.getAlignment | ( | ) |
Returns given Alignment.
Definition at line 171 of file GridLayout.java.
| Vec2f com.jogamp.graph.ui.layout.GridLayout.getCellSize | ( | ) |
Returns the preset cell size.
Definition at line 169 of file GridLayout.java.
| int com.jogamp.graph.ui.layout.GridLayout.getColumnCount | ( | ) |
Returns column count after layout(Group, AABBox, PMVMatrix4f).
Definition at line 165 of file GridLayout.java.
| Gap com.jogamp.graph.ui.layout.GridLayout.getGap | ( | ) |
Returns given scaled Gap.
Definition at line 173 of file GridLayout.java.
| Order com.jogamp.graph.ui.layout.GridLayout.getOrder | ( | ) |
Returns given Order.
Definition at line 163 of file GridLayout.java.
| Padding com.jogamp.graph.ui.layout.GridLayout.getPadding | ( | ) |
Returns given unscaled Padding, may be null if not given via constructor.
Definition at line 175 of file GridLayout.java.
| int com.jogamp.graph.ui.layout.GridLayout.getRowCount | ( | ) |
Returns row count after layout(Group, AABBox, PMVMatrix4f).
Definition at line 167 of file GridLayout.java.
| void com.jogamp.graph.ui.layout.GridLayout.layout | ( | final Group | g, |
| final AABBox | box, | ||
| final PMVMatrix4f | pmv | ||
| ) |
Performing the layout of Group#getShapes(), called @ Shape#validate(GL2ES2) or Shape#validate(GLProfile).
According to the implemented layout, method
PMVMatrix4f pmvAABBox box | g | the Group to layout |
| box | the bounding box of Group to be updated by this method. |
| pmv | a PMVMatrix4f which can be reused. |
Implements com.jogamp.graph.ui.Group.Layout.
Definition at line 185 of file GridLayout.java.
| void com.jogamp.graph.ui.layout.GridLayout.preValidate | ( | final Shape | s | ) |
Prepare given Shape before validation, e.g.
Implements com.jogamp.graph.ui.Group.Layout.
Definition at line 178 of file GridLayout.java.
| String com.jogamp.graph.ui.layout.GridLayout.toString | ( | ) |