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

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

?? paintutilities.java

?? ibm的窗體
?? JAVA
字號:
package com.ibm.iwt.util;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import javax.swing.SwingConstants;

/**
 * A collection of utility methods used for painting more detailed graphics.
 * @author MAbernethy
 */
public class PaintUtilities
{
	
	/**
	 * Paints a rectangular drop shadow with a 5 pixel offset.  The bounds passed
	 * into the function should be the actual area that is to be shadowed.  The
	 * function calculates the shadow's coordinates itself.
	 * @param g the Graphics instance
	 * @param x the x position of the component
	 * @param y the y position of the component
	 * @param width the width of the component
	 * @param height the height of the component
	 */
	public static void paintDropShadow(Graphics g, int x, int y, int width, int height)
	{
		paintDropShadow(g, x, y, width, height, 5);
	}
	
	/**
	 * Paints a rectangular drop shadow with the specified pixel offset.  The bounds passed
	 * into the function should be the actual area that is to be shadowed.  The
	 * function calculates the shadow's coordinates itself.
	 * @param g the Graphics instance
	 * @param x the x position of the component
	 * @param y the y position of the component
	 * @param width the width of the component
	 * @param height the height of the component
	 * @param offset the offset of the shadow in pixels
	 */
	public static void paintDropShadow(Graphics g, int x, int y, int width, int height, int offset)
	{
		Graphics2D g2 = (Graphics2D)g;
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);
		int xOff = x+offset;
		int yOff = y+offset;
		g2.setColor(new Color(45, 45, 45, 80));
		g2.fillRoundRect(xOff, yOff, width, height, offset, offset);
		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_OFF);
	}
	/**
	 * Paints a smooth gradient in a rectangle given the bounds x, y, width, height.  
	 * This defaults to drawing a horizontal gradient.
	 * @param g the Graphics instance
	 * @param x the x position
	 * @param y the y position
	 * @param width the width of the region
	 * @param height the height of the region
	 * @param startColor the start color of the gradient
	 * @param endColor the end color of the gradient
	 */
	public static void paintGradient(Graphics g, int x, int y, int width, int height, Color startColor, Color endColor)
	{
		paintGradient(g, x, y, width, height, startColor, endColor, SwingConstants.HORIZONTAL);
	}	
	
	/**
	 * Paints a smooth gradient in a rectangle given the bounds x, y, width, height and orientation. 
	 * @param g the Graphics instance
	 * @param x the x position
	 * @param y the y position
	 * @param width the width of the region
	 * @param height the height of the region
	 * @param startColor the start color of the gradient
	 * @param endColor the end color of the gradient
	 * @param orientation the orientation of the gradient - either horizontal or vertical
	 */
	public static void paintGradient(Graphics g, int x, int y, int width, int height, Color startColor, Color endColor, int orientation) 
	{
		double radix = height;
		if (orientation == SwingConstants.VERTICAL)
			radix = width;
		double redDelta = (endColor.getRed() - startColor.getRed()) / radix;
		double greenDelta =	(endColor.getGreen() - startColor.getGreen()) / radix;
		double blueDelta = (endColor.getBlue() - startColor.getBlue()) / radix;
		double alphaDelta =	(endColor.getAlpha() - startColor.getAlpha()) / radix;
		Color c = startColor;
		double currentRed = redDelta;
		double currentBlue = blueDelta;
		double currentGreen = greenDelta;
		double currentAlpha = alphaDelta;
		int end = height;
		if (orientation == SwingConstants.VERTICAL)
			end = width;
		for (int i=0; i < end; i++) 
		{
			g.setColor(c);
			if (orientation == SwingConstants.HORIZONTAL)
				g.drawLine(x, y+i, width, y+i);
			else
				g.drawLine(x+i, y, x+i, height);
			int red = (int) (startColor.getRed() + currentRed);
			int green = (int) (startColor.getGreen() + currentGreen);
			int blue = (int) (startColor.getBlue() + currentBlue);
			int alpha = (int) (startColor.getAlpha() + currentAlpha);
			currentRed = currentRed + redDelta;
			currentBlue = currentBlue + blueDelta;
			currentGreen = currentGreen + greenDelta;
			currentAlpha = currentAlpha + alphaDelta;
			c = new Color(red, green, blue, alpha);
		}
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美国产一区二区在线观看| 国产在线国偷精品免费看| 欧美二区在线观看| 蜜臀av一级做a爰片久久| 丝袜美腿一区二区三区| 亚洲精品一二三四区| 一区二区三区四区蜜桃| 国产精品久久毛片a| 国产精品伦理一区二区| 国产亚洲欧洲一区高清在线观看| 欧美日本乱大交xxxxx| 欧美日韩国产色站一区二区三区| 色婷婷精品久久二区二区蜜臀av | 国产丝袜美腿一区二区三区| 精品国一区二区三区| 欧美日韩视频在线一区二区| 欧美肥胖老妇做爰| 在线播放日韩导航| 精品电影一区二区| 精彩视频一区二区三区| 国产精品毛片久久久久久久| 日本一区二区三区四区| 亚洲欧美在线观看| 亚洲欧美综合另类在线卡通| 欧美亚洲动漫精品| 久久丝袜美腿综合| 正在播放一区二区| 精品视频在线免费看| 在线观看91精品国产麻豆| 成人av综合在线| 欧洲日韩一区二区三区| 在线精品视频小说1| 欧美一级艳片视频免费观看| 久久久综合精品| 亚洲国产一区二区在线播放| 国产一区91精品张津瑜| 色综合天天狠狠| 国产精品久久久久久久久免费桃花| 日韩电影在线一区二区| |精品福利一区二区三区| 亚洲色图另类专区| 天天色综合成人网| 国产成人精品三级麻豆| 91麻豆自制传媒国产之光| 在线视频国内自拍亚洲视频| 欧美不卡一区二区三区四区| 亚洲综合一区在线| 99视频有精品| 精品福利二区三区| 日韩精品一区第一页| 色综合天天视频在线观看| 国产欧美精品一区二区色综合| 日韩av电影天堂| 欧美日韩国产乱码电影| aaa亚洲精品| 91亚洲资源网| 亚洲精品视频在线| 中文一区二区在线观看| 蜜桃av噜噜一区| 99精品欧美一区| 国产精品久久看| 国产成人av电影在线| 这里只有精品电影| 日韩精品91亚洲二区在线观看| 欧美精品久久一区| 蜜臀av性久久久久蜜臀aⅴ| 久久久久久99精品| 成人免费视频网站在线观看| 亚洲男女毛片无遮挡| 韩国女主播成人在线观看| 亚洲综合成人在线视频| 欧美日韩亚洲综合在线 | 欧美电影免费观看高清完整版| 亚洲精品乱码久久久久| 成人性生交大合| 日韩一级黄色片| 日韩av网站免费在线| 在线看国产一区二区| 国产肉丝袜一区二区| 成人午夜私人影院| 久久综合久久综合亚洲| 精品亚洲成av人在线观看| 91精品福利在线一区二区三区| 首页国产欧美日韩丝袜| 欧美性受xxxx黑人xyx性爽| 亚洲欧洲日本在线| 欧美在线视频全部完| 亚洲色图19p| 欧美日韩国产美| 五月天激情综合| 欧美xxxxxxxx| 国产黄色精品视频| 精品国产人成亚洲区| 美女免费视频一区二区| 欧美一区二区三区在线视频| 久久99国产精品久久99| 日韩欧美第一区| 成人精品视频网站| 一区精品在线播放| 欧美电影影音先锋| 精品一区二区精品| 欧美精品在线一区二区| 国产一区免费电影| 国产精品免费网站在线观看| 色激情天天射综合网| 亚洲国产毛片aaaaa无费看| 日韩一区二区三区四区| 国产精品资源在线观看| 欧美日韩一级大片网址| 国产成人午夜精品影院观看视频| 国产亚洲精品久| 91蜜桃网址入口| 亚洲成av人影院| 欧美大胆人体bbbb| 波多野结衣欧美| 欧美激情在线看| 欧美婷婷六月丁香综合色| 亚洲美女屁股眼交| 久久超级碰视频| 国产视频在线观看一区二区三区| 日本高清不卡一区| 免费国产亚洲视频| 亚洲伦理在线精品| 精品区一区二区| 99久久久久久| 亚洲成人综合视频| 国产精品无码永久免费888| 欧美一区二区三区的| 亚洲综合精品自拍| 国产精品久久777777| 欧美久久久久久久久| 一区二区国产盗摄色噜噜| 欧美一卡2卡3卡4卡| 国产精品一区三区| 亚洲午夜激情网站| 日韩欧美一区二区视频| 欧美片在线播放| 风间由美中文字幕在线看视频国产欧美| 午夜视频一区二区| 国产精品第五页| 欧美激情在线观看视频免费| 91精品国产欧美一区二区成人 | 激情综合色综合久久综合| 亚洲午夜免费电影| 国产精品久久久久影院亚瑟 | 亚洲一区二区黄色| 久久久久久99久久久精品网站| 日韩欧美第一区| 欧美日韩在线电影| 欧美色偷偷大香| 日本高清不卡一区| 91蜜桃免费观看视频| 成人成人成人在线视频| 美女爽到高潮91| 美女视频黄免费的久久 | 亚洲欧洲精品成人久久奇米网| 欧美成人免费网站| 在线欧美小视频| 欧美三级中文字| 欧美性videosxxxxx| 91麻豆高清视频| 成年人网站91| 成人性生交大片免费看在线播放 | 久久国产精品99精品国产| 亚洲aaa精品| 亚洲成av人片在线| 午夜精彩视频在线观看不卡| 亚洲一区二区三区三| 日本亚洲欧美天堂免费| 五月婷婷综合网| 国产在线播放一区| 国产一区二区影院| 91在线观看视频| 91麻豆文化传媒在线观看| 91.com视频| 精品乱码亚洲一区二区不卡| 国产欧美一区二区精品秋霞影院| 久久精品免费在线观看| 亚洲天堂久久久久久久| 亚洲蜜臀av乱码久久精品 | 一区二区在线观看不卡| 亚洲丝袜另类动漫二区| 国产精品亲子伦对白| 中文字幕不卡在线播放| 亚洲精品国产精品乱码不99| 亚洲一二三四在线| 人禽交欧美网站| 国产999精品久久久久久| 日韩一区二区三区免费观看| 日本久久精品电影| 7777精品伊人久久久大香线蕉| 正在播放一区二区| 国产视频一区不卡| 亚洲欧美激情视频在线观看一区二区三区| 亚洲一区二区三区在线看| 日本大胆欧美人术艺术动态 | 欧美精品粉嫩高潮一区二区| 日韩一级大片在线观看| 亚洲欧美另类图片小说| 日韩av一二三|