net.infonode.gui.shaped.border

Class AbstractPolygonBorder

public abstract class AbstractPolygonBorder extends AbstractShapedBorder

Author: johan

Constructor Summary
protected AbstractPolygonBorder(ColorProvider lineColor)
protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor)
protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor, ColorProvider middleColor, ColorProvider shadowColor)
Method Summary
protected PolygoncreatePolygon(Component c, int width, int height)
InsetsgetBorderInsets(Component c)
protected intgetHighlightOffsetX(int deltaX, int deltaY)
protected intgetHighlightOffsetY(int deltaX, int deltaY)
ShapegetShape(Component c, int x, int y, int width, int height)
protected InsetsgetShapedBorderHighlightInsets(Component c)
protected InsetsgetShapedBorderInsets(Component c)
booleanisBorderOpaque()
protected booleanisHighlightable(int deltaX, int deltaY)
protected booleanisPointsClockwise(Component c)
protected 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 voidsetPoint(Polygon polygon, int x, int y)

Constructor Detail

AbstractPolygonBorder

protected AbstractPolygonBorder(ColorProvider lineColor)

AbstractPolygonBorder

protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor)

AbstractPolygonBorder

protected AbstractPolygonBorder(ColorProvider lineColor, ColorProvider highlightColor, ColorProvider middleColor, ColorProvider shadowColor)

Method Detail

createPolygon

protected Polygon createPolygon(Component c, int width, int height)

getBorderInsets

public Insets getBorderInsets(Component c)

getHighlightOffsetX

protected int getHighlightOffsetX(int deltaX, int deltaY)

getHighlightOffsetY

protected int getHighlightOffsetY(int deltaX, int deltaY)

getShape

public Shape getShape(Component c, int x, int y, int width, int height)

getShapedBorderHighlightInsets

protected Insets getShapedBorderHighlightInsets(Component c)

getShapedBorderInsets

protected Insets getShapedBorderInsets(Component c)

isBorderOpaque

public boolean isBorderOpaque()

isHighlightable

protected boolean isHighlightable(int deltaX, int deltaY)

isPointsClockwise

protected boolean isPointsClockwise(Component c)

lineIsDrawn

protected boolean lineIsDrawn(int index, Polygon polygon)

paintBorder

public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)

paintHighlight

protected void paintHighlight(Component c, Graphics2D g, Polygon polygon, int width, int height)

paintPolygon

protected void paintPolygon(Component c, Graphics2D g, Polygon polygon, int width, int height)

setPoint

protected void setPoint(Polygon polygon, int x, int y)