net.infonode.gui.shaped.border
Class AbstractShapedBorderWrapper

java.lang.Object
  extended by net.infonode.gui.shaped.border.AbstractShapedBorder
      extended by net.infonode.gui.shaped.border.AbstractShapedBorderWrapper
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border, ShapedBorder
Direct Known Subclasses:
FixedInsetsShapedBorder

public class AbstractShapedBorderWrapper
extends AbstractShapedBorder

Version:
$Revision: 1.7 $
Author:
$Author: jesper $
See Also:
Serialized Form

Field Summary
private  ShapedBorder border
           
private static long serialVersionUID
           
 
Constructor Summary
protected AbstractShapedBorderWrapper(ShapedBorder border)
           
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 java.awt.Shape getShape(java.awt.Component c, int x, int y, int width, int height)
          Gets the shape of this border.
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
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

border

private ShapedBorder border
Constructor Detail

AbstractShapedBorderWrapper

protected AbstractShapedBorderWrapper(ShapedBorder border)
Method Detail

getShape

public java.awt.Shape getShape(java.awt.Component c,
                               int x,
                               int y,
                               int width,
                               int height)
Description copied from interface: ShapedBorder

Gets the shape of this border.

Parameters:
c - the component to create a shape for
x - the x offset
y - the y offset
width - the width
height - the height
Returns:
the Shape for this border or null if there is no shape and the normal rectangle bounds should be used

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)

paintBorder

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

isBorderOpaque

public boolean isBorderOpaque()