public abstract class RenderUtilities extends Object
| Constructor and Description |
|---|
RenderUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static String[][] |
createContentArray(Object[] columns,
int[] width,
int[] padding)
Creates a content array, that is an array with columns.
|
static BorderType[] |
getBorderTypes_BottomRule(ProcessedRow prev,
V2_Row row,
int colNumbers)
Returns the border types for a bottom rule, regardless of the actual type of the given row.
|
static BorderType[] |
getBorderTypes_ContentRow(String[] ar,
ContentRow original,
int colNumbers)
Creates the border types for a content row.
|
static BorderType[] |
getBorderTypes_MidRule(ProcessedRow prev,
ProcessedRow next,
V2_Row row,
int colNumbers)
Returns the border types for a mid rule, regardless of the actual type of the given row.
|
static BorderType[] |
getBorderTypes_TopRule(ProcessedRow next,
V2_Row row,
int colNumbers)
Returns the border types for a top rule, regardless of the actual type of the given row.
|
static char |
getChar(BorderPosition pos,
BorderType type,
V2_RowTheme tr)
Returns a border character for given position and type from a theme.
|
public static final String[][] createContentArray(Object[] columns, int[] width, int[] padding)
columns - the original columnswidth - the width of the columnspadding - column paddingpublic static final BorderType[] getBorderTypes_BottomRule(ProcessedRow prev, V2_Row row, int colNumbers)
prev - the previous row in the tablerow - the original rowcolNumbers - number of columns in the tablepublic static final BorderType[] getBorderTypes_ContentRow(String[] ar, ContentRow original, int colNumbers)
ar - an array of columns for the calculationoriginal - the original rowcolNumbers - the number of columns in the tablepublic static final BorderType[] getBorderTypes_MidRule(ProcessedRow prev, ProcessedRow next, V2_Row row, int colNumbers)
prev - previous row in the tablenext - next row in the tablerow - the original rowcolNumbers - number of columns in the tablepublic static final BorderType[] getBorderTypes_TopRule(ProcessedRow next, V2_Row row, int colNumbers)
next - the next row in the tablerow - the original rowcolNumbers - number of columns in the tablepublic static char getChar(BorderPosition pos, BorderType type, V2_RowTheme tr)
pos - position of the character: left, middle or righttype - type of the character: all, content, down, up, nonetr - theme for the characterCopyright © 2010–2015. All rights reserved.