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

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

?? defaultbutton.java

?? Skin Look And Feel 1.2.10, 給你的java程序換膚, 支持大量通用皮膚文件.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* ====================================================================
 *
 * 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 javax.swing.*;
import javax.swing.border.*;
import javax.swing.plaf.*;
import com.l2fprod.util.ImageUtils;

/**
 * Stretch/Tile Button. <br>
 *
 *
 * @author    $Author: l2fprod $
 * @created   27 avril 2002
 * @version   $Revision: 1.3 $, $Date: 2003/11/23 14:47:45 $
 */
public class DefaultButton implements Icon, Border, UIResource, java.io.Serializable {
	/**
	 * Description of the Method
	 *
	 * @param g       Description of Parameter
	 * @param x       Description of Parameter
	 * @param y       Description of Parameter
	 * @param width   Description of Parameter
	 * @param height  Description of Parameter
	 * @param b       Description of Parameter
	 */
	public void paint(Graphics g, int x, int y, int width, int height, Component b) {
		if (SkinUtils.DEBUG) {
			System.out.println("Painting (" + x + "," + y + "," + width + "x" + height + ") for " + b);
		}
		ImageUtils.paint(b, g, center, x + leftWidth, y + topHeight, width - leftWidth - rightWidth, height - topHeight - bottomHeight, false, center_fill);

		paintBorder(b, g, x, y, width, height);

		if (SkinUtils.DEBUG) {
			g.setColor(Color.black);
			g.drawRect(x + leftWidth, y + topHeight, width - leftWidth - rightWidth, height - topHeight - bottomHeight);

			g.drawLine(x + leftWidth, y, x + leftWidth, y + height);
			g.drawLine(x + width - rightWidth, y, x + width - rightWidth, y + height);
			g.drawLine(x, y + topHeight, x + width, y + topHeight);
			g.drawLine(x, y + height - bottomHeight, x + width, y + height - bottomHeight);
		}
	}

	/**
	 * Description of the Field
	 */
	public transient Image topleft;
	/**
	 * Description of the Field
	 */
	public transient Image topright;
	/**
	 * Description of the Field
	 */
	public transient Image bottomleft;
	/**
	 * Description of the Field
	 */
	public transient Image bottomright;
	/**
	 * Description of the Field
	 */
	public transient Image top, right, bottom, left, center;

	protected int topHeight, bottomHeight, leftWidth, rightWidth;
	protected int imageWidth, imageHeight;

	protected int top_fill = ImageUtils.PAINT_STRETCH;
	protected int right_fill = ImageUtils.PAINT_STRETCH;
	protected int bottom_fill = ImageUtils.PAINT_STRETCH;
	protected int left_fill = ImageUtils.PAINT_STRETCH;
	protected int center_fill = ImageUtils.PAINT_STRETCH;

	protected boolean tile;

	protected Insets insets;

	/**
	 * Constructor for the DefaultButton object
	 */
	public DefaultButton() {
	}

	/**
	 * Constructor for the DefaultButton object
	 *
	 * @param bitmap        Description of Parameter
	 * @param imageWidth    Description of Parameter
	 * @param imageHeight   Description of Parameter
	 * @param topHeight     Description of Parameter
	 * @param rightWidth    Description of Parameter
	 * @param bottomHeight  Description of Parameter
	 * @param leftWidth     Description of Parameter
	 */
	public DefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth) {
		this(bitmap, imageWidth, imageHeight, topHeight, rightWidth, bottomHeight, leftWidth, false);
	}

	/**
	 * Constructor for the DefaultButton object
	 *
	 * @param top          Description of Parameter
	 * @param bottom       Description of Parameter
	 * @param left         Description of Parameter
	 * @param right        Description of Parameter
	 * @param topLeft      Description of Parameter
	 * @param topRight     Description of Parameter
	 * @param bottomLeft   Description of Parameter
	 * @param bottomRight  Description of Parameter
	 */
	public DefaultButton(Image top, Image bottom, Image left, Image right, Image topLeft, Image topRight, Image bottomLeft, Image bottomRight) {
		this.top = top;
		this.bottom = bottom;
		this.left = left;
		this.right = right;
		this.topleft = topLeft;
		this.bottomleft = bottomLeft;
		this.topright = topRight;
		this.bottomright = bottomRight;

		this.topHeight = top != null ? top.getHeight(null) : (topleft != null ? topleft.getHeight(null) : 0);
		this.rightWidth = right != null ? right.getWidth(null) : 0;
		this.bottomHeight = bottom != null ? bottom.getHeight(null) : 0;
		this.leftWidth = left != null ? left.getWidth(null) : 0;

		insets = new Insets(top != null ? topHeight : 0, leftWidth, bottomHeight, rightWidth);
	}

	/**
	 * Constructor for the DefaultButton object
	 *
	 * @param bitmap        Description of Parameter
	 * @param imageWidth    Description of Parameter
	 * @param imageHeight   Description of Parameter
	 * @param topHeight     Description of Parameter
	 * @param rightWidth    Description of Parameter
	 * @param bottomHeight  Description of Parameter
	 * @param leftWidth     Description of Parameter
	 * @param tile          Description of Parameter
	 */
	public DefaultButton(Image bitmap, int imageWidth, int imageHeight, int topHeight, int rightWidth, int bottomHeight, int leftWidth, boolean tile) {
		this.topHeight = topHeight;
		this.rightWidth = rightWidth;
		this.bottomHeight = bottomHeight;
		this.leftWidth = leftWidth;
		this.imageWidth = imageWidth;
		this.imageHeight = imageHeight;
		this.tile = tile;

		insets = new Insets(topHeight, leftWidth, bottomHeight, rightWidth);

		// corners
		topleft = ImageUtils.grab(bitmap, 0, 0, leftWidth, topHeight);

		topright = ImageUtils.grab(bitmap, imageWidth - rightWidth, 0, rightWidth, topHeight);
		bottomleft = ImageUtils.grab(bitmap, 0, imageHeight - bottomHeight, leftWidth, bottomHeight);
		bottomright = ImageUtils.grab(bitmap, imageWidth - rightWidth, imageHeight - bottomHeight, rightWidth, bottomHeight);
		// borders
		top = ImageUtils.grab(bitmap, leftWidth, 0, imageWidth - leftWidth - rightWidth, topHeight);
		if (rightWidth > 0) {
			right = ImageUtils.grab(bitmap, imageWidth - rightWidth, topHeight, rightWidth, imageHeight - topHeight - bottomHeight);
		}
		if (bottomHeight > 0) {
			bottom = ImageUtils.grab(bitmap, leftWidth, imageHeight - bottomHeight, imageWidth - leftWidth - rightWidth, bottomHeight);
		}
		if (leftWidth > 0) {
			left = ImageUtils.grab(bitmap, 0, topHeight, leftWidth, imageHeight - topHeight - bottomHeight);
		}
		// center
		center = ImageUtils.grab(bitmap, leftWidth, topHeight, imageWidth - leftWidth - rightWidth, imageHeight - topHeight - bottomHeight);
	}

	/**
	 * Sets the CenterFill attribute of the DefaultButton object
	 *
	 * @param mode  The new CenterFill value
	 */
	public void setCenterFill(int mode) {
		center_fill = mode;
	}

	/**
	 * Gets the Disabled attribute of the DefaultButton object
	 *
	 * @return   The Disabled value
	 */
	public DefaultButton getDisabled() {
		DefaultButton b = new DefaultButton();
		b.topleft = ImageUtils.getDisabledImage(topleft);
		b.topright = ImageUtils.getDisabledImage(topright);
		b.bottomleft = ImageUtils.getDisabledImage(bottomleft);
		b.bottomright = ImageUtils.getDisabledImage(bottomright);
		b.top = ImageUtils.getDisabledImage(top);
		b.right = ImageUtils.getDisabledImage(right);
		b.bottom = ImageUtils.getDisabledImage(bottom);
		b.left = ImageUtils.getDisabledImage(left);
		b.center = ImageUtils.getDisabledImage(center);
		b.topHeight = topHeight;
		b.bottomHeight = bottomHeight;
		b.leftWidth = leftWidth;
		b.rightWidth = rightWidth;
		b.imageWidth = imageWidth;
		b.imageHeight = imageHeight;
		b.top_fill = top_fill;
		b.right_fill = right_fill;
		b.bottom_fill = bottom_fill;
		b.left_fill = left_fill;
		b.center_fill = center_fill;
		b.tile = tile;
		b.insets = insets;
		return b;
	}

	/**
	 * Gets the TopToBottom attribute of the DefaultButton object
	 *
	 * @return   The TopToBottom value
	 */
	public DefaultButton getTopToBottom() {
		DefaultButton b = new DefaultButton();
		b.top = ImageUtils.flipHorizontally(bottom);
		b.topHeight = bottomHeight;
		b.top_fill = bottom_fill;

		b.topleft = ImageUtils.flipHorizontally(bottomleft);

		b.bottomleft = ImageUtils.flipHorizontally(topleft);

		b.topright = ImageUtils.flipHorizontally(bottomright);

		b.bottomright = ImageUtils.flipHorizontally(topright);

		b.bottom = ImageUtils.flipHorizontally(top);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品蜜臀av| 久久久久88色偷偷免费| 欧美精品乱人伦久久久久久| 欧美va在线播放| ...xxx性欧美| 美女视频一区二区三区| 97se亚洲国产综合自在线不卡| 欧美图区在线视频| 久久久久久久久久看片| 国产精品一线二线三线精华| 91精品久久久久久久99蜜桃 | 国模一区二区三区白浆| 欧美在线一区二区| 欧美国产丝袜视频| 久久国产麻豆精品| 欧美日本高清视频在线观看| 国产精品久久久久毛片软件| 国产精品1区2区| 国产精品久线在线观看| 在线观看免费亚洲| 九九视频精品免费| 91精品国产入口在线| 夜夜爽夜夜爽精品视频| 波多野结衣91| 国产婷婷精品av在线| 久久99精品久久只有精品| 中文字幕欧美日韩一区| 欧美日韩亚洲综合一区| 亚洲图片一区二区| 色天使色偷偷av一区二区| 中文字幕久久午夜不卡| 欧美午夜精品理论片a级按摩| 午夜精品aaa| 欧美亚洲国产怡红院影院| 麻豆成人av在线| 亚洲精品美腿丝袜| 欧美三级一区二区| 国产91精品入口| 国产精品夫妻自拍| 日韩女优av电影| 国产盗摄一区二区| ㊣最新国产の精品bt伙计久久| 欧美性大战久久久久久久| 国产成人8x视频一区二区| 亚洲第一av色| 欧美成人艳星乳罩| 在线观看欧美日本| 成人av在线一区二区| 伊人婷婷欧美激情| 中文字幕av一区 二区| 69久久夜色精品国产69蝌蚪网| 99视频一区二区三区| 精品中文av资源站在线观看| 亚洲午夜免费电影| 亚洲伦理在线精品| 欧美经典一区二区| 久久影院视频免费| 91麻豆视频网站| 天堂久久久久va久久久久| 日韩一区二区三区在线视频| 韩国v欧美v亚洲v日本v| 日韩av在线播放中文字幕| 久久久久久久久久美女| 欧美www视频| 日韩三级视频在线观看| 欧美一区二区啪啪| 欧美理论电影在线| 欧美日韩国产一级| 欧美日韩精品专区| 欧美蜜桃一区二区三区| 欧美日韩免费高清一区色橹橹| 91蝌蚪porny| 91在线观看污| 91搞黄在线观看| 国产另类ts人妖一区二区| 久久精品久久久精品美女| 日本欧美在线观看| 久久不见久久见中文字幕免费| 日韩av成人高清| 蜜臀91精品一区二区三区| 日本强好片久久久久久aaa| 蜜桃视频免费观看一区| 久久成人免费网| 国产一区二区三区黄视频| 亚洲福利电影网| 天天做天天摸天天爽国产一区| 五月天亚洲精品| 免费观看成人鲁鲁鲁鲁鲁视频| 日韩福利视频网| 麻豆视频观看网址久久| 久久国产精品第一页| 国产大陆精品国产| 91网址在线看| 欧美日韩国产综合一区二区三区 | 91免费观看国产| 欧美私人免费视频| 欧美精品精品一区| 欧美成人在线直播| 国产欧美日韩不卡免费| 91精品国产综合久久香蕉的特点 | 亚洲欧美色一区| 国产亚洲一区二区三区在线观看| 中文一区在线播放| 亚洲.国产.中文慕字在线| 麻豆精品久久精品色综合| 成人高清免费观看| 欧美日韩在线播| 久久久亚洲欧洲日产国码αv| 亚洲国产精品黑人久久久| 亚洲一卡二卡三卡四卡五卡| 中文字幕一区在线| 亚洲成人福利片| 国内外成人在线| 色欧美日韩亚洲| 欧美va亚洲va| 亚洲精品视频在线观看网站| 久久av老司机精品网站导航| 成人黄色a**站在线观看| 欧美精品日韩一本| 中文字幕欧美国产| 日韩电影免费在线| a级高清视频欧美日韩| 91精品国产色综合久久不卡电影| 久久精品人人做人人爽97| 亚洲综合网站在线观看| 国产精品资源网站| 欧美日韩一区二区电影| 国产欧美精品一区二区色综合朱莉| 亚洲午夜久久久久久久久电影院 | 91麻豆精品国产91久久久久 | 日韩免费视频线观看| 亚洲婷婷在线视频| 亚洲精品ww久久久久久p站| 久久不见久久见中文字幕免费| 91在线观看成人| 久久九九久久九九| 丝袜美腿高跟呻吟高潮一区| 不卡免费追剧大全电视剧网站| 日韩一级黄色片| 亚洲一二三四在线观看| 高清国产午夜精品久久久久久| 欧美一三区三区四区免费在线看| 一区二区中文视频| 成人一区二区三区中文字幕| av亚洲精华国产精华精华| 日韩免费一区二区三区在线播放| 亚洲综合在线五月| 成人免费视频国产在线观看| 在线综合+亚洲+欧美中文字幕| 亚洲图片你懂的| eeuss鲁片一区二区三区| 久久久久久久精| 激情六月婷婷综合| 91精品国产综合久久久久久久| 亚洲综合在线电影| 色一情一乱一乱一91av| 国产精品美女www爽爽爽| 国产精品亚洲专一区二区三区| 日韩一区二区视频| 蜜桃视频一区二区三区在线观看| 欧美日韩视频第一区| 亚洲福中文字幕伊人影院| 在线观看一区二区视频| 亚洲精品v日韩精品| 色综合久久中文综合久久牛| 中文字幕中文字幕一区二区| 国产成人午夜99999| 久久久久久久综合日本| 国产精品一二三区| 欧美国产禁国产网站cc| 成+人+亚洲+综合天堂| 亚洲色图一区二区| 色偷偷88欧美精品久久久| 亚洲精品水蜜桃| 欧美男生操女生| 老司机午夜精品| 国产亚洲综合色| 本田岬高潮一区二区三区| 最新热久久免费视频| 色成年激情久久综合| 性欧美疯狂xxxxbbbb| 91精品国产一区二区三区蜜臀| 美女在线观看视频一区二区| 精品国产1区二区| 日韩成人av影视| 久久夜色精品国产欧美乱极品| 精品一区二区三区在线播放视频| 国产亚洲精品福利| av在线不卡电影| 亚洲成人免费视频| 日韩欧美卡一卡二| 成人一区二区三区| 亚洲国产成人91porn| 日韩美一区二区三区| 成人动漫在线一区| 亚洲午夜免费电影| 久久综合久久鬼色中文字| 91麻豆精品视频| 日韩高清不卡在线| 国产精品国产三级国产aⅴ原创|