Class SlopedTabLineBorder

    • Field Detail

      • corners

        private static final int[][][] corners
      • drawBottomLine

        private boolean drawBottomLine
      • leftSlope

        private float leftSlope
      • rightSlope

        private float rightSlope
      • bottomLeftRounded

        private boolean bottomLeftRounded
      • topLeftRounded

        private boolean topLeftRounded
      • topRightRounded

        private boolean topRightRounded
      • bottomRightRounded

        private boolean bottomRightRounded
      • leftHeight

        private int leftHeight
      • rightHeight

        private int rightHeight
      • xCoords

        private static int[] xCoords
      • yCoords

        private static int[] yCoords
      • x

        private static int x
      • y

        private static int y
      • index

        private static int index
    • Constructor Detail

      • SlopedTabLineBorder

        public SlopedTabLineBorder()
      • SlopedTabLineBorder

        public SlopedTabLineBorder​(float leftSlope,
                                   float rightSlope)
      • SlopedTabLineBorder

        public SlopedTabLineBorder​(float leftSlope,
                                   float rightSlope,
                                   int leftHeight,
                                   int rightHeight)
      • SlopedTabLineBorder

        public SlopedTabLineBorder​(float leftSlope,
                                   float rightSlope,
                                   boolean bottomLeftRounded,
                                   boolean topLeftRounded,
                                   boolean topRightRounded,
                                   boolean bottomRightRounded)
      • SlopedTabLineBorder

        public SlopedTabLineBorder​(float leftSlope,
                                   float rightSlope,
                                   int leftHeight,
                                   int rightHeight,
                                   boolean bottomLeftRounded,
                                   boolean topLeftRounded,
                                   boolean topRightRounded,
                                   boolean bottomRightRounded)
      • SlopedTabLineBorder

        public SlopedTabLineBorder​(ColorProvider lineColor,
                                   ColorProvider highlightColor,
                                   boolean drawBottomLine,
                                   float leftSlope,
                                   float rightSlope,
                                   int leftHeight,
                                   int rightHeight,
                                   boolean bottomLeftRounded,
                                   boolean topLeftRounded,
                                   boolean topRightRounded,
                                   boolean bottomRightRounded)
    • Method Detail

      • isBottomLeftRounded

        protected boolean isBottomLeftRounded​(java.awt.Component c)
      • getCorner

        private static int[] getCorner​(int type,
                                       float slope,
                                       boolean rounded)
      • addPoint

        private static void addPoint​(int px,
                                     int py)
      • addCorner

        private static void addCorner​(int px,
                                      int py,
                                      int[] c)
      • getStartY

        private static int getStartY​(int[] corner)
      • getEndY

        private static int getEndY​(int[] corner)