Package net.infonode.gui.shaped.border
Class AbstractPolygonBorder
java.lang.Object
net.infonode.gui.shaped.border.AbstractShapedBorder
net.infonode.gui.shaped.border.AbstractPolygonBorder
- All Implemented Interfaces:
Serializable,Border,ShapedBorder
- Direct Known Subclasses:
PolygonBorder,SlopedTabLineBorder
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPolygonBorder(ColorProvider lineColor) protectedAbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor) protectedAbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor, ColorProvider middleColor, ColorProvider shadowColor) -
Method Summary
Modifier and TypeMethodDescriptionprotected PolygoncreatePolygon(Component c, int width, int height) protected intgetHighlightOffsetX(int deltaX, int deltaY) protected intgetHighlightOffsetY(int deltaX, int deltaY) Gets the shape of this border.protected Insetsprotected Insetsbooleanprotected booleanisHighlightable(int deltaX, int deltaY) protected booleanprotected booleanlineIsDrawn(int index, Polygon polygon) voidpaintBorder(Component c, Graphics g, int x, int y, int width, int height) protected voidpaintHighlight(Component c, Graphics2D g, Polygon polygon, int width, int height) protected voidpaintPolygon(Component c, Graphics2D g, Polygon polygon, int width, int height) protected void
-
Constructor Details
-
AbstractPolygonBorder
-
AbstractPolygonBorder
-
AbstractPolygonBorder
protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor, ColorProvider middleColor, ColorProvider shadowColor)
-
-
Method Details
-
getShape
Description copied from interface:ShapedBorderGets the shape of this border.
- Parameters:
c- the component to create a shape forx- the x offsety- the y offsetwidth- the widthheight- the height- Returns:
- the Shape for this border or null if there is no shape and the normal rectangle bounds should be used
-
isBorderOpaque
public boolean isBorderOpaque() -
paintBorder
-
getBorderInsets
-
getShapedBorderInsets
-
getShapedBorderHighlightInsets
-
createPolygon
-
paintPolygon
-
paintHighlight
-
lineIsDrawn
-
isHighlightable
protected boolean isHighlightable(int deltaX, int deltaY) -
isPointsClockwise
-
getHighlightOffsetX
protected int getHighlightOffsetX(int deltaX, int deltaY) -
getHighlightOffsetY
protected int getHighlightOffsetY(int deltaX, int deltaY) -
setPoint
-