net.infonode.gui.shaped.border
Interface ShapedBorder

All Superinterfaces:
javax.swing.border.Border
All Known Implementing Classes:
AbstractPolygonBorder, AbstractShapedBorder, AbstractShapedBorderWrapper, FixedInsetsShapedBorder, PolygonBorder, RoundedCornerBorder, ShapedGradientTheme.TabBorder, SlopedTabLineBorder, TwoColoredLineBorder

public interface ShapedBorder
extends javax.swing.border.Border

A border that has a Shape.

Version:
$Revision: 1.9 $
Author:
$Author: jesper $

Method Summary
 java.awt.Shape getShape(java.awt.Component c, int x, int y, int width, int height)
          Gets the shape of this border.
 
Methods inherited from interface javax.swing.border.Border
getBorderInsets, isBorderOpaque, paintBorder
 

Method Detail

getShape

java.awt.Shape getShape(java.awt.Component c,
                        int x,
                        int y,
                        int width,
                        int height)

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