Interface TableColumn
- All Known Implementing Classes:
AbstractTableColumn,CsvTableColumn,HtmlTableColumn,LatexTableColumn,MarkdownTableColumn,TextTableColumn
public interface TableColumn
An interface that represents a column of a table generated
using a
Table.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
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.Generates the string that represents the header of the column, containing the column title.intgetIndex()Returns the index of the column into the table.getTable()getTitle()Sets the format to print the column data.setSubTitle(String subTitle) Sets the subtitle of the table (optional).Sets the table this column belongs to.Sets the title of the table (optional).
-
Method Details
-
getIndex
int getIndex()Returns the index of the column into the table.- Returns:
- the index of the column into the table
-
generateData
-
generateTitleHeader
String generateTitleHeader()Generates the string that represents the header of the column, containing the column title.- Returns:
- the generated header string
-
generateSubtitleHeader
String generateSubtitleHeader()Generates the string that represents the sub-header of the column (if any), containing the column subtitle.- Returns:
- the generated sub-header string
-
getFormat
String getFormat()- Returns:
- the format to be used to display the content of the column,
according to the
String.format(java.lang.String, java.lang.Object...)(optional).
-
getSubTitle
String getSubTitle()- Returns:
- the subtitle to be displayed below the title of the column (optional).
-
getTable
Table getTable()- Returns:
- the table that the column belongs to.
-
getTitle
String getTitle()- Returns:
- the title to be displayed at the top of the column.
-
setFormat
Sets the format to print the column data.- Parameters:
format- the format to set- Returns:
- this column
-
setSubTitle
Sets the subtitle of the table (optional).- Parameters:
subTitle- the subtitle to set- Returns:
- this column
-
setTable
Sets the table this column belongs to.- Parameters:
table- the table to set- Returns:
- this column
-
setTitle
Sets the title of the table (optional).- Parameters:
title- the title to set- Returns:
- this column
-