de.uni_paderborn.fujaba.fsa.swing.border
Class TextBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byde.uni_paderborn.fujaba.fsa.swing.border.AbstractColorBorder
          extended byde.uni_paderborn.fujaba.fsa.swing.border.TextBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable
Direct Known Subclasses:
ColoredTextBorder

public class TextBorder
extends AbstractColorBorder

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.12 $
Author:
$Author: schneider $
See Also:
Serialized Form

Field Summary
private  java.awt.Font font
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String text
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.fsa.swing.border.AbstractColorBorder
 
Constructor Summary
TextBorder(java.awt.Color aColor)
          Constructor for class TextBorder
TextBorder(java.awt.Color aColor, java.lang.String txt)
          Constructor for class TextBorder
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Get the borderInsets attribute of the TextBorder object
 java.awt.Insets getBorderInsets(java.awt.Component c, java.awt.Insets insets)
          Get the borderInsets attribute of the TextBorder object
 java.awt.Font getFont()
          Get the font attribute of the TextBorder object
 java.lang.String getText()
          Get the text attribute of the TextBorder object
 boolean isBorderOpaque()
          Get the borderOpaque attribute of the TextBorder object
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          This method draws the Border for Set objects.
 void setFont(java.awt.Font f)
          Sets the font attribute of the TextBorder object
 void setText(java.lang.String txt)
          Sets the text attribute of the TextBorder object
 
Methods inherited from class de.uni_paderborn.fujaba.fsa.swing.border.AbstractColorBorder
getBorderColor, setBorderColor
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

text

private java.lang.String text
No comment provided by developer, please add a comment to improve documentation.


font

private java.awt.Font font
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

TextBorder

public TextBorder(java.awt.Color aColor)
Constructor for class TextBorder

Parameters:
aColor - No description provided

TextBorder

public TextBorder(java.awt.Color aColor,
                  java.lang.String txt)
Constructor for class TextBorder

Parameters:
aColor - No description provided
txt - No description provided
Method Detail

setText

public void setText(java.lang.String txt)
Sets the text attribute of the TextBorder object

Parameters:
txt - The new text value

getText

public java.lang.String getText()
Get the text attribute of the TextBorder object

Returns:
The text value

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Get the borderInsets attribute of the TextBorder object

Parameters:
c - No description provided
Returns:
The borderInsets value

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c,
                                       java.awt.Insets insets)
Get the borderInsets attribute of the TextBorder object

Parameters:
c - No description provided
insets - No description provided
Returns:
The borderInsets value

isBorderOpaque

public boolean isBorderOpaque()
Get the borderOpaque attribute of the TextBorder object

Returns:
The borderOpaque value

getFont

public java.awt.Font getFont()
Get the font attribute of the TextBorder object

Returns:
The font value

setFont

public void setFont(java.awt.Font f)
Sets the font attribute of the TextBorder object

Parameters:
f - The new font value

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
This method draws the Border for Set objects.

Parameters:
c - No description provided
g - No description provided
x - No description provided
y - No description provided
width - No description provided
height - No description provided