Class TableModelLatexTextExporter
- java.lang.Object
-
- cern.accsoft.steering.aloha.export.latex.TableModelLatexTextExporter
-
- All Implemented Interfaces:
TextExporter
public class TableModelLatexTextExporter extends java.lang.Object implements TextExporter
this class can export (parts of) a table model to a latex table.
-
-
Constructor Summary
Constructors Constructor Description TableModelLatexTextExporter(javax.swing.table.TableModel tableModel)the default constructor, which needs a table model
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumnIndex(int index)add an index to the indizes that shall be exported.java.lang.StringcreateExportText()creates the text to export and returns itintgetMaxFractionDigits()voidsetMaxFractionDigits(int digits)sets the maximum fraction digits of exported doubles
-
-
-
Method Detail
-
addColumnIndex
public void addColumnIndex(int index)
add an index to the indizes that shall be exported.- Parameters:
index- the index to add
-
createExportText
public java.lang.String createExportText()
Description copied from interface:TextExportercreates the text to export and returns it- Specified by:
createExportTextin interfaceTextExporter- Returns:
- the text which then can be used further
-
setMaxFractionDigits
public void setMaxFractionDigits(int digits)
Description copied from interface:TextExportersets the maximum fraction digits of exported doubles- Specified by:
setMaxFractionDigitsin interfaceTextExporter- Parameters:
digits- the maximum number of fraction Digits
-
getMaxFractionDigits
public int getMaxFractionDigits()
- Specified by:
getMaxFractionDigitsin interfaceTextExporter- Returns:
- the maximum fraction digits for double values
-
-