Class TabLineBorder

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.border.Border

    public class TabLineBorder
    extends java.lang.Object
    implements javax.swing.border.Border, java.io.Serializable
    Deprecated.
    As of ITP 1.2.0 use TabAreaLineBorder instead with TabbedPanelProperties.TAB_SPACING set to -1.
    TabLineBorder draws a 1 pixel wide line around a Tab. If tab spacing in the tabbed panel is 0 then the border will only draw a single line between two adjacent tabs.
    See Also:
    Tab, TabbedPanel, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TabLineBorder()
      Deprecated.
      Constructor.
      TabLineBorder​(boolean drawBottomLine, boolean drawTopLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
      TabLineBorder​(java.awt.Color color)
      Deprecated.
      Constructs a TabLineBorder that draws lines on three sides of the tab.
      TabLineBorder​(java.awt.Color color, boolean drawBottomLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on three or four sides of the tab.
      TabLineBorder​(java.awt.Color color, boolean drawBottomLine, boolean drawTopLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
      TabLineBorder​(java.awt.Color color, javax.swing.border.Border innerBorder)
      Deprecated.
      Constructs a TabLineBorder that draws lines on three sides of the tab.
      TabLineBorder​(java.awt.Color color, javax.swing.border.Border innerBorder, boolean drawBottomLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on three or four sides of the tab.
      TabLineBorder​(ColorProvider colorProvider, boolean drawBottomLine, boolean drawTopLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
      TabLineBorder​(ColorProvider colorProvider, javax.swing.border.Border innerBorder, boolean drawBottomLine, boolean drawTopLine)
      Deprecated.
      Constructs a TabLineBorder that draws lines on three or four sides of the tab.
    • Method Summary

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

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

      • TabLineBorder

        public TabLineBorder()
        Deprecated.
        Constructor. Uses the TabbedPane.darkShadow color from the UIManager as line color.
      • TabLineBorder

        public TabLineBorder​(java.awt.Color color)
        Deprecated.
        Constructs a TabLineBorder that draws lines on three sides of the tab. No line will be drawn on the side towards the TabbedPanel's content area.
        Parameters:
        color - the line color
      • TabLineBorder

        public TabLineBorder​(java.awt.Color color,
                             boolean drawBottomLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on three or four sides of the tab.
        Parameters:
        color - the line color
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
      • TabLineBorder

        public TabLineBorder​(boolean drawBottomLine,
                             boolean drawTopLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
        Parameters:
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
        drawTopLine - true if a line should be drawn on the side opposite to the tabbed panel's content area, otherwise false
      • TabLineBorder

        public TabLineBorder​(java.awt.Color color,
                             boolean drawBottomLine,
                             boolean drawTopLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
        Parameters:
        color - the line color
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
        drawTopLine - true if a line should be drawn on the side opposite to the tabbed panel's content area, otherwise false
      • TabLineBorder

        public TabLineBorder​(ColorProvider colorProvider,
                             boolean drawBottomLine,
                             boolean drawTopLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on two, three or four sides of the tab.
        Parameters:
        colorProvider - the line color provider
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
        drawTopLine - true if a line should be drawn on the side opposite to the tabbed panel's content area, otherwise false
      • TabLineBorder

        public TabLineBorder​(java.awt.Color color,
                             javax.swing.border.Border innerBorder)
        Deprecated.
        Constructs a TabLineBorder that draws lines on three sides of the tab. No line will be drawn on the side towards the tabbed panel's content area. The inner border will be drawn inside of this TabLineBorder.
        Parameters:
        color - the line color
        innerBorder - border to draw inside of this TabLineBorder
      • TabLineBorder

        public TabLineBorder​(java.awt.Color color,
                             javax.swing.border.Border innerBorder,
                             boolean drawBottomLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on three or four sides of the tab. The inner border will be drawn inside of this TabLineBorder.
        Parameters:
        color - the line color
        innerBorder - border to draw inside of this TabLineBorder
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
      • TabLineBorder

        public TabLineBorder​(ColorProvider colorProvider,
                             javax.swing.border.Border innerBorder,
                             boolean drawBottomLine,
                             boolean drawTopLine)
        Deprecated.
        Constructs a TabLineBorder that draws lines on three or four sides of the tab. The inner border will be drawn inside of this TabLineBorder.
        Parameters:
        colorProvider - the line color
        innerBorder - border to draw inside of this TabLineBorder
        drawBottomLine - true if a line should be drawn on the side towards the tabbed panel's content area, otherwise false
        drawTopLine - true if a line should be drawn on the side opposite to the tabbed panel's content area, otherwise false
    • Method Detail

      • paintBorder

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

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

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