com.dlsc.flexgantt.swing.util
Class CustomizableLineBorder
java.lang.Object
com.dlsc.flexgantt.swing.util.CustomizableLineBorder
- All Implemented Interfaces:
- javax.swing.border.Border
public class CustomizableLineBorder
- extends java.lang.Object
- implements javax.swing.border.Border
A border implementation that displays a bevel border but where each border
(top, left, bottom, right) can be hidden. The border is used for such things
as the tree table header, the timeline, the navigation controls, etc... The
border achieves a more lightweight look in places where two controls with
this border are placed next or on top of each other.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CustomizableLineBorder
public CustomizableLineBorder(boolean top,
boolean left,
boolean bottom,
boolean right)
- Constructs a new border.
- Parameters:
top
- if TRUE a line will be drawn at the top of the componentleft
- if TRUE a line will be drawn to the left of the componentbottom
- if TRUE a line will be drawn at the bottom of the componentright
- if TRUE a line will be drawn to the right of the component- Since:
- 1.0
CustomizableLineBorder
public CustomizableLineBorder()
- Constructs a new border.
- Since:
- 1.0
getBorderInsets
public java.awt.Insets getBorderInsets(java.awt.Component c)
- Specified by:
getBorderInsets
in interface javax.swing.border.Border
isBorderOpaque
public boolean isBorderOpaque()
- Specified by:
isBorderOpaque
in interface javax.swing.border.Border
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
- Specified by:
paintBorder
in interface javax.swing.border.Border