public class BaseGridRendererHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BaseGridRendererHelper.ColumnInformation
A container for Column Information.
|
static class |
BaseGridRendererHelper.RenderingBlockInformation
A container for Rendering Block Information.
|
static class |
BaseGridRendererHelper.RenderingInformation
A container for Rendering Information.
|
Constructor and Description |
---|
BaseGridRendererHelper(GridWidget view) |
Modifier and Type | Method and Description |
---|---|
BaseGridRendererHelper.ColumnInformation |
getColumnInformation(double cx)
Get information about a column corresponding to a grid-relative x-coordinate.
|
double |
getColumnOffset(GridColumn<?> column)
Get the x-offset for a given Column in the model relative to zero.
|
double |
getColumnOffset(int columnIndex)
Get the x-offset for a given Column index in the model relative to zero.
|
double |
getColumnOffset(List<GridColumn<?>> columns,
int columnIndex)
Get the x-offset for a given Column index in a list of Columns relative to zero.
|
BaseGridRendererHelper.RenderingInformation |
getRenderingInformation()
Get rendering information about which columns are floating, which are visible.
|
double |
getRowOffset(GridRow row)
Get the y-offset for a given Row.
|
double |
getRowOffset(int rowIndex)
Get the y-offset for a given Row index.
|
double |
getWidth(List<GridColumn<?>> columns)
Get the width of a set of columns, ignoring hidden columns.
|
public BaseGridRendererHelper(GridWidget view)
public double getColumnOffset(GridColumn<?> column)
column
- The GridColumn.public double getColumnOffset(int columnIndex)
columnIndex
- The index of the GridColumn.public double getColumnOffset(List<GridColumn<?>> columns, int columnIndex)
columns
- columnIndex
- public double getRowOffset(GridRow row)
row
- The GridRow.public double getRowOffset(int rowIndex)
rowIndex
- The index of the GridRow.public double getWidth(List<GridColumn<?>> columns)
columns
- The columns.public BaseGridRendererHelper.RenderingInformation getRenderingInformation()
public BaseGridRendererHelper.ColumnInformation getColumnInformation(double cx)
cx
- An x-coordinate relative to the GridWidget.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.