亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? compoundskin.java

?? Skin Look And Feel 1.2.10, 給你的java程序換膚, 支持大量通用皮膚文件.
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ====================================================================
 *
 * Skin Look And Feel 1.2.10 License.
 *
 * Copyright (c) 2000-2004 L2FProd.com.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in
 *    the documentation and/or other materials provided with the
 *    distribution.
 *
 * 3. The end-user documentation included with the redistribution, if
 *    any, must include the following acknowlegement:
 *       "This product includes software developed by L2FProd.com
 *        (http://www.L2FProd.com/)."
 *    Alternately, this acknowlegement may appear in the software itself,
 *    if and wherever such third-party acknowlegements normally appear.
 *
 * 4. The names "Skin Look And Feel", "SkinLF" and "L2FProd.com" must not
 *    be used to endorse or promote products derived from this software
 *    without prior written permission. For written permission, please
 *    contact info@L2FProd.com.
 *
 * 5. Products derived from this software may not be called "SkinLF"
 *    nor may "SkinLF" appear in their names without prior written
 *    permission of L2FProd.com.
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL L2FPROD.COM OR ITS CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * ====================================================================
 */
package com.l2fprod.gui.plaf.skin;

import java.awt.*;
import java.util.Vector;
import javax.swing.*;
import javax.swing.table.*;

import com.l2fprod.gui.plaf.skin.impl.AbstractSkin;

/**
 * Assembles two skins to create a new one. <br>
 * This can be used to combine features from two skins.
 *
 * @author    $Author: l2fprod $
 * @created   27 avril 2002
 * @version   $Revision: 1.3 $, $Date: 2003/11/23 14:47:45 $
 */
public final class CompoundSkin extends AbstractSkin {

  private Skin skina, skinb;

  /**
   * Construct a new Skin by merging two skins.<BR>
   * If a feature is missing in the first skin, the second skin is used.
   *
   * @param a  Description of Parameter
   * @param b  Description of Parameter
   */
  public CompoundSkin(Skin a, Skin b) {
    skina = a;
    skinb = b;

    if ((a == null) || (b == null)) {
      throw new IllegalArgumentException("Skins must not be null!");
    }

    button = new CompoundButton();
    frame = new CompoundFrame();
    personality = new CompoundPersonality();
    progress = new CompoundProgress();
    scrollbar = new CompoundScrollbar();
    slider = new CompoundSlider();
    tab = new CompoundTab();
    splitpane = new CompoundSplitPane();
    separator = new CompoundSeparator();
  }

  /**
   * Gets the Colors attribute of the CompoundSkin object
   *
   * @return   The Colors value
   */
  public String[] getColors() {
    Vector v = new Vector();
    String[] result = skina.getColors();
    if (result != null) {
      addColors(result, v);
    }
    result = skinb.getColors();
    if (result != null) {
      addColors(result, v);
    }
    result = new String[v.size()];
    v.copyInto(result);
    return result;
  }

  /**
   * Gets the Resource attribute of the CompoundSkin object
   *
   * @param key  Description of Parameter
   * @return     The Resource value
   */
  public Object getResource(Object key) {
    Object value = skina.getResource(key);
    return (value != null ? value : skinb.getResource(key));
  }

  public void initComponentDefaults(UIDefaults table) {
    skina.initComponentDefaults(table);
    skinb.initComponentDefaults(table);
  }

  /**
   * Adds a feature to the Colors attribute of the CompoundSkin object
   *
   * @param colors  The feature to be added to the Colors attribute
   * @param v       The feature to be added to the Colors attribute
   */
  protected void addColors(String[] colors, Vector v) {
    for (int i = 0, c = colors.length; i < c; i = i + 2) {
      if ("".equals(colors[i + 1])) {
        continue;
      }
      v.addElement(colors[i]);
      v.addElement(colors[i + 1]);
    }
  }

  private class CompoundComponent implements SkinComponent {
    public boolean status() {
      return true;
    }
    public boolean installSkin(javax.swing.JComponent c) {
      return false;
    }
    public void uninstallSkin(javax.swing.JComponent c) {
    }
  }

  /**
   * Description of the Class
   *
   * @author    fred
   * @created   27 avril 2002
   */
  private class CompoundButton extends CompoundComponent implements SkinButton {
    /**
     * Gets the CheckBoxIconSize attribute of the CompoundButton object
     *
     * @return   The CheckBoxIconSize value
     */
    public Dimension getCheckBoxIconSize() {
      Dimension dimension = null;
      if (skina.getButton() != null) {
        dimension = skina.getButton().getCheckBoxIconSize();
      }
      if ((dimension == null) && (skinb.getButton() != null)) {
        dimension = skinb.getButton().getCheckBoxIconSize();
      }
      return dimension;
    }

    /**
     * Gets the RadioButtonIconSize attribute of the CompoundButton object
     *
     * @return   The RadioButtonIconSize value
     */
    public Dimension getRadioButtonIconSize() {
      Dimension dimension = null;
      if (skina.getButton() != null) {
        dimension = skina.getButton().getRadioButtonIconSize();
      }
      if ((dimension == null) && (skinb.getButton() != null)) {
        dimension = skinb.getButton().getRadioButtonIconSize();
      }
      return dimension;
    }

    /**
     * Gets the RadioIcon attribute of the CompoundButton object
     *
     * @param b  Description of Parameter
     * @return   The RadioIcon value
     */
    public Icon getRadioIcon(AbstractButton b) {
      Icon icon = null;
      if (skina.getButton() != null) {
        icon = skina.getButton().getRadioIcon(b);
      }
      if ((icon == null) && (skinb.getButton() != null)) {
        icon = skinb.getButton().getRadioIcon(b);
      }
      return icon;
    }

    /**
     * Description of the Method
     *
     * @return   Description of the Returned Value
     */
    public boolean status() {
      boolean result = false;
      if (skina.getButton() != null) {
        result = skina.getButton().status();
      }
      if (!result && (skinb.getButton() != null)) {
        result = skinb.getButton().status();
      }
      return result;
    }

    /**
     * Description of the Method
     *
     * @param c  Description of Parameter
     * @return   Description of the Returned Value
     */
    public boolean installSkin(JComponent c) {
      boolean result = false;
      if (skina.getButton() != null) {
        result = skina.getButton().installSkin(c);
      }
      if (!result && (skinb.getButton() != null)) {
        result = skinb.getButton().installSkin(c);
      }
      return result;
    }

    /**
     * Description of the Method
     *
     * @param g  Description of Parameter
     * @param b  Description of Parameter
     * @return   Description of the Returned Value
     */
    public boolean paintButton(Graphics g, AbstractButton b) {
      boolean result = false;
      if (skina.getButton() != null) {
        result = skina.getButton().paintButton(g, b);
      }
      if (!result && (skinb.getButton() != null)) {
        result = skinb.getButton().paintButton(g, b);
      }
      return result;
    }
  }

  /**
   * Description of the Class
   *
   * @author    fred
   * @created   27 avril 2002
   */
  private class CompoundFrame extends CompoundComponent implements SkinFrame {
    /**
     * Gets the WindowButtons attribute of the CompoundFrame object
     *
     * @param align  Description of Parameter
     * @return       The WindowButtons value
     */
    public SkinWindowButton[] getWindowButtons(int align) {
      SkinWindowButton[] buttons = null;
      if (skina.getFrame() != null) {
        buttons = skina.getFrame().getWindowButtons(align);
      }
      if ((buttons == null) && (skinb.getFrame() != null)) {
        buttons = skinb.getFrame().getWindowButtons(align);
      }
      return buttons;
    }

    /**
     * Gets the TopPreferredSize attribute of the CompoundFrame object
     *
     * @return   The TopPreferredSize value
     */
    public Dimension getTopPreferredSize() {
      Dimension dimension = null;
      if (skina.getFrame() != null) {
        dimension = skina.getFrame().getTopPreferredSize();
      }
      if ((dimension == null) && (skinb.getFrame() != null)) {
        dimension = skinb.getFrame().getTopPreferredSize();
      }
      return dimension;
    }

    /**
     * Description of the Method
     *
     * @return   Description of the Returned Value
     */
    public boolean status() {
      boolean result = false;
      if (skina.getFrame() != null) {
        result = skina.getFrame().status();
      }
      if (!result && (skinb.getFrame() != null)) {
        result = skinb.getFrame().status();
      }
      return result;
    }

    /**
     * Description of the Method
     *
     * @param c  Description of Parameter
     * @return   Description of the Returned Value
     */
    public boolean installSkin(JComponent c) {
      boolean result = false;
      if (skina.getFrame() != null) {
        result = skina.getFrame().installSkin(c);
      }
      if (!result && (skinb.getFrame() != null)) {
        result = skinb.getFrame().installSkin(c);
      }
      return result;
    }

    /**
     * Description of the Method
     *
     * @param g           Description of Parameter
     * @param c           Description of Parameter
     * @param isSelected  Description of Parameter
     * @param title       Description of Parameter
     * @return            Description of the Returned Value
     */
    public boolean paintTop(Graphics g, Component c, boolean isSelected, String title) {
      boolean result = false;
      if (skina.getFrame() != null) {
        result = skina.getFrame().paintTop(g, c, isSelected, title);
      }
      if (!result && (skinb.getFrame() != null)) {
        result = skinb.getFrame().paintTop(g, c, isSelected, title);
      }
      return result;
    }
  }

  /**
   * Description of the Class
   *
   * @author    fred
   * @created   27 avril 2002
   */
  private class CompoundPersonality extends CompoundComponent implements SkinPersonality {

    /**
     * Gets the ComboBoxInsets attribute of the CompoundPersonality object
     *
     * @return   The ComboBoxInsets value
     */
    public java.awt.Insets getComboBoxInsets() {
      Insets insets = null;
      if (skina.getPersonality() != null) {
        insets = skina.getPersonality().getComboBoxInsets();
      }
      if ((insets == null) && (skinb.getPersonality() != null)) {
        insets = skinb.getPersonality().getComboBoxInsets();
      }
      return insets;
    }

    /**
     * Gets the ComboBoxPreferredSize attribute of the CompoundPersonality
     * object
     *
     * @param c  Description of Parameter
     * @return   The ComboBoxPreferredSize value
     */
    public java.awt.Dimension getComboBoxPreferredSize(javax.swing.JComboBox c) {
      Dimension dimension = null;
      if (skina.getPersonality() != null) {
        dimension = skina.getPersonality().getComboBoxPreferredSize(c);
      }
      if ((dimension == null) && (skinb.getPersonality() != null)) {
        dimension = skinb.getPersonality().getComboBoxPreferredSize(c);
      }
      return dimension;
    }

    /**
     * Gets the TableHeaderRenderer attribute of the CompoundPersonality object
     *
     * @return   The TableHeaderRenderer value
     */
    public TableCellRenderer getTableHeaderRenderer() {
      TableCellRenderer renderer = null;
      if (skina.getPersonality() != null) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
男男成人高潮片免费网站| 国产米奇在线777精品观看| 蜜臀久久99精品久久久画质超高清| 国产在线精品免费av| 在线观看不卡视频| 国产欧美一区二区精品久导航 | 一二三四区精品视频| 久久99精品国产麻豆不卡| 一本色道久久加勒比精品| 久久久久久免费| 日韩综合小视频| 日本精品一区二区三区四区的功能| 欧美大片免费久久精品三p| 夜夜嗨av一区二区三区四季av| 国产精品69毛片高清亚洲| 日韩视频一区二区三区在线播放 | 欧美视频精品在线| 国产精品国模大尺度视频| 美洲天堂一区二卡三卡四卡视频| 91高清在线观看| 亚洲欧美激情一区二区| 成人综合日日夜夜| 国产欧美日韩综合精品一区二区| 麻豆精品国产传媒mv男同| 在线综合亚洲欧美在线视频| 亚洲午夜av在线| 欧美亚洲综合在线| 亚洲最新视频在线播放| 在线欧美一区二区| 亚洲一区二区三区小说| 色琪琪一区二区三区亚洲区| 中文字幕在线一区免费| 91在线看国产| 亚洲精品一二三| 欧美日韩一区国产| 日日噜噜夜夜狠狠视频欧美人| 欧美色中文字幕| 亚洲成人手机在线| 91精品国产色综合久久| 免费成人在线影院| 精品久久久久久最新网址| 黄色日韩三级电影| 欧美国产日产图区| 99久久综合色| 亚洲一区二区精品久久av| 欧美三级在线视频| 美国av一区二区| 久久麻豆一区二区| 成人av在线资源网| 亚洲制服丝袜av| 日韩一区二区免费在线观看| 久久精品国产在热久久| 国产亚洲综合av| 91香蕉国产在线观看软件| 亚洲福利一二三区| 精品国产123| jizzjizzjizz欧美| 三级影片在线观看欧美日韩一区二区| 4hu四虎永久在线影院成人| 激情综合色播五月| 1区2区3区国产精品| 777久久久精品| 国产精品69久久久久水密桃| 一区二区在线观看免费 | 色综合久久99| 日韩高清一区二区| 国产精品―色哟哟| 欧美日韩电影一区| 国产成人精品三级| 亚洲成av人片在www色猫咪| www国产精品av| 色婷婷久久久久swag精品| 免费三级欧美电影| 亚洲欧美色一区| 久久网站热最新地址| 91麻豆国产香蕉久久精品| 麻豆91在线观看| 成人福利在线看| 精品少妇一区二区三区视频免付费 | 欧洲av一区二区嗯嗯嗯啊| 蜜臀精品一区二区三区在线观看| 国产精品国产三级国产有无不卡 | 一区二区三区在线观看国产| 91精品国产品国语在线不卡| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 久久91精品久久久久久秒播| 亚洲激情自拍偷拍| 国产欧美一区二区精品秋霞影院| 欧美挠脚心视频网站| 91麻豆精东视频| 国产成人午夜高潮毛片| 蜜桃视频在线观看一区| 亚洲大片在线观看| 亚洲天堂成人在线观看| 久久精品亚洲麻豆av一区二区| 欧美久久久久久久久| 欧美综合在线视频| 色婷婷国产精品| 99久久精品99国产精品| 国产精品影视网| 久久精品99国产精品| 日韩专区中文字幕一区二区| 亚洲在线一区二区三区| 亚洲欧美一区二区三区极速播放| 欧美国产一区在线| 国产清纯白嫩初高生在线观看91| 精品嫩草影院久久| 欧美成人a在线| 欧美www视频| 精品国产一区二区三区久久影院| 这里只有精品视频在线观看| 欧美剧在线免费观看网站| 欧美日韩黄色影视| 欧美挠脚心视频网站| 欧美日韩1234| 欧美肥妇bbw| 日韩欧美亚洲一区二区| 日韩欧美国产一区二区三区| 日韩亚洲欧美中文三级| 欧美tickle裸体挠脚心vk| 欧美精品一区二| 国产午夜精品一区二区三区嫩草| 久久久精品国产免费观看同学| 国产亚洲成年网址在线观看| 国产午夜三级一区二区三| 亚洲国产成人私人影院tom| 国产精品萝li| 亚洲视频中文字幕| 亚洲一区二区av在线| 午夜视频一区二区三区| 蜜桃视频在线观看一区二区| 九色综合狠狠综合久久| 国产精品亚洲成人| 91免费国产在线观看| 欧美日韩精品一区二区| 日韩你懂的电影在线观看| 国产亚洲综合性久久久影院| 亚洲三级视频在线观看| 五月婷婷综合网| 国产一区二区91| 91在线porny国产在线看| 欧美日韩国产影片| 久久久亚洲午夜电影| 国产精品高清亚洲| 爽好久久久欧美精品| 国产综合成人久久大片91| 成人av午夜影院| 91精品国产福利| 欧美国产成人精品| 亚洲国产毛片aaaaa无费看| 久久电影网站中文字幕| 97久久超碰国产精品电影| 欧美一级视频精品观看| 国产精品超碰97尤物18| 偷窥国产亚洲免费视频| 成人午夜私人影院| 555www色欧美视频| 国产精品久久久一本精品| 日韩av二区在线播放| 97久久久精品综合88久久| 精品电影一区二区三区| 一区二区三区av电影 | 五月激情丁香一区二区三区| 粉嫩久久99精品久久久久久夜 | 99re成人在线| 精品成a人在线观看| 亚洲精品久久7777| 国产麻豆精品久久一二三| 欧美日韩免费视频| 亚洲欧美在线aaa| 国产一区二区福利| 欧美一区日韩一区| 洋洋成人永久网站入口| 成人激情午夜影院| 2020国产精品| 看国产成人h片视频| 欧美伊人精品成人久久综合97| 欧美国产精品一区二区| 久久电影国产免费久久电影| 精品视频在线看| 一区二区三区成人| 91在线观看地址| 国产精品美女久久久久久2018| 欧美日韩一卡二卡三卡| 久久99精品久久久久久动态图 | 国内成人免费视频| 91在线视频免费观看| 欧美在线影院一区二区| 国产精品欧美一区喷水| 91色在线porny| 亚洲成精国产精品女| 日韩免费观看2025年上映的电影| 国产乱国产乱300精品| 中文字幕亚洲一区二区va在线| 色狠狠一区二区| 蜜臀久久99精品久久久画质超高清| 久久女同精品一区二区| 91在线精品秘密一区二区| 日日夜夜免费精品视频| 国产日韩欧美精品在线|