Class TextTableColumn
java.lang.Object
org.cloudsimplus.builders.tables.AbstractTableColumn
org.cloudsimplus.builders.tables.CsvTableColumn
org.cloudsimplus.builders.tables.TextTableColumn
- All Implemented Interfaces:
TableColumn
A column of a text (ASCII) table. The class generates the string
that represents a column in a text table.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
ConstructorsConstructorDescriptionTextTableColumn(String title) TextTableColumn(String title, String subTitle) TextTableColumn(String title, String subTitle, String format) TextTableColumn(Table table, String title) TextTableColumn(Table table, String title, String subTitle) -
Method Summary
Modifier and TypeMethodDescriptiongenerateData(Object data) Generates the string that represents the data of the column, formatted according to theformat.Generates the string that represents the sub-header of the column (if any), containing the column subtitle.Methods inherited from class org.cloudsimplus.builders.tables.CsvTableColumn
alignStringRight, alignStringRight, generateHeaderMethods inherited from class org.cloudsimplus.builders.tables.AbstractTableColumn
generateTitleHeader, getIndex, isLastColumn, setFormat, setSubTitle, setTable, setTitle, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.cloudsimplus.builders.tables.TableColumn
getFormat, getSubTitle, getTable, getTitle
-
Constructor Details
-
TextTableColumn
-
TextTableColumn
-
TextTableColumn
-
TextTableColumn
-
TextTableColumn
-
-
Method Details
-
generateData
Description copied from class:AbstractTableColumnGenerates the string that represents the data of the column, formatted according to theformat.- Specified by:
generateDatain interfaceTableColumn- Overrides:
generateDatain classCsvTableColumn- Parameters:
data- the data of the column to be formatted- Returns:
- a string containing the formatted column data
-
generateSubtitleHeader
Description copied from interface:TableColumnGenerates the string that represents the sub-header of the column (if any), containing the column subtitle.- Specified by:
generateSubtitleHeaderin interfaceTableColumn- Overrides:
generateSubtitleHeaderin classAbstractTableColumn- Returns:
- the generated sub-header string
-