Class SolidAndDoubleBorderElement

  • All Implemented Interfaces:
    Constants

    public class SolidAndDoubleBorderElement
    extends AbstractBorderElement
    This class is responsible for solid and double border elements managing.
    • Constructor Detail

      • SolidAndDoubleBorderElement

        public SolidAndDoubleBorderElement()
        Initializes a newly created SolidAndDoubleBorderElement object so that it represents an empty border element.
      • SolidAndDoubleBorderElement

        public SolidAndDoubleBorderElement​(int style,
                                           int type)
        Constructs a newly allocated SolidAndDoubleBorderElement object. Fills data using binary representation of type. If border style is EN_DOUBLE, multiplies data[side] by 2 for every side to distinguish EN_SOLID and EN_DOUBLE.
        Parameters:
        style - integer, representing border style.
        type - binary representation of type gives data
    • Method Detail

      • map2Char

        private char map2Char()
        Maps to char.
        Returns:
        resulting mapping char
      • modifyData

        private void modifyData()
        Modifies data to nearest normal internal representation.
      • convert2Char

        public char convert2Char()
        Convert internal representation of border element to char.
        Specified by:
        convert2Char in class AbstractBorderElement
        Returns:
        corresponding char