JIDE 3.5.15

com.jidesoft.plaf.xerto
Class SlidingFrameBorder

java.lang.Object
  extended by com.jidesoft.plaf.xerto.SlidingFrameBorder
All Implemented Interfaces:
Border, UIResource

public class SlidingFrameBorder
extends Object
implements Border, UIResource

This class is an implementation of the DockableFrame border.


Field Summary
protected  Color _darkShadow
           
protected  Color _highlight
           
protected  Insets _insets
           
protected  Color _lightHighlight
           
protected  Color _shadow
           
static int SHADOW_SIZE
           
 
Constructor Summary
SlidingFrameBorder(Color highlight, Color lightHighlight, Color shadow, Color darkShadow, Insets insets)
           
 
Method Summary
 Insets getBorderInsets(Component c)
          Returns the insets of the border.
 boolean isBorderOpaque()
          Returns whether or not the border is opaque.
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
static void paintGradient(Graphics g, Rectangle rect, boolean isVertical, int darkness, boolean lighter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHADOW_SIZE

public static final int SHADOW_SIZE
See Also:
Constant Field Values

_highlight

protected Color _highlight

_lightHighlight

protected Color _lightHighlight

_shadow

protected Color _shadow

_darkShadow

protected Color _darkShadow

_insets

protected Insets _insets
Constructor Detail

SlidingFrameBorder

public SlidingFrameBorder(Color highlight,
                          Color lightHighlight,
                          Color shadow,
                          Color darkShadow,
                          Insets insets)
Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Returns the insets of the border.

Specified by:
getBorderInsets in interface Border
Parameters:
c - the component for which this border insets value applies

isBorderOpaque

public boolean isBorderOpaque()
Returns whether or not the border is opaque. If the border is opaque, it is responsible for filling in it's own background when painting.

Specified by:
isBorderOpaque in interface Border

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Specified by:
paintBorder in interface Border

paintGradient

public static void paintGradient(Graphics g,
                                 Rectangle rect,
                                 boolean isVertical,
                                 int darkness,
                                 boolean lighter)

JIDE 3.5.15