Class DiffTextPane

    • Field Detail

      • m_ColorDeleted

        protected Color m_ColorDeleted
        the color for deleted content.
      • m_ColorAdded

        protected Color m_ColorAdded
        the color for added content.
      • m_ColorRight

        protected Color m_ColorRight
        the color for right content.
    • Constructor Detail

      • DiffTextPane

        public DiffTextPane()
    • Method Detail

      • setLeft

        public void setLeft​(boolean value)
        Sets whether this diff represents the left or right content.
        Parameters:
        value - if true then it represents the left view
      • isLeft

        public boolean isLeft()
        Returns whether this diff represents the left or right content.
        Returns:
        true if it represents the left content
      • setDiff

        public void setDiff​(DiffUtils.SideBySideDiff value)
        Sets the diff data to display.
        Parameters:
        value - the diff data
      • update

        protected void update()
        Generates the diff view.