net.sf.jaxodraw.gui.swing
Class JaxoTitledBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.TitledBorder
          extended by net.sf.jaxodraw.gui.swing.JaxoTitledBorder
All Implemented Interfaces:
Serializable, Border

public class JaxoTitledBorder
extends TitledBorder

Subclass of TitledBorder that has more uniform insets.

Since:
2.0
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
JaxoTitledBorder(String text)
          Create with given text.
 
Method Summary
 Insets getBorderInsets(Component c)
          
 Insets getBorderInsets(Component c, Insets insets)
          
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          
 
Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, 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

JaxoTitledBorder

public JaxoTitledBorder(String text)
Create with given text.

Parameters:
text - the border text.
Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)

Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class TitledBorder

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)

Overrides:
getBorderInsets in class TitledBorder

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 TitledBorder


Copyright © 2003-2011 The JaxoDraw team. All Rights Reserved.