public class TwoColoredLineBorder extends RoundedCornerBorder
TitledTab
,
TabbedPanel
,
Serialized FormConstructor and Description |
---|
TwoColoredLineBorder(ColorProvider topLeftColor,
ColorProvider bottomRightColor,
boolean roundCorners,
boolean open)
Constructs a TwoColoredLineBorder
|
Modifier and Type | Method and Description |
---|---|
protected void |
paintPolygon(java.awt.Component c,
java.awt.Graphics2D g,
java.awt.Polygon polygon,
int width,
int height) |
getShapedBorderInsets
createPolygon
getBorderInsets, getHighlightOffsetX, getHighlightOffsetY, getShape, getShapedBorderHighlightInsets, isBorderOpaque, isHighlightable, isPointsClockwise, lineIsDrawn, paintBorder, paintHighlight, setPoint
public TwoColoredLineBorder(ColorProvider topLeftColor, ColorProvider bottomRightColor, boolean roundCorners, boolean open)
topLeftColor
- the colorprovider for the top and left linesbottomRightColor
- the colorprovider for the bottom and right linesroundCorners
- true for round corners on the side facing away from the tab areaopen
- true for no border on the side towards the tab areaprotected void paintPolygon(java.awt.Component c, java.awt.Graphics2D g, java.awt.Polygon polygon, int width, int height)
paintPolygon
in class AbstractPolygonBorder