Class TabAreaLineBorder

    • Constructor Summary

      Constructors 
      Constructor Description
      TabAreaLineBorder()
      Constructs a TabAreaLineBorder with color based on the look and feel
      TabAreaLineBorder​(boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
      Constructor.
      TabAreaLineBorder​(java.awt.Color color)
      Constructs a TabAreaLineBorder with the give color
      TabAreaLineBorder​(java.awt.Color color, boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
      Constructor.
      TabAreaLineBorder​(ColorProvider colorProvider, boolean drawTop, boolean drawLeft, boolean drawRight, boolean flipLeftRight)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Insets getBorderInsets​(java.awt.Component c)  
      boolean isBorderOpaque()  
      void paintBorder​(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)  
      • Methods inherited from class java.lang.Object

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

      • TabAreaLineBorder

        public TabAreaLineBorder()
        Constructs a TabAreaLineBorder with color based on the look and feel
      • TabAreaLineBorder

        public TabAreaLineBorder​(java.awt.Color color)
        Constructs a TabAreaLineBorder with the give color
        Parameters:
        color - color for the border
      • TabAreaLineBorder

        public TabAreaLineBorder​(boolean drawTop,
                                 boolean drawLeft,
                                 boolean drawRight,
                                 boolean flipLeftRight)
        Constructor.
        Parameters:
        drawTop - draw the top line
        drawLeft - draw the left line
        drawRight - draw the right line
        flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines
      • TabAreaLineBorder

        public TabAreaLineBorder​(java.awt.Color color,
                                 boolean drawTop,
                                 boolean drawLeft,
                                 boolean drawRight,
                                 boolean flipLeftRight)
        Constructor.
        Parameters:
        color - the line color
        drawTop - draw the top line
        drawLeft - draw the left line
        drawRight - draw the right line
        flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines
      • TabAreaLineBorder

        public TabAreaLineBorder​(ColorProvider colorProvider,
                                 boolean drawTop,
                                 boolean drawLeft,
                                 boolean drawRight,
                                 boolean flipLeftRight)
        Constructor.
        Parameters:
        colorProvider - the line color provider
        drawTop - draw the top line
        drawLeft - draw the left line
        drawRight - draw the right line
        flipLeftRight - if true the left line is rotated so that it is always to the left or at the top and vice versa for the right line, if false the left and right lines are rotated the same way as the other lines
    • Method Detail

      • isBorderOpaque

        public boolean isBorderOpaque()
        Specified by:
        isBorderOpaque in interface javax.swing.border.Border
      • paintBorder

        public void paintBorder​(java.awt.Component c,
                                java.awt.Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
        Specified by:
        paintBorder in interface javax.swing.border.Border
      • getBorderInsets

        public java.awt.Insets getBorderInsets​(java.awt.Component c)
        Specified by:
        getBorderInsets in interface javax.swing.border.Border