swingwtx.swing.border
Class TitledBorder

java.lang.Object
  extended byswingwtx.swing.border.AbstractBorder
      extended byswingwtx.swing.border.TitledBorder
All Implemented Interfaces:
Border

public class TitledBorder
extends AbstractBorder
implements Border


Field Summary
static int ABOVE_BOTTOM
           
static int ABOVE_TOP
           
static int BELOW_BOTTOM
           
static int BELOW_TOP
           
protected  Border border
           
static int BOTTOM
           
static int CENTER
           
protected  Color color
           
static int DEFAULT_JUSTIFICATION
           
static int DEFAULT_POSITION
           
protected  Font font
           
static int LEADING
           
static int LEFT
           
static int RIGHT
           
protected  java.lang.String title
           
static int TOP
           
static int TRAILING
           
 
Constructor Summary
TitledBorder(Border border)
           
TitledBorder(Border border, java.lang.String title)
           
TitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition)
           
TitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont)
           
TitledBorder(Border border, java.lang.String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
           
TitledBorder(java.lang.String title)
           
 
Method Summary
 Border getBorder()
          Getter for property border.
 Insets getBorderInsets(Component c)
           
 Insets getBorderInsets(Component c, Insets insets)
           
 Color getColor()
          Getter for property color.
 Font getFont()
          Getter for property font.
 java.lang.String getTitle()
          Getter for property title.
 int getTitleJustification()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setBorder(Border border)
          Setter for property border.
 void setColor(Color color)
          Setter for property color.
 void setFont(Font font)
          Setter for property font.
 void setTitle(java.lang.String title)
          Setter for property title.
 void setTitleJustification(int titleJustification)
           
 
Methods inherited from class swingwtx.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface swingwtx.swing.border.Border
isBorderOpaque
 

Field Detail

DEFAULT_POSITION

public static final int DEFAULT_POSITION
See Also:
Constant Field Values

ABOVE_TOP

public static final int ABOVE_TOP
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

BELOW_TOP

public static final int BELOW_TOP
See Also:
Constant Field Values

ABOVE_BOTTOM

public static final int ABOVE_BOTTOM
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

BELOW_BOTTOM

public static final int BELOW_BOTTOM
See Also:
Constant Field Values

DEFAULT_JUSTIFICATION

public static final int DEFAULT_JUSTIFICATION
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

CENTER

public static final int CENTER
See Also:
Constant Field Values

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

LEADING

public static final int LEADING
See Also:
Constant Field Values

TRAILING

public static final int TRAILING
See Also:
Constant Field Values

title

protected java.lang.String title

font

protected Font font

color

protected Color color

border

protected Border border
Constructor Detail

TitledBorder

public TitledBorder(java.lang.String title)

TitledBorder

public TitledBorder(Border border)

TitledBorder

public TitledBorder(Border border,
                    java.lang.String title)

TitledBorder

public TitledBorder(Border border,
                    java.lang.String title,
                    int titleJustification,
                    int titlePosition)

TitledBorder

public TitledBorder(Border border,
                    java.lang.String title,
                    int titleJustification,
                    int titlePosition,
                    Font titleFont)

TitledBorder

public TitledBorder(Border border,
                    java.lang.String title,
                    int titleJustification,
                    int titlePosition,
                    Font titleFont,
                    Color titleColor)
Method Detail

getTitle

public java.lang.String getTitle()
Getter for property title.

Returns:
Value of property title.

setTitle

public void setTitle(java.lang.String title)
Setter for property title.

Parameters:
title - New value of property title.

getFont

public Font getFont()
Getter for property font.

Returns:
Value of property font.

setFont

public void setFont(Font font)
Setter for property font.

Parameters:
font - New value of property font.

getColor

public Color getColor()
Getter for property color.

Returns:
Value of property color.

setColor

public void setColor(Color color)
Setter for property color.

Parameters:
color - New value of property color.

getBorder

public Border getBorder()
Getter for property border.

Returns:
Value of property border.

setBorder

public void setBorder(Border border)
Setter for property border.

Parameters:
border - New value of property border.

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

getBorderInsets

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

getBorderInsets

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

setTitleJustification

public void setTitleJustification(int titleJustification)

getTitleJustification

public int getTitleJustification()