com.jgoodies.uifextras.util
Class ThinBevelBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by com.jgoodies.uifextras.util.ThinBevelBorder
All Implemented Interfaces:
Serializable, Border

public final class ThinBevelBorder
extends AbstractBorder

This is just a 1-point line border that uses a pseudo-3D effect, either raised or lowered.

Version:
$Revision: 1.2 $
Author:
Karsten Lentzsch
See Also:
Serialized Form

Field Summary
static int LOWERED
           
static int RAISED
           
 
Constructor Summary
ThinBevelBorder(int mode)
          Constructs a thin bevel border, either raised or lowered.
 
Method Summary
 Insets getBorderInsets(Component c)
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RAISED

public static final int RAISED
See Also:
Constant Field Values

LOWERED

public static final int LOWERED
See Also:
Constant Field Values
Constructor Detail

ThinBevelBorder

public ThinBevelBorder(int mode)
Constructs a thin bevel border, either raised or lowered.

Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class AbstractBorder

paintBorder

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


Copyright © 2000-2008 JGoodies Karsten Lentzsch. All Rights Reserved.