Package 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
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractShapedBorderWrapper(ShapedBorder border)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 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()
-
-