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

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

?? rtextline.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package graph;import java.awt.*;import java.util.*;import java.lang.*;import java.awt.image.*;/*******************************************************************************    Class  RTextLine******************************************************************************    Copyright (C) 1996 Leigh Brookshaw****    This program is free software; you can redistribute it and/or modify**    it under the terms of the GNU General Public License as published by**    the Free Software Foundation; either version 2 of the License, or**    (at your option) any later version.****    This program is distributed in the hope that it will be useful,**    but WITHOUT ANY WARRANTY; without even the implied warranty of**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the**    GNU General Public License for more details.****    You should have received a copy of the GNU General Public License**    along with this program; if not, write to the Free Software**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.******************************************************************************    This class is an extension of TextLine that allows text to be rotated.**    Currently only multiples of 90 degrees is allowed but the Image filter**    could easily be extended to allow arbitrary rotation.***************************************************************************//** * * This class is an extension of the TextLine Class * that allows text to be rotated. To rotate the text the Component.createImage * method is used. This means that this class needs to know * the component that will receive the text. If the component is not * known the text cannot be rotated and the class will fall back to the * TextLine.draw method.<P> * * The text is rotated by running the image through an ImageFilter. This filter * can easily be modified to rotate text through an arbitrary angle but * unless the text is large the integer mapping will blur the text.  * Also positioning of arbitrarily rotated text becomes problematic.  * * @version $Revision: 1.5 $, $Date: 1996/10/23 03:13:45 $ * @author  Leigh Brookshaw */public class RTextLine extends TextLine {/****************** Constants**************//*************************** Protected Variables***********************/  /**   * Rotation Angle of text in degrees   */     protected int angle = 0;     private double cos = 1.0;     private double sin = 0.0;     private Component component = null;     /*************************** Constructors***********************/  /**   * Instantiate the class   */     public RTextLine() { }  /**   * Instantiate the class.   * @param s String to parse.   */     public RTextLine(String s) {             super(s);	  }  /**   * Instantiate the class.   * @param c the Component the text will be drawn into.   */     public RTextLine(Component c) {             setDrawingComponent(c);	  }  /**   * Instantiate the class   * @param s String to parse.   * @param f Font to use.   */     public RTextLine(String s, Font f) {             super(s,f);	  }  /**   * Instantiate the class   * @param s String to parse.   * @param f Font to use.   * @param c Color to use   * @param j Justification   */     public RTextLine(String s, Font f, Color c, int j) {            super(s,f,c,j); 	  }  /**   * Instantiate the class   * @param s String to parse.   * @param c Color to use   */     public RTextLine(String s, Color c) {             super(s,c);	  }  /**   * Instantiate the class   * @param f Font to use.   * @param c Color to use   * @param j Justification   * @param a Rotation angle in degrees   */     public RTextLine(Font f, Color c, int j, int a) {            super(f,c,j);            setRotation(a); 	  }  /**   * Instantiate the class   * @param f Font to use.   * @param c Color to use   * @param j Justification   */     public RTextLine(Font f, Color c, int j) {            super(f,c,j); 	  }/********************** Public Methods*******************/  /**   * Copy the state of the parsed Textline into the existing   * object.   * @param t The TextLine to get the state information from.   */     public void copyState(RTextLine t) {            if(t==null) return;            font  = t.getFont();            color = t.getColor();            justification = t.getJustification();            setRotation(t.getRotation(),t.getComponent() );                   if(font == null) return;            fontname  = font.getName();            fontstyle = font.getStyle();            fontsize  = font.getSize();            parse = true;     }  /**   * Set the text rotation angle. Only multiples of 90 degrees   * are accepted   * @param angle The angle to rotate the text   */    public void setRotation(int angle) {                this.angle = ((angle%360)/90)*90;                cos = Math.cos(angle*Math.PI/180.0);        sin = Math.sin(angle*Math.PI/180.0);    }  /**   * Set the Component the text will be drawn into. This is required to rotate   * the text. if it is not set the text will not be rotated.   * @param c The drawing component   */    public void setDrawingComponent( Component c ) {           component = c;    }  /**   * Set the Rotation and the Component that will be drawn into   * @param angle The angle to rotate the text   * @param c The drawing component   */    public void setRotation(int angle, Component c) {        setRotation(angle);        setDrawingComponent(c);    }  /**   * @return the Rotation angle in degrees.   */     public int    getRotation() {                                 return angle;      }  /**   * @return the Component that will receive the text.   */     public Component getComponent() {                                 return component;      }  /**   * The width of the text after it has been rotated.   * @param g Graphics context.   * @return the width of the parsed text after it has been rotated.   */     public int getRWidth(Graphics g) {         parseText(g);         return (int)(Math.abs(cos*width+sin*height) + 0.5);     }  /**   * The height of the text after it has been rotated.   * @param g Graphics context.   * @return the height of the parsed text after it has been rotated.   */     public int getRHeight(Graphics g) {         parseText(g);         return (int)(Math.abs(-sin*width+cos*height) + 0.5);     }  /**   * Return the left edge of the rotated text.    * This is dependent on the justification of the text.   * @param g Graphics context.   * @return the Left edge of the rotated text   */     public int getLeftEdge(Graphics g) {                          return getLeftEdge(g,justification);      }  /**   * Return the right edge of the rotated text.    * This is dependent on the justification of the text.   * @param g Graphics context.   * @return the Right edge of the rotated text   */     public int getRightEdge(Graphics g) {                          return getRightEdge(g,justification);      }  /**   * Return the top edge of the rotated text.    * This is dependent on the justification of the text.   * @param g Graphics context.   * @return the Top edge of the rotated text   */     public int getTopEdge(Graphics g) {                          return getTopEdge(g,justification);      }  /**   * Return the bottom edge of the rotated text.    * This is dependent on the justification of the text.   * @param g Graphics context.   * @return the Bottom edge of the rotated text   */     public int getBottomEdge(Graphics g) {                          return getBottomEdge(g,justification);      }  /**   * Return the left edge of the rotated text.    * @param g Graphics context.   * @param j Text justification   * @return the Left edge of the rotated text   */     public int getLeftEdge(Graphics g, int j) {         parseText(g);         switch (angle) {  	 case 90: case -270:                             return -ascent;	 case 180: case -180:                    if(j == CENTER ) return -width/2;                    else                    if(j == RIGHT )  return  0;   	            else                         return -width;	 case 270: case -90:                    return -descent-leading;         default:                    if(j == CENTER ) return -width/2;                    else                    if(j == RIGHT )  return -width;   	            else                         return 0;         }     }  /**   * Return the right edge of the rotated text.    * @param g Graphics context.   * @param j Text justification   * @return the Right edge of the rotated text   */     public int getRightEdge(Graphics g, int j) {         parseText(g);         switch (angle) {  	 case 90: case -270:                             return descent+leading;	 case 180: case -180:                             if(j == CENTER ) return  width/2;                             else                             if(j == RIGHT )  return  width;   	                     else                         return  0;	 case 270: case -90:                             return ascent;         default:                             if(j == CENTER ) return width/2;                             else                             if(j == RIGHT )  return 0;   	                     else                         return width;         }     }  /**   * Return the top edge of the rotated text.    * @param g Graphics context.   * @param j Text justification   * @return the Top edge of the rotated text   */     public int getTopEdge(Graphics g, int j) {         parseText(g);         switch (angle) {  	   case 90: case -270:                                if(j == CENTER ) return  width/2;                                else                                if(j == RIGHT )  return 0;   	                        else                         return  width;	   case 180: case -180:                                return descent+leading;	   case 270: case -90:                                if(j == CENTER ) return  width/2;                                else                                if(j == RIGHT )  return  width;   	                        else                         return  0;           default:                                return ascent;         }     }  /**   * Return the bottom edge of the rotated text.    * @param g Graphics context.   * @param j Text justification   * @return the Bottom edge of the rotated text   */     public int getBottomEdge(Graphics g, int j) {         parseText(g);         switch (angle) {  	   case 90: case -270:                                if(j == CENTER ) return  -width/2;                                else                                if(j == RIGHT )  return  -width;   	                        else                         return  0;	   case 180: case -180:                                return -ascent;	   case 270: case -90:                                if(j == CENTER ) return  -width/2;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本黄色一区二区| 亚洲精品综合在线| 自拍av一区二区三区| 强制捆绑调教一区二区| 成人97人人超碰人人99| 日韩一区二区在线播放| 亚洲狠狠爱一区二区三区| 东方欧美亚洲色图在线| 3751色影院一区二区三区| 国产精品盗摄一区二区三区| 男女男精品网站| 欧美日韩国产一级片| 亚洲人成小说网站色在线| 岛国av在线一区| 久久亚洲二区三区| 美女视频一区在线观看| 欧美日韩和欧美的一区二区| 亚洲精品乱码久久久久久黑人| 国产成人精品三级麻豆| 久久久精品天堂| 国产尤物一区二区在线| 欧美大片国产精品| 久热成人在线视频| 日韩一区二区三区精品视频| 天天av天天翘天天综合网| 欧美三级在线播放| 亚洲福利视频一区二区| 欧美又粗又大又爽| 夜夜揉揉日日人人青青一国产精品| 91丨porny丨国产入口| 国产精品久久久久aaaa| 粉嫩av一区二区三区在线播放 | 337p日本欧洲亚洲大胆色噜噜| 日韩激情视频在线观看| 欧美猛男gaygay网站| 图片区小说区区亚洲影院| 欧美片网站yy| 精品在线观看视频| 久久亚洲一级片| 成人av小说网| 一区二区三区四区在线免费观看 | 一区二区激情视频| 欧美日韩午夜在线| 麻豆国产一区二区| 国产亚洲视频系列| 91污片在线观看| 亚洲成人黄色小说| 日韩一级成人av| 国产一区欧美二区| 国产精品久久久久毛片软件| 色综合一区二区| 亚洲福利视频一区二区| 日韩美女视频在线| 国产精品性做久久久久久| 中文字幕中文在线不卡住| 欧美综合色免费| 蜜乳av一区二区| 国产精品久久久久久久久久久免费看| av一区二区三区| 午夜精品成人在线视频| 久久久精品2019中文字幕之3| 成人午夜av电影| 天天综合色天天综合| 国产午夜精品美女毛片视频| 91蝌蚪国产九色| 六月婷婷色综合| 亚洲伦理在线免费看| 欧美一区二区三区视频在线观看| 国产大陆a不卡| 婷婷亚洲久悠悠色悠在线播放| 久久综合九色欧美综合狠狠| 91黄视频在线观看| 国产酒店精品激情| 日韩高清不卡在线| 亚洲日本在线视频观看| 精品国产三级a在线观看| 日本高清成人免费播放| 久草中文综合在线| 亚洲一区二区欧美日韩 | 一区二区三区日本| 国产欧美精品一区| 欧美一级在线观看| 日本久久电影网| 成人免费观看av| 免费观看一级欧美片| 综合久久综合久久| 亚洲精品一区二区三区在线观看| 色综合色综合色综合色综合色综合| 精品一区二区三区不卡| 亚洲一区二区三区国产| 亚洲天堂a在线| 欧美国产日韩一二三区| 日韩欧美一区二区在线视频| 色婷婷综合久久久| yourporn久久国产精品| 韩国女主播一区| 看电视剧不卡顿的网站| 日日夜夜一区二区| 亚洲成人一区二区在线观看| 亚洲欧美在线另类| 中文字幕精品一区二区精品绿巨人| 日韩美女一区二区三区四区| 91麻豆精品国产91久久久更新时间| 色天使久久综合网天天| a在线播放不卡| 99久久777色| www.亚洲色图| voyeur盗摄精品| 99久久777色| 91丨porny丨户外露出| 99精品久久久久久| www.av精品| 色综合久久综合中文综合网| av激情综合网| 色妞www精品视频| 一本在线高清不卡dvd| 91啦中文在线观看| 日本国产一区二区| 欧美日韩不卡在线| 日韩一区二区三| 精品日韩一区二区三区免费视频| 欧美一区二区三区播放老司机| 欧美一级片在线| 久久久久久久久久久99999| 久久免费午夜影院| 国产精品人成在线观看免费| 国产精品久久久久久久久久久免费看 | 美腿丝袜亚洲一区| 精品午夜久久福利影院| 春色校园综合激情亚洲| av亚洲精华国产精华精华| 91国产视频在线观看| 9191精品国产综合久久久久久| 91精品综合久久久久久| 精品国产精品一区二区夜夜嗨| 久久蜜桃av一区精品变态类天堂| 国产精品久久久久9999吃药| 成人在线综合网| 精品国产污网站| 亚洲国产精品一区二区久久| 日韩美一区二区三区| 26uuu精品一区二区| 偷拍日韩校园综合在线| 91视频一区二区| 国产日本欧洲亚洲| 久久精品国产亚洲5555| 欧美亚洲一区二区在线| 国产精品二三区| 国产成人免费在线观看| 精品日韩成人av| 日本成人在线网站| 欧美色网站导航| 一区二区三区久久久| 99精品国产99久久久久久白柏| 久久精品水蜜桃av综合天堂| 久久99精品国产91久久来源| 欧美一区二区在线视频| 天天操天天色综合| 欧美日韩国产综合视频在线观看 | 欧美日韩亚洲综合一区| 亚洲码国产岛国毛片在线| 成人免费视频网站在线观看| 国产日韩在线不卡| 国产成人午夜视频| 国产亚洲成av人在线观看导航| 久久成人免费电影| 26uuu色噜噜精品一区二区| 九九热在线视频观看这里只有精品| 欧美高清www午色夜在线视频| 亚洲国产精品久久久久婷婷884| 在线视频国产一区| 亚洲午夜久久久| 欧美日本一区二区三区四区| 午夜激情久久久| 日韩视频一区在线观看| 久久99精品久久久| 国产偷国产偷精品高清尤物| 成人在线视频一区二区| 国产精品久久久久久一区二区三区| av午夜一区麻豆| 亚洲国产欧美在线| 日韩欧美美女一区二区三区| 久久99最新地址| 中文字幕欧美日韩一区| 99精品国产一区二区三区不卡| 亚洲一区二区在线播放相泽| 欧美日韩久久久| 久久99蜜桃精品| 中文字幕视频一区二区三区久| 色哟哟一区二区| 免费成人你懂的| 国产精品乱码一区二区三区软件| 色狠狠av一区二区三区| 日韩成人午夜精品| 久久综合网色—综合色88| www.欧美日韩| 天堂成人国产精品一区| 久久久久国产精品麻豆ai换脸 | 欧美mv日韩mv国产网站app| 国产大陆a不卡|