net.infonode.gui.shaped.border
Class AbstractShapedBorderWrapper
java.lang.Object
net.infonode.gui.shaped.border.AbstractShapedBorder
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
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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
border
private ShapedBorder border
AbstractShapedBorderWrapper
protected AbstractShapedBorderWrapper(ShapedBorder border)
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 forx
- the x offsety
- the y offsetwidth
- the widthheight
- 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()