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

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

?? jsframeborderblock.java

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

import java.awt.Cursor;
import java.awt.Frame;
import java.awt.MouseInfo;
import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import com.hfkj.jsframe.component.JsComponent;

/**
 * The <code>JsFrameBorderBlock</code> class is for one of the eight border blocks
 * indicated by the following constraints in the <code>JsFrame</code>:
 * <p>
 * <ul>
 * <li><code>NORTHWEST</code>:
 * The northwest portion of the layout of the <code>JsFrame</code>.
 * <li><code>NORTH</code>:
 * the north portion of the layout of the <code>JsFrame</code>.
 * <li><code>NORTHEAST</code>:
 * The northeast portion of the layout of the <code>JsFrame</code>.
 * <li><code>WEST</code>:
 * The west portion of the layout of the <code>JsFrame</code>.
 * <li><code>EAST</code>:
 * The east portion of the layout of the <code>JsFrame</code>.
 * <li><code>SOUTHWEST</code>:
 * The southwest portion of the layout of the <code>JsFrame</code>.
 * <li><code>SOUTH</code>:
 * The south portion of the layout of the <code>JsFrame</code>.
 * <li><code>SOUTHEAST</code>:
 * The southeast portion of the layout of the <code>JsFrame</code>.
 * </ul>
 * 
 * @see JsFrameBorderBlockUI
 * @see com.hfkj.jsframe.frame.JsFrame
 * @see JsFrameBorder
 * 
 * @version 1.0 01/05/09
 * @author Jason (MSN:www.jason0086.com@hotmail.com)
 */
public class JsFrameBorderBlock extends JsComponent implements MouseListener, MouseMotionListener {
	
	/**
	 * The northwest constraint.
	 */
	public static final int NORTHWEST = 1;
	
	/**
	 * The north constraint. 
	 */
	public static final int NORTH = 2;
	
	/**
	 * The northeast constraint.
	 */
	public static final int NORTHEAST = 3;
	
	/**
	 * The west constraint.
	 */
	public static final int WEST = 4;
	
	/**
	 * The east constraint.
	 */
	public static final int EAST = 5;
	
	/**
	 * The southwest constraint.
	 */
	public static final int SOUTHWEST = 6;
	
	/**
	 * The south constraint.
	 */
	public static final int SOUTH = 7;
	
	/**
	 * The southeast constraint.
	 */
	public static final int SOUTHEAST = 8;
	
	/**
	 * The root frame.
	 */
	protected Frame rootFrm = null;
	
	/**
	 * The location, which should be one of the following:
	 * <code>NORTHWEST</code>, <code>NORTH</code>, <code>NORTHEAST</code>,
	 * The northeast portion of the layout of the <code>JsFrame</code>.
	 * <code>WEST</code>, <code>EAST</code>, <code>SOUTHWEST</code>,
	 * <code>SOUTH</code>, <code>SOUTHEAST</code>.
	 */
	protected int locationInt = 0;
	
	/**
	 * The mouse point.
	 */
	protected Point mousePnt = null;
	
	private static final long serialVersionUID = -1386168047687544997L;
	
	/**
	 * Constructs a js frame border block with the given location for the given frame.
	 * @param location the location indicator for this <code>JsFrameBorderBlock</code>
	 * @param rootFrame the frame which is the host of this <code>JsFrameBorderBlock</code>
	 */
	public JsFrameBorderBlock(int location, Frame rootFrame) {
		this.locationInt = location;
		this.rootFrm = rootFrame;
	}
	
	@Override
	public void setEnabled(boolean enabled) {
		if (enabled) {
			this.addMouseListener(this);
			this.addMouseMotionListener(this);
		}
		else {
			this.removeMouseListener(this);
			this.removeMouseMotionListener(this);
		}
	}
	
	/**
	 * Implements <code>java.awt.event.MouseMotionListener</code>.
	 */
	public void mouseDragged(MouseEvent e) {
        Point xPnt = MouseInfo.getPointerInfo().getLocation();
        int xDisplacementInt = xPnt.x - mousePnt.x;
        int yDisplacementInt = xPnt.y - mousePnt.y;
        int x = this.rootFrm.getX();
        int y = this.rootFrm.getY();
        int w = this.rootFrm.getWidth();
        int h = this.rootFrm.getHeight();
        if (this.locationInt == NORTHWEST) {
        	x += xDisplacementInt;
        	y += yDisplacementInt;
        	w -= xDisplacementInt;
        	h -= yDisplacementInt;
        }
        else if (this.locationInt == NORTH) {
        	y += yDisplacementInt;
        	h -= yDisplacementInt;
        }
        else if (this.locationInt == NORTHEAST) {
        	y += yDisplacementInt;
        	w += xDisplacementInt;
        	h -= yDisplacementInt;
        }
        else if (this.locationInt == WEST) {
        	x += xDisplacementInt;
        	w -= xDisplacementInt;
        }
        else if (this.locationInt == EAST) {
        	w += xDisplacementInt;
        }
        else if (this.locationInt == SOUTHWEST) {
        	x += xDisplacementInt;
        	w -= xDisplacementInt;
        	h += yDisplacementInt;
        }
        else if (this.locationInt == SOUTH) {
        	h += yDisplacementInt;
        }
        else if (this.locationInt == SOUTHEAST) {
        	w += xDisplacementInt;
        	h += yDisplacementInt;
        }
        this.mousePnt = xPnt;
        this.rootFrm.setLocation(x, y);
        this.rootFrm.setSize(w, h);
        this.rootFrm.setVisible(true);
	}

	/**
	 * Implements <code>java.awt.event.MouseMotionListener</code>.
	 */
	public void mouseMoved(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

	/**
	 * Implements <code>java.awt.event.MouseListener</code>.
	 */
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}
	
	/**
	 * Implements <code>java.awt.event.MouseListener</code>.
	 */
	public void mouseEntered(MouseEvent e) {
		if (this.locationInt == NORTHWEST) {
			this.setCursor(new Cursor(Cursor.NW_RESIZE_CURSOR));
		}
		else if (this.locationInt == NORTH) {
			this.setCursor(new Cursor(Cursor.N_RESIZE_CURSOR));
		}
		else if (this.locationInt == NORTHEAST) {
			this.setCursor(new Cursor(Cursor.NE_RESIZE_CURSOR));
		}
		else if (this.locationInt == WEST) {
			this.setCursor(new Cursor(Cursor.W_RESIZE_CURSOR));
		}
		else if (this.locationInt == EAST) {
			this.setCursor(new Cursor(Cursor.E_RESIZE_CURSOR));
		}
		else if (this.locationInt == SOUTHWEST) {
			this.setCursor(new Cursor(Cursor.SW_RESIZE_CURSOR));
		}
		else if (this.locationInt == SOUTH) {
			this.setCursor(new Cursor(Cursor.S_RESIZE_CURSOR));
		}
		else if (this.locationInt == SOUTHEAST) {
			this.setCursor(new Cursor(Cursor.SE_RESIZE_CURSOR));
		}
		else {
			throw new IllegalArgumentException("Invalid direction.");
		}
	}

	/**
	 * Implements <code>java.awt.event.MouseListener</code>.
	 */
	public void mouseExited(MouseEvent e) {
		this.setCursor((new Cursor(Cursor.DEFAULT_CURSOR)));
	}

	/**
	 * Implements <code>java.awt.event.MouseListener</code>.
	 */
	public void mousePressed(MouseEvent e) {
		this.mousePnt = MouseInfo.getPointerInfo().getLocation();
	}

	/**
	 * Implements <code>java.awt.event.MouseListener</code>.
	 */
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
		
	}

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久伊99综合婷婷久久伊| 99re8在线精品视频免费播放| 国产精品国产三级国产a | 国产精品久久久久久久午夜片 | 国产精品看片你懂得| 欧美成va人片在线观看| 91精品国产91久久久久久一区二区| 91久久香蕉国产日韩欧美9色| 91一区二区三区在线播放| 99视频精品全部免费在线| 99精品久久久久久| 欧美视频一区二区在线观看| 欧美视频一区二区三区在线观看 | 久久先锋影音av鲁色资源网| 亚洲精品一区二区三区蜜桃下载| 欧美精品一区二区三区高清aⅴ | 欧美日韩国产一二三| 9191久久久久久久久久久| 日韩区在线观看| 国产亚洲精品中文字幕| 亚洲欧美在线另类| 亚洲成av人片在www色猫咪| 热久久一区二区| 国产福利精品一区二区| 色噜噜狠狠一区二区三区果冻| 欧美精品 国产精品| 久久久久久久久免费| 亚洲综合在线第一页| 精品无码三级在线观看视频 | 亚洲欧美日韩人成在线播放| 亚洲国产裸拍裸体视频在线观看乱了| 奇米四色…亚洲| 东方欧美亚洲色图在线| 欧美男同性恋视频网站| 久久久精品天堂| 亚洲成av人片一区二区三区| 国产宾馆实践打屁股91| 欧美日本一道本在线视频| 久久久久亚洲综合| 亚洲大片一区二区三区| 国产福利精品导航| 欧美精品欧美精品系列| 欧美国产日本视频| 秋霞午夜鲁丝一区二区老狼| 99re视频精品| 久久久久国产精品人| 日韩中文字幕亚洲一区二区va在线 | 欧美xxx久久| 亚洲人精品午夜| 国产精品一区二区三区乱码| 欧美日韩成人综合在线一区二区| 国产欧美1区2区3区| 日本欧美一区二区三区乱码| 成人av资源站| 国产亚洲欧洲997久久综合| 日韩成人一区二区三区在线观看| 99久久久无码国产精品| 久久久久久久国产精品影院| 蜜臀av在线播放一区二区三区| 99re这里只有精品视频首页| 亚洲国产精品精华液2区45| 麻豆国产欧美日韩综合精品二区| 欧美亚洲国产一区在线观看网站| 国产精品区一区二区三区| 国产在线看一区| 日韩欧美国产一区二区在线播放| 亚洲线精品一区二区三区| 91同城在线观看| 椎名由奈av一区二区三区| 岛国精品在线播放| 国产精品毛片高清在线完整版| 国内成+人亚洲+欧美+综合在线 | 国产色91在线| 国产成人精品aa毛片| 亚洲精品在线免费观看视频| 久久精品国产一区二区三| 7777精品伊人久久久大香线蕉经典版下载| 亚洲人123区| 色婷婷综合激情| 亚洲精品国产无天堂网2021| 色哦色哦哦色天天综合| 亚洲色图欧美在线| 91麻豆精品在线观看| 一区二区三区日韩欧美| 欧美三级视频在线| 日韩av电影免费观看高清完整版| 欧美日韩在线免费视频| 三级成人在线视频| 欧美xxxx老人做受| 成人污污视频在线观看| 亚洲人成在线播放网站岛国| 欧美在线999| 另类专区欧美蜜桃臀第一页| 久久精品视频在线看| 91小视频在线| 婷婷成人激情在线网| 日韩女优电影在线观看| 国产福利一区二区三区视频在线 | 国产一区二区三区不卡在线观看| 欧美精品一区二区不卡| 成人app下载| 午夜伊人狠狠久久| 国产亚洲欧美一区在线观看| 日本韩国欧美一区二区三区| 日本不卡一区二区三区| 国产欧美日韩一区二区三区在线观看| www.av精品| 日本va欧美va欧美va精品| 亚洲国产精品成人久久综合一区| 色老综合老女人久久久| 国产原创一区二区三区| 一级做a爱片久久| 久久日韩精品一区二区五区| 在线精品视频一区二区| 国产精品主播直播| 亚洲一区成人在线| 国产欧美中文在线| 欧美人与z0zoxxxx视频| 成人av综合在线| 精彩视频一区二区三区| 亚洲成人福利片| 国产精品无人区| 日韩亚洲欧美在线| 色婷婷亚洲精品| 国产不卡高清在线观看视频| 日韩中文字幕av电影| 亚洲三级电影全部在线观看高清| 欧美一卡二卡在线观看| 欧美影院午夜播放| 99久久久久免费精品国产| 国产在线日韩欧美| 蜜桃av一区二区在线观看| 一区二区三区欧美日| 欧美韩日一区二区三区| 久久久久久久性| 欧美成人女星排行榜| 欧美精品乱码久久久久久按摩| 日本韩国视频一区二区| 色综合久久中文综合久久97 | 亚洲va欧美va天堂v国产综合| 国产女人18毛片水真多成人如厕 | 91精品国产aⅴ一区二区| 色诱亚洲精品久久久久久| 丁香婷婷综合激情五月色| 日本视频免费一区| 日韩av一区二区三区四区| 亚洲成人一区二区在线观看| 亚洲精品成人少妇| 亚洲日本一区二区| 亚洲视频在线一区观看| 亚洲色图一区二区| 亚洲老司机在线| 一区二区三区中文字幕精品精品 | 在线观看网站黄不卡| 福利一区二区在线观看| 国产凹凸在线观看一区二区 | 欧美激情资源网| 国产亚洲欧洲997久久综合 | 99久久国产综合精品色伊| 成人一区二区三区在线观看| 国产成人av影院| jizz一区二区| 91啦中文在线观看| 在线观看一区日韩| 欧美二区三区的天堂| 日韩女优毛片在线| 国产欧美精品一区二区色综合| 国产精品人成在线观看免费| 亚洲毛片av在线| 日韩av电影免费观看高清完整版在线观看 | 伊人色综合久久天天| 亚洲一区二区在线观看视频 | 蜜桃视频在线观看一区二区| 久久精品国产精品亚洲综合| 国产激情视频一区二区在线观看| 国产 日韩 欧美大片| 菠萝蜜视频在线观看一区| 在线视频你懂得一区| 欧美一卡二卡在线| 国产精品美日韩| 亚洲电影欧美电影有声小说| 久久精品999| 91在线视频网址| 欧美电影免费观看高清完整版在线观看| 亚洲精品一区二区三区福利 | 国内久久婷婷综合| 99综合影院在线| 欧美一级xxx| 亚洲天堂中文字幕| 蜜臀久久久99精品久久久久久| 国产成人精品一区二区三区网站观看 | 激情五月播播久久久精品| 99久久er热在这里只有精品66| 7777精品伊人久久久大香线蕉超级流畅| 久久综合九色综合97婷婷| 一区二区三区在线视频观看| 国产在线不卡一卡二卡三卡四卡| 欧美亚洲综合久久| 国产色综合久久| 久久黄色级2电影|