com.dlsc.flexgantt.swing.util
Class CustomizableLineBorder

java.lang.Object
  extended by 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

Constructor Summary
CustomizableLineBorder()
          Constructs a new border.
CustomizableLineBorder(boolean top, boolean left, boolean bottom, boolean right)
          Constructs a new border.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 component
left - if TRUE a line will be drawn to the left of the component
bottom - if TRUE a line will be drawn at the bottom of the component
right - 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
Method Detail

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