com.levigo.util.swing
Class SlickBevelBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.BevelBorder
          extended by com.levigo.util.swing.SlickBevelBorder
All Implemented Interfaces:
Serializable, Border

public class SlickBevelBorder
extends BevelBorder

A 1-line bevel border. Less ugly than the standard 2-line one.

See Also:
Serialized Form

Field Summary
static int AUTO_DISABLE
           
static int AUTO_ROLLOVER
           
static int AUTO_SELECT
           
 
Fields inherited from class javax.swing.border.BevelBorder
bevelType, highlightInner, highlightOuter, LOWERED, RAISED, shadowInner, shadowOuter
 
Constructor Summary
SlickBevelBorder(int bevelType)
          Constructor for SlickBevelBorder.
SlickBevelBorder(int bevelType, Color highlight, Color shadow)
          Constructor for SlickBevelBorder.
SlickBevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor)
          Constructor for SlickBevelBorder.
 
Method Summary
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
           
static SlickBevelBorder getLoweredBevelBorder()
           
static SlickBevelBorder getRaisedBevelBorder()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
protected  void paintLoweredBevel(Component c, Graphics g, int x, int y, int width, int height)
           
protected  void paintRaisedBevel(Component c, Graphics g, int x, int y, int width, int height)
           
 
Methods inherited from class javax.swing.border.BevelBorder
getBevelType, getHighlightInnerColor, getHighlightInnerColor, getHighlightOuterColor, getHighlightOuterColor, getShadowInnerColor, getShadowInnerColor, getShadowOuterColor, getShadowOuterColor, isBorderOpaque
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_ROLLOVER

public static int AUTO_ROLLOVER

AUTO_SELECT

public static int AUTO_SELECT

AUTO_DISABLE

public static int AUTO_DISABLE
Constructor Detail

SlickBevelBorder

public SlickBevelBorder(int bevelType)
Constructor for SlickBevelBorder.

Parameters:
bevelType -

SlickBevelBorder

public SlickBevelBorder(int bevelType,
                        Color highlight,
                        Color shadow)
Constructor for SlickBevelBorder.

Parameters:
bevelType -
highlight -
shadow -

SlickBevelBorder

public SlickBevelBorder(int bevelType,
                        Color highlightOuterColor,
                        Color highlightInnerColor,
                        Color shadowOuterColor,
                        Color shadowInnerColor)
Constructor for SlickBevelBorder.

Parameters:
bevelType -
highlightOuterColor -
highlightInnerColor -
shadowOuterColor -
shadowInnerColor -
Method Detail

getLoweredBevelBorder

public static SlickBevelBorder getLoweredBevelBorder()

getRaisedBevelBorder

public static SlickBevelBorder getRaisedBevelBorder()

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Overrides:
getBorderInsets in class BevelBorder

getBorderInsets

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

paintLoweredBevel

protected void paintLoweredBevel(Component c,
                                 Graphics g,
                                 int x,
                                 int y,
                                 int width,
                                 int height)
Overrides:
paintLoweredBevel in class BevelBorder

paintRaisedBevel

protected void paintRaisedBevel(Component c,
                                Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)
Overrides:
paintRaisedBevel in class BevelBorder

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 BevelBorder


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.