Package com.actelion.research.gui.dock
Class ShadowBorder
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- com.actelion.research.gui.dock.ShadowBorder
-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.border.Border
public class ShadowBorder extends javax.swing.border.AbstractBorder- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ShadowBorder()Creates a border with a grey 1 pixel line on left and top and a 3 pixel (scaled to Hi-dpi factor) wide shadow on right and bottom.ShadowBorder(int top, int left, int bottom, int right)Creates a border with a grey 1 pixel line on left and top and a 3 pixel wide shadow on right and bottom.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.InsetsgetBorderInsets(java.awt.Component c)voidpaintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)static intshadowSize()static intthinSize()
-
-
-
Constructor Detail
-
ShadowBorder
public ShadowBorder()
Creates a border with a grey 1 pixel line on left and top and a 3 pixel (scaled to Hi-dpi factor) wide shadow on right and bottom. Insets are as large as needed for the drawn border.
-
ShadowBorder
public ShadowBorder(int top, int left, int bottom, int right)Creates a border with a grey 1 pixel line on left and top and a 3 pixel wide shadow on right and bottom. Insets can be specified to be larger than the drawn border, which allows to adjust the spacing outside the drawn border.
-
-
Method Detail
-
thinSize
public static int thinSize()
-
shadowSize
public static int shadowSize()
-
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsetsin interfacejavax.swing.border.Border- Overrides:
getBorderInsetsin classjavax.swing.border.AbstractBorder
-
paintBorder
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int w, int h)- Specified by:
paintBorderin interfacejavax.swing.border.Border- Overrides:
paintBorderin classjavax.swing.border.AbstractBorder
-
-