Serializable
, Border
, UIResource
BorderUIResource
public static class BorderUIResource.TitledBorderUIResource extends TitledBorder implements UIResource
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 | Description |
---|---|
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
TitledBorderUIResource |
Constructs a TitledBorderUIResource . |
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
getBorderInsets, getInteriorRectangle, getInteriorRectangle
public TitledBorderUIResource(String title)
TitledBorderUIResource
.title
- the title the border should displaypublic TitledBorderUIResource(Border border)
TitledBorderUIResource
.border
- the borderpublic TitledBorderUIResource(Border border, String title)
TitledBorderUIResource
.border
- the bordertitle
- the title the border should displaypublic TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition)
TitledBorderUIResource
.border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titlepublic TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont)
TitledBorderUIResource
.border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titletitleFont
- the font for rendering the title@ConstructorProperties({"border","title","titleJustification","titlePosition","titleFont","titleColor"}) public TitledBorderUIResource(Border border, String title, int titleJustification, int titlePosition, Font titleFont, Color titleColor)
TitledBorderUIResource
.border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titletitleFont
- the font for rendering the titletitleColor
- the color of the title
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/plaf/BorderUIResource.TitledBorderUIResource.html