net.infonode.tabbedpanel.internal

Class SlopedTabLineBorder

public class SlopedTabLineBorder extends AbstractPolygonBorder

Since: 1.2.0

Author: johan

Constructor Summary
SlopedTabLineBorder()
SlopedTabLineBorder(float leftSlope, float rightSlope)
SlopedTabLineBorder(float leftSlope, float rightSlope, int leftHeight, int rightHeight)
SlopedTabLineBorder(float leftSlope, float rightSlope, boolean bottomLeftRounded, boolean topLeftRounded, boolean topRightRounded, boolean bottomRightRounded)
SlopedTabLineBorder(float leftSlope, float rightSlope, int leftHeight, int rightHeight, boolean bottomLeftRounded, boolean topLeftRounded, boolean topRightRounded, boolean bottomRightRounded)
SlopedTabLineBorder(ColorProvider lineColor, ColorProvider highlightColor, boolean drawBottomLine, float leftSlope, float rightSlope, int leftHeight, int rightHeight, boolean bottomLeftRounded, boolean topLeftRounded, boolean topRightRounded, boolean bottomRightRounded)
Method Summary
protected PolygoncreatePolygon(Component c, int width, int height)
protected InsetsgetShapedBorderInsets(Component c)
protected booleanisBottomLeftRounded(Component c)
protected booleanlineIsDrawn(int index, Polygon polygon)

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

createPolygon

protected Polygon createPolygon(Component c, int width, int height)

getShapedBorderInsets

protected Insets getShapedBorderInsets(Component c)

isBottomLeftRounded

protected boolean isBottomLeftRounded(Component c)

lineIsDrawn

protected boolean lineIsDrawn(int index, Polygon polygon)