Class 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
      void addColumnIndex​(int index)
      add an index to the indizes that shall be exported.
      java.lang.String createExportText()
      creates the text to export and returns it
      int getMaxFractionDigits()  
      void setMaxFractionDigits​(int digits)
      sets the maximum fraction digits of exported doubles
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableModelLatexTextExporter

        public TableModelLatexTextExporter​(javax.swing.table.TableModel tableModel)
        the default constructor, which needs a table model
        Parameters:
        tableModel -
    • 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: TextExporter
        creates the text to export and returns it
        Specified by:
        createExportText in interface TextExporter
        Returns:
        the text which then can be used further
      • setMaxFractionDigits

        public void setMaxFractionDigits​(int digits)
        Description copied from interface: TextExporter
        sets the maximum fraction digits of exported doubles
        Specified by:
        setMaxFractionDigits in interface TextExporter
        Parameters:
        digits - the maximum number of fraction Digits
      • getMaxFractionDigits

        public int getMaxFractionDigits()
        Specified by:
        getMaxFractionDigits in interface TextExporter
        Returns:
        the maximum fraction digits for double values