Spec-Zone.ru › OpenJDK 8

Класс BasicBorders.FieldBorder

  • java.lang.Object
    • javax.swing.border.AbstractBorder
      • javax.swing.plaf.basic.BasicBorders.FieldBorder
Все реализованные интерфейсы:
Serializable, Border, UIResource
Вложенный класс:
BasicBorders

public static class BasicBorders.FieldBorder
extends AbstractBorder
implements UIResource

Поля

Модификатор и тип Поле и описание
protected Color darkShadow
protected Color highlight
protected Color lightHighlight
protected Color shadow

Конструкторы

Конструктор и описание
FieldBorder(Color shadow, Color darkShadow, Color highlight, Color lightHighlight)

Методы

Модификатор и тип Метод и описание
Insets getBorderInsets(Component c, Insets insets)

Переинициализирует параметр insets текущими Insets этого Border.

void paintBorder(Component c, Graphics g, int x, int y, int width, int height)

Эта реализация по умолчанию не выполняет отрисовку.

Методы, унаследованные от класса javax.swing.border.AbstractBorder

getBaseline, getBaselineResizeBehavior, getBorderInsets, getInteriorRectangle, getInteriorRectangle, isBorderOpaque

Методы, унаследованные от класса java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Поля

shadow

protected Color shadow

darkShadow

protected Color darkShadow

highlight

protected Color highlight

lightHighlight

protected Color lightHighlight

Конструкторы

FieldBorder

public FieldBorder(Color shadow,
                   Color darkShadow,
                   Color highlight,
                   Color lightHighlight)

Методы

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)

Описание скопировано из класса: AbstractBorder

Эта реализация по умолчанию не выполняет отрисовку.

Задано интерфейсом:
paintBorder в интерфейсе Border
Переопределяет:
paintBorder в классе AbstractBorder
Параметры:
c - компонент, для которого отрисовывается граница
g - объект графики для отрисовки
x - положение x границы для отрисовки
y - положение y границы для отрисовки
width - ширина отрисовываемой границы
height - высота отрисовываемой границы

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)

Описание скопировано из класса: AbstractBorder

Переинициализирует параметр insets текущими Insets этого Border.

Переопределяет:
getBorderInsets в классе AbstractBorder
Параметры:
c - компонент, для которого применяется значение insets границы
insets - объект, который нужно переинициализировать
Возвращает:
объект insets

© 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.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API