⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 borderuiresource.java

📁 gcc的JAVA模块的源代码
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
    }            /**     * Constructs a LineBorder given its color and thickness.  The     * border will have plain corners.     *     * @param color the color for drawing the border.     * @param thickness the width of the line in pixels.     */    public LineBorderUIResource(Color color, int thickness)    {      super(color, thickness);    }            /* Note: Since JDK1.3, javax.swing.border.LineBorder also has a     * constructor which accepts a value for the roundedCorners     * property. However, as of JDK1.4.1, the LineBorderUIResource     * subclass does not have a corresponding constructor.     *      * A request for enhancing the Swing API has been filed with Sun:     * http://developer.java.sun.com/developer/bugParade/bugs/4879999.html     */  }  /**   * A {@link javax.swing.border.MatteBorder} that also implements the   * {@link UIResource} marker interface.  This is useful for   * implementing pluggable look-and-feels: When switching the current   * LookAndFeel, only those borders are replaced that are marked as   * {@link UIResource}.  For this reason, a look-and-feel should   * always install borders that implement <code>UIResource</code>,   * such as the borders provided by this class.   *   * <p><img src="../border/doc-files/MatteBorder-1.png" width="500"   * height="150" alt="[An illustration of two MatteBorders] />   *   * @author Brian Jones (cbj@gnu.org)   * @author Sascha Brawer (brawer@dandelis.ch)   */  public static class MatteBorderUIResource    extends MatteBorder    implements UIResource, Serializable  {    /**     * Constructs a MatteBorderUIResource given the width on each side     * and a fill color.     *     * <p><img src="../border/doc-files/MatteBorder-2.png" width="500"     * height="150" alt="[A picture of a MatteBorder made by this     * constructor]" />     *     * @param top the width of the border at its top edge.     * @param left the width of the border at its left edge.     * @param bottom the width of the border at its bottom edge.     * @param right the width of the border at its right edge.     * @param matteColor the color for filling the border.     */    public MatteBorderUIResource(int top, int left,                                 int bottom, int right,                                 Color color)    {      super(top, left, bottom, right, color);    }            /**     * Constructs a MatteBorderUIResource given the width on each side     * and an icon for tiling the border area.     *     * <p><img src="../border/doc-files/MatteBorder-4.png" width="500"     * height="150" alt="[A picture of a MatteBorder made by this     * constructor]" />     *     * @param top the width of the border at its top edge.     * @param left the width of the border at its left edge.     * @param bottom the width of the border at its bottom edge.     * @param right the width of the border at its right edge.     * @param tileIcon an icon for tiling the border area.     */    public MatteBorderUIResource(int top, int left,                                 int bottom, int right,                                 Icon tileIcon)    {      super(top, left, bottom, right, tileIcon);    }            /**     * Constructs a MatteBorderUIResource given an icon for tiling the     * border area. The icon width is used for the border insets at     * the left and right edge, the icon height for the top and bottom     * edge.     *     * <p><img src="../border/doc-files/MatteBorder-6.png" width="500"     * height="150" alt="[A picture of a MatteBorder made by this     * constructor]" />     *     * @param tileIcon an icon for tiling the border area.      */    public MatteBorderUIResource(Icon tileIcon)    {      super(tileIcon);    }  }      /**   * A {@link javax.swing.border.TitledBorder} that also implements the   * {@link UIResource} marker interface.  This is useful for   * implementing pluggable look-and-feels: When switching the current   * LookAndFeel, only those borders are replaced that are marked as   * {@link UIResource}.  For this reason, a look-and-feel should   * always install borders that implement <code>UIResource</code>,   * such as the borders provided by this class.   *   * @author Brian Jones (cbj@gnu.org)   * @author Sascha Brawer (brawer@dandelis.ch)   */  public static class TitledBorderUIResource    extends TitledBorder    implements UIResource, Serializable  {    /**     * Constructs a TitledBorderUIResource given the text of its title.     *     * @param title the title text, or <code>null</code> to use no     *        title text.     */    public TitledBorderUIResource(String title)    {      super(title);    }            /**     * Constructs an initially untitled TitledBorderUIResource     * given another border.     *     * @param border the border underneath the title, or     *        <code>null</code> to use a default from     *        the current look and feel.     */    public TitledBorderUIResource(Border border)    {      super(border);    }            /**     * Constructs a TitledBorder given its border and title text.     *     * @param border the border underneath the title, or     *        <code>null</code> to use a default from     *        the current look and feel.     *     * @param title the title text, or <code>null</code>     *        to use no title text.     */    public TitledBorderUIResource(Border border, String title)    {      super(border, title);    }    /**     * Constructs a TitledBorderUIResource given its border, title     * text, horizontal alignment, and vertical position.     *     * @param border the border underneath the title, or     *        <code>null</code> to use a default     *        from the current look and feel.     *     * @param title the title text, or <code>null</code>     *        to use no title text.     *     * @param titleJustification the horizontal alignment of the title     *        text in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#LEFT},     *        {@link javax.swing.border.TitledBorder#CENTER},     *        {@link javax.swing.border.TitledBorder#RIGHT},     *        {@link javax.swing.border.TitledBorder#LEADING},     *        {@link javax.swing.border.TitledBorder#TRAILING}, or     *        {@link javax.swing.border.TitledBorder#DEFAULT_JUSTIFICATION}.     *     * @param titlePosition the vertical position of the title text     *        in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#ABOVE_TOP},     *        {@link javax.swing.border.TitledBorder#TOP},     *        {@link javax.swing.border.TitledBorder#BELOW_TOP},     *        {@link javax.swing.border.TitledBorder#ABOVE_BOTTOM},     *        {@link javax.swing.border.TitledBorder#BOTTOM},     *        {@link javax.swing.border.TitledBorder#BELOW_BOTTOM},     *        or {@link javax.swing.border.TitledBorder#DEFAULT_POSITION}.     *     * @throws IllegalArgumentException if <code>titleJustification</code>     *         or <code>titlePosition</code> have an unsupported value.     */    public TitledBorderUIResource(Border border, String title,                                  int titleJustification,                                  int titlePosition)    {      super(border, title, titleJustification, titlePosition);    }    /**     * Constructs a TitledBorder given its border, title text,     * horizontal alignment, vertical position, and font.     *     * @param border the border underneath the title, or     *        <code>null</code> to use a default     *        from the current look and feel.     *     * @param title the title text, or <code>null</code>     *        to use no title text.     *     * @param titleJustification the horizontal alignment of the title     *        text in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#LEFT},     *        {@link javax.swing.border.TitledBorder#CENTER},     *        {@link javax.swing.border.TitledBorder#RIGHT},     *        {@link javax.swing.border.TitledBorder#LEADING},     *        {@link javax.swing.border.TitledBorder#TRAILING}, or     *        {@link javax.swing.border.TitledBorder#DEFAULT_JUSTIFICATION}.     *     * @param titlePosition the vertical position of the title text     *        in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#ABOVE_TOP},     *        {@link javax.swing.border.TitledBorder#TOP},     *        {@link javax.swing.border.TitledBorder#BELOW_TOP},     *        {@link javax.swing.border.TitledBorder#ABOVE_BOTTOM},     *        {@link javax.swing.border.TitledBorder#BOTTOM},     *        {@link javax.swing.border.TitledBorder#BELOW_BOTTOM},     *        or {@link javax.swing.border.TitledBorder#DEFAULT_POSITION}.     *     * @param titleFont the font for the title text, or <code>null</code>     *        to use a default from the current look and feel.     *     * @throws IllegalArgumentException if <code>titleJustification</code>     *         or <code>titlePosition</code> have an unsupported value.     */    public TitledBorderUIResource(Border border, String title,                                  int titleJustification,                                  int titlePosition,                                  Font titleFont)    {      super(border, title, titleJustification, titlePosition,            titleFont);    }            /**     * Constructs a TitledBorder given its border, title text,     * horizontal alignment, vertical position, font, and color.     *     * @param border the border underneath the title, or     *        <code>null</code> to use a default     *        from the current look and feel.     *     * @param title the title text, or <code>null</code>     *        to use no title text.     *     * @param titleJustification the horizontal alignment of the title     *        text in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#LEFT},     *        {@link javax.swing.border.TitledBorder#CENTER},     *        {@link javax.swing.border.TitledBorder#RIGHT},     *        {@link javax.swing.border.TitledBorder#LEADING},     *        {@link javax.swing.border.TitledBorder#TRAILING}, or     *        {@link javax.swing.border.TitledBorder#DEFAULT_JUSTIFICATION}.     *     * @param titlePosition the vertical position of the title text     *        in relation to the border. The value must be one of     *        {@link javax.swing.border.TitledBorder#ABOVE_TOP},     *        {@link javax.swing.border.TitledBorder#TOP},     *        {@link javax.swing.border.TitledBorder#BELOW_TOP},     *        {@link javax.swing.border.TitledBorder#ABOVE_BOTTOM},     *        {@link javax.swing.border.TitledBorder#BOTTOM},     *        {@link javax.swing.border.TitledBorder#BELOW_BOTTOM},     *        or {@link javax.swing.border.TitledBorder#DEFAULT_POSITION}.     *     * @param titleFont the font for the title text, or <code>null</code>     *        to use a default from the current look and feel.     *     * @param titleColor the color for the title text, or <code>null</code>     *        to use a default from the current look and feel.     *     * @throws IllegalArgumentException if <code>titleJustification</code>     *         or <code>titlePosition</code> have an unsupported value.     */    public TitledBorderUIResource(Border border, String title,                                  int titleJustification, int titlePosition,                                  Font titleFont, Color titleColor)    {      super(border, title, titleJustification, titlePosition,            titleFont, titleColor);    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -