net.infonode.gui.shaped.border
Class PolygonBorder

java.lang.Object
  extended by net.infonode.gui.shaped.border.AbstractShapedBorder
      extended by net.infonode.gui.shaped.border.AbstractPolygonBorder
          extended by 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

Field Summary
private  int[] coords
           
private  float[] heightFactors
           
private static long serialVersionUID
           
private  float[] widthFactors
           
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

coords

private int[] coords

widthFactors

private float[] widthFactors

heightFactors

private float[] heightFactors
Constructor Detail

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)
Method Detail

createPolygon

protected java.awt.Polygon createPolygon(java.awt.Component c,
                                         int width,
                                         int height)
Overrides:
createPolygon in class AbstractPolygonBorder