亚洲欧美第一页_禁久久精品乱码_粉嫩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 {    /**     * The text string to be displayed on the commentary box.     * @see String     */    public 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     */    public Point topLeft;    int height, width;    Font font;    int[] xPts, yPts;    int nPts;    /**     * Background color of the commentary box specified by <code>     * java.awt.Color</code>.     * @see Color     */    public Color bg;    /**     * Foreground color (text color) of the commentary box specified by <code>     * java.awt.Color</code>.     * @see Color     */    public 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) {	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);    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av电影在线| 2024国产精品视频| 日韩午夜在线观看| 国产天堂亚洲国产碰碰| 性做久久久久久| 成人av高清在线| 欧美一级国产精品| 一二三四区精品视频| 国产成人精品免费网站| 欧美日韩精品免费| 国产精品成人免费| 国产一区福利在线| 欧美一区二区在线观看| 亚洲影院理伦片| 91在线观看免费视频| 久久亚洲精品小早川怜子| 亚洲成av人片一区二区三区| 99久久夜色精品国产网站| www国产成人| 精品一区二区三区久久| 91精品国产乱| 日韩制服丝袜av| 欧美在线一二三| 一区二区三区免费网站| 91在线观看成人| 中文字幕一区二区不卡| 日日夜夜精品免费视频| 色综合久久66| 亚洲色欲色欲www| 成人v精品蜜桃久久一区| 国产亚洲精品久| 国产精品911| 久久综合久久久久88| 国内外精品视频| 国产亚洲欧美一级| 国产成人夜色高潮福利影视| 久久精品一区八戒影视| 国产精品综合一区二区三区| 久久这里只精品最新地址| 国产综合久久久久久久久久久久| 欧美一级一区二区| 另类小说综合欧美亚洲| 欧美精品一区二区高清在线观看 | 久久国产剧场电影| 欧美sm极限捆绑bd| 国产精品888| 中文字幕亚洲在| 欧美在线观看视频一区二区 | 国产网站一区二区三区| 国产精品88888| 亚洲日本乱码在线观看| 欧美性猛交xxxx黑人交| 五月天网站亚洲| 日韩欧美区一区二| 国产91精品一区二区麻豆亚洲| 亚洲国产精品传媒在线观看| 不卡一区二区在线| 一区二区三区精密机械公司| 欧美日韩精品一区二区| 九九视频精品免费| 国产欧美精品区一区二区三区| 不卡视频在线观看| 午夜亚洲福利老司机| 欧美成人性战久久| 三级影片在线观看欧美日韩一区二区| 性感美女极品91精品| 久久久午夜电影| 日韩国产一二三区| 欧美老年两性高潮| 欧美不卡一区二区三区四区| 精品一区二区三区免费毛片爱| av不卡免费在线观看| 亚洲欧美成人一区二区三区| 欧美日韩视频在线观看一区二区三区| 亚洲成人一区二区在线观看| 欧美va亚洲va| 极品销魂美女一区二区三区| 中文字幕中文在线不卡住| 欧美日韩中文另类| 国产一区二区三区av电影| 亚洲人午夜精品天堂一二香蕉| 欧美妇女性影城| 国产在线乱码一区二区三区| 一片黄亚洲嫩模| 久久综合色鬼综合色| 在线欧美一区二区| 国产二区国产一区在线观看| 亚洲高清一区二区三区| 国产欧美日韩一区二区三区在线观看| 色网综合在线观看| 国产精品自拍三区| 免费成人在线观看视频| 亚洲品质自拍视频网站| 精品国产精品网麻豆系列| 欧洲人成人精品| 成人蜜臀av电影| 国产一区二区三区电影在线观看| 亚洲人成网站色在线观看| 日韩免费成人网| 欧美午夜寂寞影院| 色综合久久久久久久久| 成人黄色在线看| 久久疯狂做爰流白浆xx| 亚洲第一二三四区| 亚洲激情自拍偷拍| 亚洲欧美欧美一区二区三区| 久久久久久影视| 亚洲精品在线网站| 5月丁香婷婷综合| 欧美日韩精品一区视频| 91丨porny丨首页| 不卡的av在线| 成人免费视频免费观看| 国产成人av电影在线| 国产精品综合一区二区| 久久成人精品无人区| 男男成人高潮片免费网站| 日韩精品免费专区| 日本最新不卡在线| 老汉av免费一区二区三区| 图片区小说区国产精品视频| 亚洲一区二区三区中文字幕| 亚洲综合色区另类av| 亚洲男人天堂一区| 尤物在线观看一区| 亚洲成年人影院| 亚洲一区二区三区在线| 亚洲一区二区三区四区五区中文| 亚洲精品亚洲人成人网在线播放| 亚洲免费av观看| 亚洲麻豆国产自偷在线| 亚洲已满18点击进入久久| 午夜视频一区二区| 蜜桃av一区二区| 国产美女视频91| 成人av在线资源网| jiyouzz国产精品久久| 国产成人超碰人人澡人人澡| 成人午夜电影久久影院| 99国产精品久久久| 欧美日韩五月天| 精品国产乱子伦一区| 国产精品乱子久久久久| 一区二区三区精品| 美女久久久精品| 成人免费观看视频| 欧美日韩一区二区在线视频| 日韩免费高清电影| 国产精品不卡在线| 日韩经典中文字幕一区| 国产一区二区三区免费在线观看| 蜜桃久久精品一区二区| 岛国av在线一区| 欧美天天综合网| 久久亚洲一区二区三区四区| 亚洲免费高清视频在线| 蜜臀av性久久久久蜜臀aⅴ流畅| 国产高清成人在线| 欧美亚洲动漫精品| 久久久久久久久伊人| 亚洲美女免费在线| 国产综合色在线| 日本道精品一区二区三区| 色94色欧美sute亚洲13| 国产色一区二区| 天堂精品中文字幕在线| a级精品国产片在线观看| 在线成人高清不卡| 亚洲色大成网站www久久九九| 琪琪一区二区三区| 91丨porny丨蝌蚪视频| 久久久久久久久伊人| 肉肉av福利一精品导航| 91视频观看免费| 国产日韩欧美精品一区| 日韩精品一区第一页| 色噜噜久久综合| 中文字幕精品—区二区四季| 麻豆91在线播放免费| 欧美日韩高清在线| 亚洲视频你懂的| 国产成人免费在线观看| 精品日产卡一卡二卡麻豆| 午夜精品久久久久久久| 91丨porny丨中文| 国产精品五月天| 国产高清一区日本| 久久久精品日韩欧美| 久久av资源站| 日韩欧美国产1| 亚洲小说欧美激情另类| 99久久精品国产观看| 精品盗摄一区二区三区| 蜜桃在线一区二区三区| 欧美精品亚洲二区| 青青草原综合久久大伊人精品 | 精品一区二区三区免费视频| 亚洲日本va午夜在线电影| 成人av网站大全| 91麻豆精品国产91久久久久|