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

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

?? jstitlebarline.java

?? Java自定義窗體JsFrame。簡介見:http://jason0086.spaces.live.com/Blog/cns!A797D0C5C0C13C92!518.entry
?? JAVA
字號:
package com.hfkj.jsframe.titlebar;

import java.awt.Color;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.geom.Area;

import javax.swing.JComponent;
import javax.swing.UIManager;
import javax.swing.plaf.metal.MetalLookAndFeel;

/**
 * The <code>JsTitleBarLine<code> draws a line with the gradually changing colors.
 * The color of the title line would change gradually from outside color at the start
 * to inside color at the midpoint, then to outside color at the three-quarter point,
 * and then to inside color at the end.
 *  
 * @version 1.0 01/05/09
 * @author Jason (MSN:www.jason0086.com@hotmail.com)
 */
public class JsTitleBarLine extends JComponent {
	
	private static final long serialVersionUID = -3533220014817407249L;

	/**
	 * The outside color.
	 */
	private Color outsideClr = null;

	/**
	 * The inside color
	 */
	private Color insideClr = null;
	
	/**
	 * Constructs a js title bar line.
	 */
	@SuppressWarnings("static-access")
	public JsTitleBarLine() {
		MetalLookAndFeel lookMlaf = (MetalLookAndFeel) UIManager.getLookAndFeel();
		this.outsideClr = lookMlaf.getFocusColor();
		this.insideClr = lookMlaf.getMenuBackground();
	}
	
	/**
	 * Constructs a js title bar line with the gradually changing colors specified by
	 * outsideColor and insideColor.
	 * The color of the title line would change gradually from outsideColor at the start 
	 *  to insideColor at the midpoint, then to outsideColor at the three-quarter point, 
	 *  and then to insideColor at the end.
	 * @param outsideColor the outside color for this title line
	 * @param insideColor the inside color for this title line
	 */
	public JsTitleBarLine(Color outsideColor, Color insideColor) {
		this.outsideClr = outsideColor;
		this.insideClr = insideColor;
	}
	
	/**
	 * Change the icon and string associated with the look and feel.
	 */
	@SuppressWarnings("static-access")
	public void changeLookAndFeel() {
		MetalLookAndFeel lookMlaf = (MetalLookAndFeel) UIManager.getLookAndFeel();
		this.outsideClr = lookMlaf.getFocusColor();
		this.insideClr = lookMlaf.getMenuBackground();
	}
	
	/**
	 * Sets the outside color for this title line.
	 * @param coolor the new outside color
	 */
	public void setOutsideColor(Color coolor) {
		this.outsideClr = coolor;
	}
	
	/**
	 * Returns the outside color of this title line.
	 * @return the outside color
	 */
	public Color getOutsideColor() {
		return this.outsideClr;
	}
	
	/**
	 * Sets the inside color for this title line.
	 * @param color the new inside color
	 */
	public void setInsideColor(Color color) {
		this.insideClr = color;
	}
	
	/**
	 * Returns the inside color of this title line.
	 * @return the inside color
	 */
	public Color getInsideColor() {
		return this.insideClr;
	}
	
	@Override
	public void paint(Graphics xGrp) {
		Graphics2D xG2d = (Graphics2D) xGrp;
		GradientPaint xGp = null;
		Area xArea = null;
		Rectangle xRct = null;
		int xNorthwestInt = 0;
		int yNorthwestInt = 0;
		int xSoutheastInt = 0;
		int ySoutheastInt = 0;
		int quarterInt = this.getWidth() >> 2;
		int twoQuarterInt = this.getWidth() >> 1;
		// draw the line which starts at 0 and ends at two-quarter width of the JComponent.
		yNorthwestInt = this.getHeight() - this.getHeight();
		xSoutheastInt = xNorthwestInt + twoQuarterInt;
		ySoutheastInt = this.getHeight();
		xRct = new Rectangle(xNorthwestInt, 
								yNorthwestInt, 
								twoQuarterInt, 
								this.getHeight());
		xArea = new Area(xRct);
		xGp = new GradientPaint(xNorthwestInt, 
								yNorthwestInt, 
								this.outsideClr, 
								xSoutheastInt, 
								ySoutheastInt, 
								this.insideClr);
		xG2d.setPaint(xGp);
		xG2d.fill(xArea);
		// draw the line which starts at two-quarter width of the JComponent and ends at three-quarter width of that.
		xNorthwestInt = xSoutheastInt;
		xSoutheastInt = this.getWidth() - quarterInt;
		xRct = new Rectangle(xNorthwestInt, 
								yNorthwestInt, 
								quarterInt, 
								this.getHeight());
		xArea.reset();
		xArea.add(new Area(xRct));
		xGp = new GradientPaint(xNorthwestInt, 
								yNorthwestInt, 
								this.insideClr, 
								xSoutheastInt, 
								ySoutheastInt, 
								this.outsideClr);
		xG2d.setPaint(xGp);
		xG2d.fill(xArea);
		// draw the line which starts at three-quarter width of the JComponent and ends at full width of that.
		xNorthwestInt = xSoutheastInt;
		xSoutheastInt = this.getWidth();
		xRct = new Rectangle(xNorthwestInt, 
								yNorthwestInt, 
								quarterInt, 
								this.getHeight());
		xArea.reset();
		xArea.add(new Area(xRct));
		xGp = new GradientPaint(xNorthwestInt, 
								yNorthwestInt, 
								this.outsideClr, 
								xSoutheastInt, 
								ySoutheastInt, 
								this.insideClr);
		xG2d.setPaint(xGp);
		xG2d.fill(xArea);
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲男人的天堂一区二区| 日本一区二区成人| 日本韩国一区二区三区| 97精品久久久午夜一区二区三区| 国产成人免费视频网站| 国产精品一区二区三区网站| 韩国女主播成人在线观看| 精品一区二区免费视频| 国产精品综合一区二区三区| 国产精品亚洲第一| 成人av高清在线| 91免费在线看| 欧美久久久久久久久| 91精品国产综合久久福利软件| 6080yy午夜一二三区久久| 日韩一区二区免费视频| 久久色.com| 亚洲品质自拍视频| 亚洲福利电影网| 久久精品国产澳门| 成人爽a毛片一区二区免费| 91天堂素人约啪| 欧美二区三区的天堂| 久久夜色精品国产噜噜av | 欧美人xxxx| 欧美成人激情免费网| 国产欧美日韩一区二区三区在线观看| 国产精品全国免费观看高清| 亚洲图片一区二区| 韩国av一区二区三区四区| 成人黄色av网站在线| 欧美精品九九99久久| ww亚洲ww在线观看国产| 日韩久久一区二区| 男女性色大片免费观看一区二区 | 91日韩在线专区| 日韩一区二区电影网| 中文字幕国产一区二区| 亚洲不卡av一区二区三区| 国精产品一区一区三区mba视频| 一本久久a久久精品亚洲| 日韩午夜中文字幕| 亚洲精品福利视频网站| 国产麻豆一精品一av一免费| 精品污污网站免费看| 久久精品视频网| 麻豆专区一区二区三区四区五区| av电影一区二区| 2023国产精品自拍| 天堂一区二区在线| 91网上在线视频| 国产喂奶挤奶一区二区三区| 日本不卡视频一二三区| 日本韩国欧美在线| 中文字幕亚洲区| 狠狠色丁香久久婷婷综合_中| 欧美视频第二页| 一区二区在线观看免费| eeuss鲁一区二区三区| 久久久影院官网| 久久99久久99精品免视看婷婷| 在线观看亚洲精品视频| 国产精品三级电影| 国产成人午夜高潮毛片| 精品国产污污免费网站入口| 日韩激情中文字幕| 欧美日韩一本到| 五月激情六月综合| 欧美色视频在线观看| 一区二区三区丝袜| 99精品国产99久久久久久白柏| 国产日产欧美一区| 国产91清纯白嫩初高中在线观看| 久久久久久97三级| 国产精品1区2区| 国产精品乱人伦| 91免费观看视频| 亚洲综合视频网| 欧美浪妇xxxx高跟鞋交| 日本欧洲一区二区| 日韩精品资源二区在线| 久久99精品久久久久久久久久久久| 日韩一级二级三级| 久久精品99国产精品| 亚洲精品一区在线观看| 国产成人av在线影院| 国产精品欧美久久久久无广告 | 国产ts人妖一区二区| 国产清纯美女被跳蛋高潮一区二区久久w| 老司机精品视频在线| www激情久久| www.成人网.com| 亚洲女人****多毛耸耸8| 欧美在线免费观看视频| 日本va欧美va欧美va精品| 精品美女在线观看| 国产成人无遮挡在线视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 91蜜桃免费观看视频| 亚洲18色成人| 国产三级精品视频| 91久久精品网| 国产一区 二区 三区一级| 亚洲精品五月天| 日韩欧美一二区| a级精品国产片在线观看| 舔着乳尖日韩一区| 亚洲国产高清不卡| 欧美亚洲禁片免费| 狠狠色狠狠色综合| 一区二区三区免费| 久久蜜臀中文字幕| 欧美日本一区二区三区| 国产ts人妖一区二区| 亚洲国产精品久久一线不卡| 久久久久久亚洲综合影院红桃 | 日韩国产精品久久久久久亚洲| 久久先锋影音av| 欧美高清激情brazzers| 成人动漫一区二区| 久久国产人妖系列| 亚洲成年人网站在线观看| 日本一区二区三区国色天香| 欧美日韩激情一区| 色婷婷亚洲综合| 成人网在线播放| 国内精品伊人久久久久影院对白| 夜夜嗨av一区二区三区| 欧美国产日韩一二三区| 日韩一级在线观看| 欧美精品在线视频| 91福利在线导航| 色综合久久久久久久久| 成人福利在线看| 国产精品亚洲午夜一区二区三区 | 久久夜色精品国产噜噜av| 在线播放日韩导航| 99久精品国产| 国产精品热久久久久夜色精品三区| 欧美日韩不卡一区| 色就色 综合激情| www.视频一区| 成人妖精视频yjsp地址| 韩国av一区二区三区| 美女一区二区在线观看| 日韩电影在线一区二区三区| 午夜伊人狠狠久久| 亚洲综合视频网| 亚洲国产人成综合网站| 有坂深雪av一区二区精品| 亚洲少妇30p| 亚洲免费视频中文字幕| 亚洲欧洲制服丝袜| 夜夜操天天操亚洲| 亚洲成人中文在线| 国产精品一级二级三级| 久久国产精品99精品国产| 老司机精品视频一区二区三区| 久久精品国产精品亚洲综合| 黄网站免费久久| 国产成人精品综合在线观看 | 色综合久久中文综合久久97| 色一情一伦一子一伦一区| 91高清视频在线| 欧美精品日韩精品| 日韩午夜av一区| 久久久国产精华| 亚洲欧美日韩小说| 污片在线观看一区二区| 裸体一区二区三区| 成人免费观看男女羞羞视频| 97se狠狠狠综合亚洲狠狠| 欧美图片一区二区三区| 欧美一级淫片007| 欧美国产激情一区二区三区蜜月 | 7777精品伊人久久久大香线蕉的| 日韩欧美视频在线| 中文幕一区二区三区久久蜜桃| 中文字幕亚洲在| 日产国产高清一区二区三区 | 一区二区在线观看视频在线观看| 亚洲高清视频的网址| 免费成人你懂的| 成人av资源网站| 91精品国产麻豆国产自产在线| 久久久久久久免费视频了| 亚洲青青青在线视频| 男人的j进女人的j一区| 不卡av免费在线观看| 欧美一区二区人人喊爽| 中文字幕在线不卡| 麻豆精品精品国产自在97香蕉| 岛国精品一区二区| 7777精品伊人久久久大香线蕉的 | 亚洲电影中文字幕在线观看| 久草中文综合在线| 色视频成人在线观看免| 久久综合色播五月| 亚洲成人三级小说| 91免费视频观看|