com.vlsolutions.swing.docking
Class ShadowBorder
java.lang.Object
com.vlsolutions.swing.docking.ShadowBorder
- All Implemented Interfaces:
- Border
public class ShadowBorder
- extends Object
- implements Border
A border using a shadow on right-bottom sides.
Two types of border can be drawn : full shadow border and half shadow border.
- full shadow border paints darker lines on top and left to define a rectangular shape
(this is the kind of border used by DockableContainers (DockViews).
half shadow border paints only a shadow (nothing on top and right) : it is used for
DockedTabbedPane contents.
Constructor Summary |
ShadowBorder()
|
ShadowBorder(boolean paintTopLeft)
Constructs a full shadow border (if paintTopLeft is true) or a half shadow border
(is false). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowBorder
public ShadowBorder()
ShadowBorder
public ShadowBorder(boolean paintTopLeft)
- Constructs a full shadow border (if paintTopLeft is true) or a half shadow border
(is false).
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface Border
paintBorder
public void paintBorder(Component component,
Graphics graphics,
int x,
int y,
int w,
int h)
- Specified by:
paintBorder
in interface Border
getBorderInsets
public Insets getBorderInsets(Component component)
- Specified by:
getBorderInsets
in interface Border
© Copyright 2004-2007 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications