Class ShadowBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- org.pentaho.reporting.designer.core.util.docking.ShadowBorder
-
- All Implemented Interfaces:
Serializable
,Border
public class ShadowBorder extends AbstractBorder
User: Martin Date: 03.02.2006 Time: 08:13:47- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShadowBorder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Insets
getBorderInsets(Component c)
Returns the insets used by this border.boolean
isBorderOpaque()
void
paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Paints this border with a one pixel wide line on the top and left side, and a fading shadow on the bottom and right side.-
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle
-
-
-
-
Method Detail
-
getBorderInsets
public Insets getBorderInsets(Component c)
Returns the insets used by this border. This border uses one pixel on the top and left side, and 4 pixels on the bottom and right side.- Specified by:
getBorderInsets
in interfaceBorder
- Overrides:
getBorderInsets
in classAbstractBorder
- Parameters:
c
- the component for which this border insets value applies- Returns:
- the insets object initialized to (1,1,4,4)
-
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interfaceBorder
- Overrides:
isBorderOpaque
in classAbstractBorder
-
paintBorder
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Paints this border with a one pixel wide line on the top and left side, and a fading shadow on the bottom and right side.- Specified by:
paintBorder
in interfaceBorder
- Overrides:
paintBorder
in classAbstractBorder
- Parameters:
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted border
-
-