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

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

?? combox.java

?? Java算法大全(近100種算法打包),內容詳實,很好的學習資料.
?? JAVA
字號:
/* ComBox.java */import java.awt.*;import java.lang.*;/** * This class composes a commentary box to be drawn on any drawing panel/canvas. * The width of the commentary box will be determined by the length of the * text string being displayed. */public class ComBox implements DrawingObj {    private String str;    /**     * Top left position of the commentary box. This attribute consists     * of two components: <b>x</b> and <b>y</b> based on the Point class     * in <code>java.awt.*</code>.     * @see Point     */    private Point topLeft;    private int height, width;    private Font font;    private int[] xPts, yPts;    private int nPts;    /**     * Background color of the commentary box specified by <code>     * java.awt.Color</code>.     * @see Color     */    private Color bg;    /**     * Foreground color (text color) of the commentary box specified by <code>     * java.awt.Color</code>.     * @see Color     */    private Color fg;    /**     * Creates a commentary box with its topleft corner at (topLeftX, topLeftY)     * and commentary string specified by the third <code>String</code>     * parameter. By default, the background color is yellow and     * the text is displayed in blue.     * @param topLeftX Integer value specifying the horizontal position of the     * topleft corner of the commentary box.     * @param topLeftY Integer value specifying the vertical position of the     * topleft corner of the commentary box.     * @param str The text string to be displayed on the commentary box.     */    public ComBox(int topLeftX, int topLeftY, String str, Font font) {	this.topLeft = new Point(topLeftX, topLeftY);	this.str = str;	this.fg = Color.blue;	this.bg = Color.yellow;	this.font = font;	height = 30;	width = 7*str.length() + 6;	nPts = 8;	xPts = new int[nPts];	yPts = new int[nPts];	xPts[0] = topLeft.x + 4; xPts[1] = topLeft.x + width - 4;	xPts[2] = xPts[3] = topLeft.x + width;	xPts[4] = xPts[1]; xPts[5] = xPts[0];	xPts[6] = xPts[7] = topLeft.x;	yPts[0] = yPts[1] = topLeft.y;	yPts[2] = topLeft.y + 4;	yPts[3] = topLeft.y + height - 4;	yPts[4] = yPts[5] = topLeft.y + height;	yPts[6] = yPts[3];	yPts[7] = yPts[2];    }    /**     * Creates a commentary box with its topleft corner at (topLeftX, topLeftY)     * and commentary string specified by the third <code>String</code>     * parameter, using the foreground and background colors indicated by     * the fourth and fifth parameters.      *      * @param topLeftX Integer value specifying the horizontal position of the     * topleft corner of the commentary box.     * @param topLeftY Integer value specifying the vertical position of the     * topleft corner of the commentary box.     * @param str The text string to be displayed on the commentary box.     * @param fg Color of the text in the commentary box.     * @param bg Color of the commentary box background.     */    public ComBox(int topLeftX, int topLeftY, String str, Color fg, Color bg,		Font font) {	this.topLeft = new Point(topLeftX, topLeftY);	this.str = str;	this.fg = fg;	this.bg = bg;	this.font = font;	height = 30;	width = 7*str.length() + 6;	nPts = 8;	xPts = new int[nPts];	yPts = new int[nPts];	xPts[0] = topLeft.x + 4; xPts[1] = topLeft.x + width - 4;	xPts[2] = xPts[3] = topLeft.x + width;	xPts[4] = xPts[1]; xPts[5] = xPts[0];	xPts[6] = xPts[7] = topLeft.x;	yPts[0] = yPts[1] = topLeft.y;	yPts[2] = topLeft.y + 4;	yPts[3] = topLeft.y + height - 4;	yPts[4] = yPts[5] = topLeft.y + height;	yPts[6] = yPts[3];	yPts[7] = yPts[2];    }    /**     * Set the text string to be displayed on the commentary box.     * @param str Text string in the form of class String     */    public void setText(String str) {	this.str = str;        width = 7*str.length() + 6;        xPts[0] = topLeft.x + 4; xPts[1] = topLeft.x + width - 4;        xPts[2] = xPts[3] = topLeft.x + width;        xPts[4] = xPts[1]; xPts[5] = xPts[0];        xPts[6] = xPts[7] = topLeft.x;        yPts[0] = yPts[1] = topLeft.y;        yPts[2] = topLeft.y + 4;        yPts[3] = topLeft.y + height - 4;        yPts[4] = yPts[5] = topLeft.y + height;        yPts[6] = yPts[3];        yPts[7] = yPts[2];    }    /**     * Set the top left position of the commentary box.     * @param topLeftX Horizontal position of the top left corner.     * @param topLeftY Vertical position of the top left corner.     */    public void setTopLeft(int topLeftX, int topLeftY) {	this.topLeft = new Point(topLeftX, topLeftY);        xPts[0] = topLeft.x + 4; xPts[1] = topLeft.x + width - 4;        xPts[2] = xPts[3] = topLeft.x + width;        xPts[4] = xPts[1]; xPts[5] = xPts[0];        xPts[6] = xPts[7] = topLeft.x;        yPts[0] = yPts[1] = topLeft.y;        yPts[2] = topLeft.y + 4;        yPts[3] = topLeft.y + height - 4;        yPts[4] = yPts[5] = topLeft.y + height;        yPts[6] = yPts[3];        yPts[7] = yPts[2];    }    /**     * Set the background color of the commentary box.     * @param col Background color, instance of java.awt.color     */    public void setBackground(Color col) {	this.bg = col;    }    /**     * Set the text color of the commentary box.     * @param col Foreground color, instance of java.awt.color     */    public void setColor(Color col) {	this.fg = col;    }    /**     * This method is to be called from the <code>paint(Graphics g)</code>     * method of the drawing panel/canvas. It uses the graphical context     * of the drawing panel/canvas to construct the commentary box on     * the drawing panel/canvas.     * @param g Graphical context from the <code>paint(Graphics g)</code>     * method of the drawing panel/canvas.     * @see Graphics     */    public void draw(Graphics g) {	if (str.length() < 1) return;	g.setColor(bg);	g.fillPolygon(xPts, yPts, nPts);	g.setColor(Color.black);	g.drawPolygon(xPts, yPts, nPts);	g.setColor(fg);	g.setFont(font);	g.drawString(str, topLeft.x + 4, topLeft.y + height - 10);    }    /**     * Move the top left position of the commentary box.     * @param x Horizontal position of the top left corner.     * @param y Vertical position of the top left corner.     * @see setTopLeft     */    public void move(int x, int y) {	setTopLeft(x, y);    }    /**     * @return The X coordinate of the top left corner of the commentary     * box.     */    public int getX() {	return topLeft.x;    }    /**     * @return The Y coordinate of the top left corner of the commentary     * box.     */    public int getY() {	return topLeft.y;    }    /**     * @return The text string to be displayed on the commentary box.     */    public String getText() {	return str;    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线免费av一区| 国模一区二区三区白浆| 91看片淫黄大片一级| 中文在线一区二区| 波多野结衣91| 曰韩精品一区二区| 欧美精品免费视频| 久久99国产乱子伦精品免费| 久久综合九色综合97婷婷| 福利一区福利二区| 亚洲视频免费看| 欧美精三区欧美精三区| 麻豆国产欧美日韩综合精品二区| 精品久久一二三区| www.色综合.com| 性欧美疯狂xxxxbbbb| 精品毛片乱码1区2区3区| 国产激情一区二区三区| 亚洲另类色综合网站| 欧美日韩免费一区二区三区视频| 免费日本视频一区| 亚洲国产精品成人综合色在线婷婷| av高清久久久| 视频在线在亚洲| 国产亚洲福利社区一区| 色婷婷av一区二区三区gif | 久久久三级国产网站| 不卡的av在线播放| 偷偷要91色婷婷| 中文字幕欧美日韩一区| 欧美日韩你懂得| 成人午夜碰碰视频| 视频一区视频二区中文字幕| 中文字幕不卡在线观看| 欧美一级欧美一级在线播放| 成人午夜视频在线观看| 日韩精品久久久久久| 国产精品国产a| 日韩欧美电影在线| 欧美日韩免费一区二区三区| 国产精品一线二线三线精华| 风间由美性色一区二区三区| 亚洲人成网站影音先锋播放| 久久综合色鬼综合色| 欧美色手机在线观看| 成人影视亚洲图片在线| 久久国内精品视频| 亚洲一区在线观看网站| 国产精品久久久一本精品| 日韩美女一区二区三区| 欧美日韩美女一区二区| 99久久国产综合精品女不卡| 国产精品一区在线观看你懂的| 午夜精品久久久久影视| 亚洲免费资源在线播放| 国产精品免费观看视频| 2020国产成人综合网| 日韩欧美一级二级三级| 欧美日韩亚洲综合| 91在线丨porny丨国产| 国产一区二区电影| 久99久精品视频免费观看| 午夜av区久久| 亚洲综合激情网| 亚洲精品免费在线| 亚洲黄一区二区三区| 日韩一区中文字幕| 国产精品免费丝袜| 国产日韩精品视频一区| 久久久无码精品亚洲日韩按摩| 日韩欧美三级在线| 日韩精品专区在线| 欧美成人一区二区| 精品久久久久久久久久久久久久久久久| 欧美日韩国产综合视频在线观看| 欧美写真视频网站| 欧美性大战久久| 欧美在线观看视频在线| 欧洲精品在线观看| 欧美性xxxxxx少妇| 88在线观看91蜜桃国自产| 欧美日韩国产不卡| 日韩一二三区不卡| 亚洲第一在线综合网站| 亚洲精品精品亚洲| 一区二区三区四区激情| 夜夜精品浪潮av一区二区三区| 亚洲va韩国va欧美va精品| 亚洲成人av一区二区三区| 日韩影院精彩在线| 久久草av在线| 国产麻豆精品theporn| 懂色中文一区二区在线播放| www.亚洲精品| 欧美视频在线观看一区二区| 69堂精品视频| 精品欧美乱码久久久久久| 国产肉丝袜一区二区| 中文字幕亚洲一区二区va在线| 亚洲人成精品久久久久| 亚洲午夜精品网| 精品制服美女丁香| 成人性生交大合| 欧美调教femdomvk| 26uuu亚洲| 亚洲男人的天堂一区二区| 日韩国产成人精品| 国产999精品久久久久久| 在线观看视频欧美| 精品国产一区二区三区av性色| 欧美高清在线视频| 亚洲高清在线精品| 国产一区二区毛片| 91原创在线视频| 宅男在线国产精品| 欧美国产精品v| 亚洲线精品一区二区三区八戒| 久久电影网站中文字幕| 色综合天天综合色综合av| 在线成人av影院| 中文子幕无线码一区tr| 国产91清纯白嫩初高中在线观看| 色就色 综合激情| 欧美精品一区二区三区高清aⅴ| 中文字幕日本不卡| 国产一区三区三区| 欧美无乱码久久久免费午夜一区| 国产欧美日韩综合| 蜜臀久久99精品久久久画质超高清| www.欧美日韩国产在线| 精品久久人人做人人爽| 亚洲国产精品尤物yw在线观看| 国产精品羞羞答答xxdd| 欧美高清www午色夜在线视频| 国产精品视频一二三区| 免费观看在线色综合| 91久久精品国产91性色tv | 久久蜜桃av一区精品变态类天堂 | 国产精品久久久久一区| 裸体一区二区三区| 欧美在线影院一区二区| 欧美国产日韩精品免费观看| 免费精品视频最新在线| 精品视频在线免费看| 1000精品久久久久久久久| 韩国欧美一区二区| 日韩三级精品电影久久久| 亚洲制服丝袜在线| 一本一道波多野结衣一区二区| 国产欧美精品一区| 国产乱人伦偷精品视频免下载| 欧美一区二区免费| 日韩电影一区二区三区四区| 欧美私人免费视频| 亚洲精品一卡二卡| 91网站在线观看视频| 欧美国产禁国产网站cc| 高清成人免费视频| 久久久久久久久久电影| 久久99国内精品| 26uuu国产日韩综合| 黄一区二区三区| 久久噜噜亚洲综合| 国产乱一区二区| 久久久久久久久蜜桃| 精品一区二区三区免费观看| 日韩一区二区三区精品视频| 日韩精品一区第一页| 制服丝袜国产精品| 免费人成在线不卡| 精品福利在线导航| 国产麻豆9l精品三级站| 久久精品免费在线观看| 懂色av一区二区三区免费看| 国产亚洲精品久| 91在线云播放| 亚洲国产一区二区三区| 欧美日韩一区二区三区视频| 五月激情丁香一区二区三区| 91精品国产麻豆| 欧美一区二区人人喊爽| 免费黄网站欧美| 久久天天做天天爱综合色| 国产激情91久久精品导航| 国产精品美女久久久久久2018| av电影天堂一区二区在线| 亚洲影视在线观看| 欧美人妖巨大在线| 久久草av在线| 国产精品成人免费在线| 欧美色国产精品| 国模娜娜一区二区三区| 国产精品久久网站| 欧美色中文字幕| 狠狠色狠狠色综合日日91app| 国产精品对白交换视频| 精品视频在线免费观看| 国产一区在线精品| 亚洲精选一二三| 欧美电影精品一区二区|