net.infonode.gui.shaped.border
Class PolygonBorder
java.lang.Object
net.infonode.gui.shaped.border.AbstractShapedBorder
net.infonode.gui.shaped.border.AbstractPolygonBorder
net.infonode.gui.shaped.border.PolygonBorder
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.border.Border, ShapedBorder
- Direct Known Subclasses:
- RoundedCornerBorder
public class PolygonBorder
- extends AbstractPolygonBorder
- Version:
- $Revision: 1.8 $
- Author:
- $Author: jesper $
- See Also:
- Serialized Form
Constructor Summary |
PolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor,
ColorProvider middleColor,
ColorProvider shadowColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
|
PolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
|
PolygonBorder(ColorProvider lineColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
|
Method Summary |
protected java.awt.Polygon |
createPolygon(java.awt.Component c,
int width,
int height)
|
Methods inherited from class net.infonode.gui.shaped.border.AbstractPolygonBorder |
getBorderInsets, getHighlightOffsetX, getHighlightOffsetY, getShape, getShapedBorderHighlightInsets, getShapedBorderInsets, isBorderOpaque, isHighlightable, isPointsClockwise, lineIsDrawn, paintBorder, paintHighlight, paintPolygon, setPoint |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
coords
private int[] coords
widthFactors
private float[] widthFactors
heightFactors
private float[] heightFactors
PolygonBorder
public PolygonBorder(ColorProvider lineColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
PolygonBorder
public PolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
PolygonBorder
public PolygonBorder(ColorProvider lineColor,
ColorProvider highlightColor,
ColorProvider middleColor,
ColorProvider shadowColor,
int[] coords,
float[] widthFactors,
float[] heightFactors)
createPolygon
protected java.awt.Polygon createPolygon(java.awt.Component c,
int width,
int height)
- Overrides:
createPolygon
in class AbstractPolygonBorder