cz.vity.freerapid.swing.components
Class CompTitledBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.TitledBorder
          extended by cz.vity.freerapid.swing.components.CompTitledBorder
All Implemented Interfaces:
Serializable, Border

public class CompTitledBorder
extends TitledBorder

See Also:
Serialized Form

Field Summary
protected  Component component
           
 
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
CompTitledBorder(Border border)
           
CompTitledBorder(Border border, Component component, int titleJustification, int titlePosition)
           
CompTitledBorder(Component component)
           
CompTitledBorder(Component component, Border border)
           
 
Method Summary
 Insets getBorderInsets(Component c, Insets insets)
           
 Rectangle getComponentRect(Rectangle rect, Insets borderInsets)
           
 Component getTitleComponent()
           
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
           
 void setTitleComponent(JComponent component)
           
 
Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, 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
 

Field Detail

component

protected Component component
Constructor Detail

CompTitledBorder

public CompTitledBorder(Component component)

CompTitledBorder

public CompTitledBorder(Border border)

CompTitledBorder

public CompTitledBorder(Component component,
                        Border border)

CompTitledBorder

public CompTitledBorder(Border border,
                        Component component,
                        int titleJustification,
                        int titlePosition)
Method Detail

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

getBorderInsets

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

getTitleComponent

public Component getTitleComponent()

setTitleComponent

public void setTitleComponent(JComponent component)

getComponentRect

public Rectangle getComponentRect(Rectangle rect,
                                  Insets borderInsets)