info.aduna.swing
Class HeadingBorder

java.lang.Object
  extended by info.aduna.swing.HeadingBorder
All Implemented Interfaces:
Border

public class HeadingBorder
extends Object
implements Border


Field Summary
static Color DEFAULT_BACKGROUND
           
static Color DEFAULT_FOREGROUND
           
static Font FONT
           
static Insets INSETS
           
static int TEXT_Y_OFFSET
           
 
Constructor Summary
HeadingBorder(String heading)
           
 
Method Summary
 Insets getBorderInsets(Component c)
           
 boolean isBorderOpaque()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setBackground(Color background)
           
 void setForeground(Color foreground)
           
 void setHeading(String heading)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FONT

public static final Font FONT

INSETS

public static final Insets INSETS

TEXT_Y_OFFSET

public static final int TEXT_Y_OFFSET

DEFAULT_BACKGROUND

public static final Color DEFAULT_BACKGROUND

DEFAULT_FOREGROUND

public static final Color DEFAULT_FOREGROUND
Constructor Detail

HeadingBorder

public HeadingBorder(String heading)
Method Detail

setHeading

public void setHeading(String heading)

setBackground

public void setBackground(Color background)

setForeground

public void setForeground(Color foreground)

getBorderInsets

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

isBorderOpaque

public boolean isBorderOpaque()
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


Copyright © 1997-2008 Aduna. All Rights Reserved.