public class TextMetricsUtility extends Object
|Modifier and Type||Method and Description|
Returns the length of the longest
public static int toColumnWidths(int aTotalWidth, ColumnWidth... aColumnWidths)
ColumnWidthImplinstances in relation to the provided total (available) width; the provided column widths can be a mix of "number of char" widths (
WidthType.ABSOLUTE) and percent (%) widths (
WidthType.RELATIVE). When the width is being relative, then the total sum of all of relative widths represents 100%. The resulting column widths add up to the total width. The column widths for the
ColumnWidthImplinstances being specified in percent (
WidthType.RELATIVE) are calculated from the remainder width after all "number of char"
WidthType.ABSOLUTE) have been subtracted from the provided total width. *
aTotalWidth- The total available width in number of chars.
ColumnWidthImplinstances providing width specifications either in percent (%) or in "number of chars".
ColumnWidthImplinstances in the order them
ColumnWidthImplinstances have been passed; the array species the actual column widths in "number of chars", adding up to the total width.
public static int getMaxStringLength(Object aCollection)
Copyright © 2015. All rights reserved.