亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91浏览器在线视频| 亚洲欧美激情插| 欧美日韩aaaaaa| 色婷婷av一区二区三区大白胸| 国产福利一区二区三区视频| 精彩视频一区二区| 狠狠色狠狠色综合系列| 久久91精品国产91久久小草| 国产精品911| www.亚洲色图| 欧美亚洲另类激情小说| 欧美乱妇20p| 日韩午夜激情av| 久久综合精品国产一区二区三区| 精品日韩99亚洲| 久久久综合视频| 国产精品人人做人人爽人人添| 亚洲色图清纯唯美| 亚洲高清一区二区三区| 蜜桃精品视频在线| 国产不卡免费视频| 在线免费观看日本欧美| 欧美一区二区三区公司| 国产午夜精品美女毛片视频| 中文字幕一区二区三区四区不卡 | 水野朝阳av一区二区三区| 天堂久久一区二区三区| 狠狠色丁香久久婷婷综合丁香| 国产精品 欧美精品| 色婷婷综合久久| 日韩三级电影网址| 亚洲色图20p| 免费欧美日韩国产三级电影| 国产成人午夜精品影院观看视频 | 国产毛片精品国产一区二区三区| 成人污视频在线观看| 欧美日韩精品二区第二页| 日韩精品一区二区三区中文精品 | 亚洲精品高清在线| 久久精品国内一区二区三区| 成人免费毛片aaaaa**| 欧美视频一区二区三区四区| 精品乱人伦一区二区三区| 亚洲美女少妇撒尿| 国产精品18久久久久久久久| 欧美人与性动xxxx| 亚洲三级在线播放| 国产成人精品免费在线| 欧美一区二区三区视频在线| 亚洲日本一区二区| 国产精品99久久久久久有的能看| 欧美性猛交xxxx乱大交退制版| 国产欧美日韩一区二区三区在线观看| 亚洲国产aⅴ天堂久久| www.一区二区| 国产偷国产偷精品高清尤物| 视频在线观看一区二区三区| 91蜜桃视频在线| 日本一区二区三区国色天香| 久久99久久99| 日韩欧美中文字幕一区| 午夜精品久久久久久久久| 91亚洲精品久久久蜜桃| 亚洲国产精品黑人久久久| 另类小说视频一区二区| 欧美日韩不卡在线| 亚洲自拍另类综合| 91视频你懂的| 亚洲欧美日韩一区| 99r国产精品| 亚洲三级在线播放| 欧亚洲嫩模精品一区三区| 亚洲欧美另类在线| 91小视频免费观看| 国产精品嫩草影院com| 成人动漫中文字幕| 中文字幕精品在线不卡| 国产91精品一区二区麻豆网站| 国产婷婷色一区二区三区四区| 国产麻豆精品95视频| 久久精品在线观看| 成人午夜免费av| 亚洲色图一区二区三区| 在线观看欧美精品| 亚洲成人手机在线| 欧美电视剧在线观看完整版| 狠狠色丁香久久婷婷综合_中| 欧美精品一区二区在线播放| 国产自产v一区二区三区c| 久久色成人在线| 懂色av一区二区在线播放| 国产欧美一区二区在线观看| www.成人网.com| 一区二区三区鲁丝不卡| 欧美老女人第四色| 激情伊人五月天久久综合| 久久精品欧美一区二区三区不卡| 成人av中文字幕| 一区二区三国产精华液| 日韩欧美国产一二三区| 国产成人亚洲综合a∨婷婷图片| 国产精品国模大尺度视频| 欧美羞羞免费网站| 国产一区二区在线观看视频| 国产精品久久久久久户外露出| 在线视频中文字幕一区二区| 极品美女销魂一区二区三区| 国产精品久久久久永久免费观看| 欧美性猛交xxxx乱大交退制版| 久久99国产精品麻豆| 亚洲精品视频在线观看网站| 8x福利精品第一导航| 成人ar影院免费观看视频| 亚洲大尺度视频在线观看| 2023国产精品| 91麻豆精品国产91久久久使用方法| 国产一区二区三区在线观看免费视频| 亚洲欧美在线视频观看| 日韩欧美一级二级三级久久久| av午夜精品一区二区三区| 麻豆成人综合网| 一区二区三区在线观看动漫| 2021国产精品久久精品| 欧美午夜精品免费| 成人黄色av电影| 国产中文一区二区三区| 一区二区三区日韩欧美| 国产精品无圣光一区二区| 精品美女被调教视频大全网站| 欧美系列在线观看| av色综合久久天堂av综合| 国产精品一级在线| 久久精品国产在热久久| 日韩精品五月天| 亚洲午夜视频在线观看| 亚洲欧洲国产日韩| 国产欧美精品在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩国产首页在线观看| 欧美专区亚洲专区| 色香蕉成人二区免费| 波多野结衣中文字幕一区二区三区| 精品一区二区三区免费毛片爱 | xf在线a精品一区二区视频网站| 欧美视频在线播放| 欧美日韩一级大片网址| 欧洲亚洲国产日韩| 欧美日韩免费视频| 欧美日韩在线播放三区| 欧美日本精品一区二区三区| 欧美日韩一本到| 欧美日本韩国一区二区三区视频| 欧美剧在线免费观看网站| 欧美日韩国产bt| 欧美一级久久久| 日韩免费观看2025年上映的电影| 日韩亚洲欧美高清| 精品国产91九色蝌蚪| 2欧美一区二区三区在线观看视频| 日韩三级在线观看| 久久久亚洲国产美女国产盗摄| 精品成人一区二区三区| 国产欧美一区二区精品忘忧草| 久久久777精品电影网影网 | 精品国产一区二区三区av性色| 日韩欧美另类在线| 久久久综合精品| 亚洲视频一区二区在线观看| 亚洲一区日韩精品中文字幕| 午夜成人免费视频| 久久99久久99| 成人av资源站| 欧美精品一卡两卡| 国产三级精品三级| 一区二区三区高清在线| 午夜亚洲福利老司机| 精东粉嫩av免费一区二区三区| 成人综合婷婷国产精品久久免费| 91在线无精精品入口| 欧美人体做爰大胆视频| 久久精品男人的天堂| 一区二区日韩电影| 韩国女主播一区| 色香蕉成人二区免费| 欧美tk丨vk视频| 亚洲美女免费视频| 极品美女销魂一区二区三区| jiyouzz国产精品久久| 欧美一区国产二区| 日韩码欧中文字| 国产精品一品二品| 欧美日韩久久久一区| 国产午夜精品一区二区| 午夜视频在线观看一区二区 | 秋霞午夜鲁丝一区二区老狼| 国产成人精品影院| 91精品中文字幕一区二区三区| 国产午夜亚洲精品理论片色戒| 亚洲电影你懂得| 成年人午夜久久久|