net.infonode.gui.shaped.border
Class RoundedCornerBorder

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
              extended by net.infonode.gui.shaped.border.RoundedCornerBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border, ShapedBorder
Direct Known Subclasses:
TwoColoredLineBorder

public class RoundedCornerBorder
extends PolygonBorder

Author:
johan
See Also:
Serialized Form

Constructor Summary
RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4)
           
RoundedCornerBorder(ColorProvider lineColor, ColorProvider highlightColor, int cType1, int cType2, int cType3, int cType4, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
           
RoundedCornerBorder(ColorProvider lineColor, int cType)
           
RoundedCornerBorder(ColorProvider lineColor, int cType, boolean drawTop, boolean drawLeft, boolean drawBottom, boolean drawRight)
           
 
Method Summary
protected  java.awt.Insets getShapedBorderInsets(java.awt.Component c)
           
 
Methods inherited from class net.infonode.gui.shaped.border.PolygonBorder
createPolygon
 
Methods inherited from class net.infonode.gui.shaped.border.AbstractPolygonBorder
getBorderInsets, getHighlightOffsetX, getHighlightOffsetY, getShape, getShapedBorderHighlightInsets, 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
 

Constructor Detail

RoundedCornerBorder

public RoundedCornerBorder(ColorProvider lineColor,
                           int cType)

RoundedCornerBorder

public RoundedCornerBorder(ColorProvider lineColor,
                           int cType,
                           boolean drawTop,
                           boolean drawLeft,
                           boolean drawBottom,
                           boolean drawRight)

RoundedCornerBorder

public RoundedCornerBorder(ColorProvider lineColor,
                           ColorProvider highlightColor,
                           int cType1,
                           int cType2,
                           int cType3,
                           int cType4)

RoundedCornerBorder

public RoundedCornerBorder(ColorProvider lineColor,
                           ColorProvider highlightColor,
                           int cType1,
                           int cType2,
                           int cType3,
                           int cType4,
                           boolean drawTop,
                           boolean drawLeft,
                           boolean drawBottom,
                           boolean drawRight)
Method Detail

getShapedBorderInsets

protected java.awt.Insets getShapedBorderInsets(java.awt.Component c)
Overrides:
getShapedBorderInsets in class AbstractPolygonBorder