Package org.omegat.util.gui
Class TextUtil
- java.lang.Object
-
- org.omegat.util.gui.TextUtil
-
public final class TextUtil extends java.lang.Object
Some utilities for display text tables with aligning.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
appendField(java.lang.StringBuilder out, java.lang.String data, int colSize, boolean alignRight)
Output field with specified length.static java.lang.String
showTextTable(java.lang.String[] columnHeaders, java.lang.String[][] table, boolean[] alignRight)
Draw text table with columns align.
-
-
-
Method Detail
-
showTextTable
public static java.lang.String showTextTable(java.lang.String[] columnHeaders, java.lang.String[][] table, boolean[] alignRight)
Draw text table with columns align.- Parameters:
columnHeaders
- column headerstable
- table data- Returns:
- text
-
appendField
public static void appendField(java.lang.StringBuilder out, java.lang.String data, int colSize, boolean alignRight)
Output field with specified length.- Parameters:
out
- output streamdata
- field datacolSize
- field size
-
-