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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 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一区二区三区免费野_久草精品视频
国产亚洲福利社区一区| 国产99久久久国产精品| 欧洲在线/亚洲| 亚洲福利一区二区三区| 欧美日韩在线亚洲一区蜜芽| 日韩电影免费一区| 久久一区二区三区四区| 不卡欧美aaaaa| 亚洲综合一二区| 欧美xxx久久| 成人a免费在线看| 亚洲午夜久久久久久久久久久 | 亚洲欧洲精品一区二区三区不卡| 国产福利一区二区三区视频 | 久久亚洲影视婷婷| 国产91精品久久久久久久网曝门| 亚洲日本青草视频在线怡红院| 91福利在线看| 日本亚洲三级在线| 中文字幕精品一区二区精品绿巨人| av电影一区二区| 日韩精品成人一区二区三区| 精品国精品国产| www.日本不卡| 天堂久久一区二区三区| 亚洲国产精品精华液2区45| 色哟哟精品一区| 国产一区二区精品在线观看| 亚洲女人小视频在线观看| 日韩一本二本av| 色菇凉天天综合网| 国产一区二区三区久久久| 一区二区三区四区av| 久久综合九色综合久久久精品综合| 色呦呦日韩精品| 国产成人综合亚洲网站| 亚洲v日本v欧美v久久精品| 中文字幕欧美日韩一区| 欧美精品久久一区二区三区| 成人免费黄色大片| 久久福利资源站| 亚洲午夜在线视频| 国产精品美女久久久久久久久| 3d动漫精品啪啪一区二区竹菊 | 激情欧美一区二区| 亚洲国产视频直播| 日韩一区日韩二区| 久久久99精品久久| 欧美一区二区高清| 欧美日韩日日夜夜| 色妹子一区二区| 成人精品鲁一区一区二区| 久久99精品一区二区三区三区| 一区二区国产视频| 国产精品白丝在线| 国产欧美精品一区二区色综合 | 亚洲最大成人网4388xx| 国产女主播视频一区二区| 日韩女优制服丝袜电影| 在线播放欧美女士性生活| 一本色道a无线码一区v| 97精品国产97久久久久久久久久久久| 韩国v欧美v日本v亚洲v| 精品一区二区在线看| 日韩和的一区二区| 午夜久久久久久久久久一区二区| 亚洲精品国产一区二区精华液| 国产精品全国免费观看高清| 国产欧美日韩精品在线| 久久久av毛片精品| 久久久久久久免费视频了| 欧美成人免费网站| 欧美mv和日韩mv的网站| 精品久久久久一区| 久久综合久久综合九色| 精品国产乱码久久久久久浪潮 | 97精品超碰一区二区三区| 成人av一区二区三区| 97久久精品人人做人人爽50路| av在线播放不卡| 91麻豆视频网站| 欧美羞羞免费网站| 欧美伦理电影网| 日韩一级欧美一级| 久久伊人蜜桃av一区二区| 国产女人18毛片水真多成人如厕 | av不卡在线观看| 91在线丨porny丨国产| 色综合久久综合网| 欧美熟乱第一页| 日韩一区二区精品在线观看| 欧美精品一区二区三区蜜臀| 国产拍欧美日韩视频二区| 中文字幕日本不卡| 亚洲国产欧美日韩另类综合 | 亚洲综合免费观看高清完整版 | 国产激情偷乱视频一区二区三区 | 国产91丝袜在线播放九色| 国产精品996| 99久久综合色| 欧美日韩一区三区四区| 91麻豆精品国产91久久久久久久久| 日韩欧美一区电影| 国产精品家庭影院| 亚洲国产精品一区二区www在线| 蜜臀久久99精品久久久画质超高清 | 欧美综合久久久| 日韩欧美亚洲另类制服综合在线| 国产清纯在线一区二区www| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 亚洲一二三区在线观看| 九一九一国产精品| 色噜噜久久综合| 精品国产区一区| 怡红院av一区二区三区| 精品亚洲成a人| 色婷婷综合久久久中文字幕| 日韩欧美在线网站| 日韩一区欧美一区| 韩国在线一区二区| 欧美日韩在线播放三区四区| 久久五月婷婷丁香社区| 香蕉av福利精品导航| 丰满放荡岳乱妇91ww| 欧美一级二级三级乱码| 国产精品成人免费| 久久国产精品色| 欧美日韩中文一区| 国产精品进线69影院| 久久精品国产网站| 欧美亚洲高清一区| 中文幕一区二区三区久久蜜桃| 免费xxxx性欧美18vr| 99精品视频在线观看免费| 亚洲精品一线二线三线| 亚洲电影一区二区三区| 99精品视频一区二区三区| 久久尤物电影视频在线观看| 亚洲成人免费在线| 一本色道久久综合亚洲aⅴ蜜桃 | 国产美女在线观看一区| 3d动漫精品啪啪1区2区免费| 一区二区三区中文在线观看| 国产精品影视网| 精品国产一区二区三区四区四 | 一区在线播放视频| 国产精品99久久久久久久vr| 91超碰这里只有精品国产| 亚洲欧美日韩在线| 成人h动漫精品| 国产精品美女久久久久aⅴ| 精品午夜久久福利影院| 欧美一区二区三区在线观看| 亚洲综合男人的天堂| 91国在线观看| 亚洲精品老司机| 91国偷自产一区二区三区成为亚洲经典 | 国产91精品久久久久久久网曝门| 日韩精品自拍偷拍| 麻豆精品在线播放| 欧美大胆一级视频| 奇米四色…亚洲| 日韩欧美美女一区二区三区| 日日夜夜免费精品| 678五月天丁香亚洲综合网| 午夜精品123| 欧美一区二区三区在线观看视频 | 成人一区二区三区视频在线观看| 精品99一区二区三区| 国产在线国偷精品产拍免费yy| 欧美岛国在线观看| 久久9热精品视频| 欧美精品一区二区不卡| 国产一区二区三区高清播放| 久久久久九九视频| 99久久精品免费| 夜夜爽夜夜爽精品视频| 欧美精三区欧美精三区| 五月婷婷久久丁香| 精品国产电影一区二区| 国产精品羞羞答答xxdd| 中文字幕不卡在线观看| 色狠狠av一区二区三区| 日韩二区三区四区| 精品国产1区二区| 成人黄色电影在线| 亚洲精品高清视频在线观看| 欧美视频在线不卡| 蜜桃一区二区三区四区| 欧美精品一区男女天堂| 成人深夜视频在线观看| 亚洲色图色小说| 欧美精品一二三| 国产精品自拍在线| 亚洲品质自拍视频| 欧美一区二区三区四区视频| 国产美女主播视频一区| 亚洲天天做日日做天天谢日日欢| 欧美顶级少妇做爰| 国产成人免费在线观看不卡|