Package net.infonode.gui.shaped.border
Class RoundedCornerBorder
- 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
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.border.Border,ShapedBorder
- Direct Known Subclasses:
TwoColoredLineBorder
public class RoundedCornerBorder extends PolygonBorder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RoundedCornerBorder(ColorProvider lineColor, int cType)RoundedCornerBorder(ColorProvider lineColor, int cType, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4)RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int[]createCoordinates(int cType1, int cType2, int cType3, int cType4, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)private static float[]createXScales(int cType1, int cType2, int cType3, int cType4)private static float[]createYScales(int cType1, int cType2, int cType3, int cType4)protected java.awt.InsetsgetShapedBorderInsets(java.awt.Component c)-
Methods inherited from class net.infonode.gui.shaped.border.PolygonBorder
createPolygon
-
Methods inherited from class net.infonode.gui.shaped.border.AbstractPolygonBorder
getBorderInsets, getHighlightOffsetX, getHighlightOffsetY, getShape, getShapedBorderHighlightInsets, isBorderOpaque, isHighlightable, isPointsClockwise, lineIsDrawn, paintBorder, paintHighlight, paintPolygon, setPoint
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
corner1
private static int[][] corner1
-
corner2
private static int[][] corner2
-
corner3
private static int[][] corner3
-
corner4
private static int[][] corner4
-
insets
private java.awt.Insets insets
-
-
Constructor Detail
-
RoundedCornerBorder
public RoundedCornerBorder(ColorProvider lineColor, int cType)
-
RoundedCornerBorder
public RoundedCornerBorder(ColorProvider lineColor, int cType, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
-
RoundedCornerBorder
public RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4)
-
RoundedCornerBorder
public RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
-
-
Method Detail
-
getShapedBorderInsets
protected java.awt.Insets getShapedBorderInsets(java.awt.Component c)
- Overrides:
getShapedBorderInsetsin classAbstractPolygonBorder
-
createCoordinates
private static int[] createCoordinates(int cType1, int cType2, int cType3, int cType4, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
-
createXScales
private static float[] createXScales(int cType1, int cType2, int cType3, int cType4)
-
createYScales
private static float[] createYScales(int cType1, int cType2, int cType3, int cType4)
-
-