Class BorderAttributesConverter


  • public final class BorderAttributesConverter
    extends java.lang.Object
    Constants for RTF border attribute names, and a static method for converting fo attribute strings.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BorderAttributesConverter()
      Constructor is private, because it's just a utility class.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertAttributetoRtf​(int iBorderStyle)  
      static void makeBorder​(CommonBorderPaddingBackground border, int side, RtfAttributes attributes, java.lang.String controlWord)
      Create a border control word in attributes, with border properties as specified in color, style and width.
      • Methods inherited from class java.lang.Object

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

      • BorderAttributesConverter

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

      • makeBorder

        public static void makeBorder​(CommonBorderPaddingBackground border,
                                      int side,
                                      RtfAttributes attributes,
                                      java.lang.String controlWord)
        Create a border control word in attributes, with border properties as specified in color, style and width.
        Parameters:
        border - The CommonBorderPaddingBackground object.
        side - The START, END, BEFORE, AFTER enum from CommonBorderPaddingBackground.
        attributes - The attributes list to set the border control word.
        controlWord - The border control word.
      • convertAttributetoRtf

        public static java.lang.String convertAttributetoRtf​(int iBorderStyle)
        Parameters:
        iBorderStyle - the border style to be converted
        Returns:
        String with the converted border style