Module java.desktop
Package javax.swing.plaf

Class 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
一个带标题的边框UI资源。
  • Constructor Details

    • 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 - 标题的颜色