Package net.sf.jaxodraw.gui.swing
Class JaxoTitledBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.TitledBorder
net.sf.jaxodraw.gui.swing.JaxoTitledBorder
- All Implemented Interfaces:
Serializable,Border
Subclass of TitledBorder that has more uniform insets.
- Since:
- 2.0
- See Also:
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBorderInsets(Component c, Insets insets) voidpaintBorder(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, setTitlePositionMethods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
-
Constructor Details
-
JaxoTitledBorder
Create with given text.- Parameters:
text- the border text.
-
-
Method Details
-
getBorderInsets
- Specified by:
getBorderInsetsin interfaceBorder- Overrides:
getBorderInsetsin classAbstractBorder
-
getBorderInsets
- Overrides:
getBorderInsetsin classTitledBorder
-
paintBorder
- Specified by:
paintBorderin interfaceBorder- Overrides:
paintBorderin classTitledBorder
-