public abstract class AbstractPolygonBorder extends AbstractShapedBorder
Modifier | Constructor and Description |
---|---|
protected |
AbstractPolygonBorder(ColorProvider lineColor) |
protected |
AbstractPolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor) |
protected |
AbstractPolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor,
ColorProvider middleColor,
ColorProvider shadowColor) |
Modifier and Type | Method and Description |
---|---|
protected java.awt.Polygon |
createPolygon(java.awt.Component c,
int width,
int height) |
java.awt.Insets |
getBorderInsets(java.awt.Component c) |
protected int |
getHighlightOffsetX(int deltaX,
int deltaY) |
protected int |
getHighlightOffsetY(int deltaX,
int deltaY) |
java.awt.Shape |
getShape(java.awt.Component c,
int x,
int y,
int width,
int height)
Gets the shape of this border.
|
protected java.awt.Insets |
getShapedBorderHighlightInsets(java.awt.Component c) |
protected java.awt.Insets |
getShapedBorderInsets(java.awt.Component c) |
boolean |
isBorderOpaque() |
protected boolean |
isHighlightable(int deltaX,
int deltaY) |
protected boolean |
isPointsClockwise(java.awt.Component c) |
protected boolean |
lineIsDrawn(int index,
java.awt.Polygon polygon) |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height) |
protected void |
paintHighlight(java.awt.Component c,
java.awt.Graphics2D g,
java.awt.Polygon polygon,
int width,
int height) |
protected void |
paintPolygon(java.awt.Component c,
java.awt.Graphics2D g,
java.awt.Polygon polygon,
int width,
int height) |
protected void |
setPoint(java.awt.Polygon polygon,
int x,
int y) |
protected AbstractPolygonBorder(ColorProvider lineColor)
protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor)
protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor, ColorProvider middleColor, ColorProvider shadowColor)
public java.awt.Shape getShape(java.awt.Component c, int x, int y, int width, int height)
ShapedBorder
Gets the shape of this border.
c
- the component to create a shape forx
- the x offsety
- the y offsetwidth
- the widthheight
- the heightpublic boolean isBorderOpaque()
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
public java.awt.Insets getBorderInsets(java.awt.Component c)
protected java.awt.Insets getShapedBorderInsets(java.awt.Component c)
protected java.awt.Insets getShapedBorderHighlightInsets(java.awt.Component c)
protected java.awt.Polygon createPolygon(java.awt.Component c, int width, int height)
protected void paintPolygon(java.awt.Component c, java.awt.Graphics2D g, java.awt.Polygon polygon, int width, int height)
protected void paintHighlight(java.awt.Component c, java.awt.Graphics2D g, java.awt.Polygon polygon, int width, int height)
protected boolean lineIsDrawn(int index, java.awt.Polygon polygon)
protected boolean isHighlightable(int deltaX, int deltaY)
protected boolean isPointsClockwise(java.awt.Component c)
protected int getHighlightOffsetX(int deltaX, int deltaY)
protected int getHighlightOffsetY(int deltaX, int deltaY)
protected void setPoint(java.awt.Polygon polygon, int x, int y)