Class TwoColoredLineBorder
java.lang.Object
net.infonode.gui.shaped.border.AbstractShapedBorder
net.infonode.gui.shaped.border.AbstractPolygonBorder
net.infonode.gui.shaped.border.PolygonBorder
net.infonode.gui.shaped.border.RoundedCornerBorder
net.infonode.tabbedpanel.internal.TwoColoredLineBorder
- All Implemented Interfaces:
Serializable,Border,ShapedBorder
TwoColoredLineBorder draws a 1 pixel wide line. The border can have
one color for the top and left line and another color for the bottom
and right line.
- Since:
- ITP 1.2.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTwoColoredLineBorder(ColorProvider topLeftColor, ColorProvider bottomRightColor, boolean roundCorners, boolean open) Constructs a TwoColoredLineBorder -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpaintPolygon(Component c, Graphics2D g, Polygon polygon, int width, int height) Methods inherited from class net.infonode.gui.shaped.border.RoundedCornerBorder
getShapedBorderInsetsMethods inherited from class net.infonode.gui.shaped.border.PolygonBorder
createPolygonMethods inherited from class net.infonode.gui.shaped.border.AbstractPolygonBorder
getBorderInsets, getHighlightOffsetX, getHighlightOffsetY, getShape, getShapedBorderHighlightInsets, isBorderOpaque, isHighlightable, isPointsClockwise, lineIsDrawn, paintBorder, paintHighlight, setPoint
-
Constructor Details
-
TwoColoredLineBorder
public TwoColoredLineBorder(ColorProvider topLeftColor, ColorProvider bottomRightColor, boolean roundCorners, boolean open) Constructs a TwoColoredLineBorder- Parameters:
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 area
-
-
Method Details
-
paintPolygon
- Overrides:
paintPolygonin classAbstractPolygonBorder
-