net.shredzone.ifish.gui
Class MyTitledBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.TitledBorder
          extended by net.shredzone.ifish.gui.MyTitledBorder
All Implemented Interfaces:
Serializable, Border

public class MyTitledBorder
extends TitledBorder

Purpose of this class is to have all TitledBorder tied together in one single class so it can easily be configured.

Version:
$Id: MyTitledBorder.java 291 2009-04-28 21:29:27Z shred $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
 
Constructor Summary
MyTitledBorder(String title)
          My own TitledBorder.
 
Method Summary
protected  Font getFont(Component c)
          Override getFont() to correct the font size.
 
Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getBorderInsets, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
 
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
 

Constructor Detail

MyTitledBorder

public MyTitledBorder(String title)
My own TitledBorder.

Parameters:
title - Titel
Method Detail

getFont

protected Font getFont(Component c)
Override getFont() to correct the font size.

Overrides:
getFont in class TitledBorder
Parameters:
c - Component to be painted
Returns:
Font for this component


Copyright © 2007-2011 shredzone.org. All Rights Reserved.