Класс BorderUIResource.TitledBorderUIResource
- java.lang.Object
-
- javax.swing.border.AbstractBorder
-
- javax.swing.border.TitledBorder
-
- javax.swing.plaf.BorderUIResource.TitledBorderUIResource
- Все реализованные интерфейсы:
-
Serializable,Border,UIResource
- Вложенный класс:
- BorderUIResource
public static class BorderUIResource.TitledBorderUIResource extends TitledBorder implements UIResource
Ресурс пользовательского интерфейса для рамки с заголовком.
- См. также:
- Сериализованная форма
Поля
Поля, объявленные в классе 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 Конструкторы
| Конструктор | Описание |
|---|---|
TitledBorderUIResource(String title) | Создаёт |
TitledBorderUIResource(Border border) | Создаёт |
TitledBorderUIResource(Border border,
String title) | Создаёт |
TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition) | Создаёт |
TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont) | Создаёт |
TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont,
Color titleColor) | Создаёт |
Методы
Методы, объявленные в классе javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, paintBorder, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition Методы, объявленные в классе javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle Методы, объявленные в классе java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait Конструкторы
TitledBorderUIResource
public TitledBorderUIResource(String title)
Создаёт TitledBorderUIResource.
- Параметры:
-
title- заголовок, который должна отображать рамка
TitledBorderUIResource
public TitledBorderUIResource(Border border)
Создаёт TitledBorderUIResource.
- Параметры:
-
border- рамка
TitledBorderUIResource
public TitledBorderUIResource(Border border,
String title) Создаёт TitledBorderUIResource.
- Параметры:
-
border- рамка -
title- заголовок, который должна отображать рамка
TitledBorderUIResource
public TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition) Создаёт TitledBorderUIResource.
- Параметры:
-
border- рамка -
title- заголовок, который должна отображать рамка -
titleJustification- выравнивание заголовка -
titlePosition- позиция заголовка
TitledBorderUIResource
public TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont) Создаёт TitledBorderUIResource.
- Параметры:
-
border- рамка -
title- заголовок, который должна отображать рамка -
titleJustification- выравнивание заголовка -
titlePosition- позиция заголовка -
titleFont- шрифт для отображения заголовка
TitledBorderUIResource
@ConstructorProperties({"border","title","titleJustification","titlePosition","titleFont","titleColor"})
public TitledBorderUIResource(Border border,
String title,
int titleJustification,
int titlePosition,
Font titleFont,
Color titleColor) Создаёт TitledBorderUIResource.
- Параметры:
-
border- рамка -
title- заголовок, который должна отображать рамка -
titleJustification- выравнивание заголовка -
titlePosition- позиция заголовка -
titleFont- шрифт для отображения заголовка -
titleColor- цвет заголовка
© 1993, 2020, 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/11/docs/api/java.desktop/javax/swing/plaf/BorderUIResource.TitledBorderUIResource.html