Class TableAttributesConverter


  • public final class TableAttributesConverter
    extends java.lang.Object
    Provides methods to convert the attributes to RtfAttributes.
    • Constructor Detail

      • TableAttributesConverter

        private TableAttributesConverter()
        Constructor is private, because it's just a utility class.
    • Method Detail

      • convertTableAttributes

        static RtfAttributes convertTableAttributes​(Table fobj)
                                             throws FOPException
        Converts table-only attributes to rtf attributes.
        Parameters:
        fobj - the table for which the attributes are converted
        Returns:
        All valid rtf attributes together
        Throws:
        ConverterException - On convertion error
        FOPException
      • convertTablePartAttributes

        static RtfAttributes convertTablePartAttributes​(TablePart part)
                                                 throws FOPException
        Converts table-only attributes to rtf attributes.
        Parameters:
        part - the table part for which the attributes are converted
        Returns:
        All valid rtf attributes together
        Throws:
        ConverterException - On convertion error
        FOPException
      • convertCellAttributes

        static RtfAttributes convertCellAttributes​(TableCell fobj)
                                            throws FOPException
        Converts cell attributes to rtf attributes.
        Parameters:
        fobj - FObj whose properties are to be converted
        Returns:
        All valid rtf attributes together
        Throws:
        ConverterException - On conversion error
        FOPException
      • convertRowAttributes

        static RtfAttributes convertRowAttributes​(TableRow fobj,
                                                  RtfAttributes rtfatts)
                                           throws FOPException
        Converts table and row attributes to rtf attributes.
        Parameters:
        fobj - FObj to be converted
        Returns:
        All valid rtf attributes together
        Throws:
        ConverterException - On converion error
        FOPException