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

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

?? rtextline.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
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
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久伊人网影院| 亚洲亚洲人成综合网络| 欧美巨大另类极品videosbest | 中文在线一区二区| 日韩免费高清视频| 9191成人精品久久| 另类小说综合欧美亚洲| 国产ts人妖一区二区| 色婷婷综合在线| 日韩一区二区免费电影| 久久精品男人的天堂| 樱花草国产18久久久久| 久久精品久久99精品久久| 大尺度一区二区| 欧美人妇做爰xxxⅹ性高电影| 精品国产免费久久| 一区二区在线观看视频| 久久精品国产精品青草| 91免费观看视频在线| 日韩亚洲电影在线| 日韩美女久久久| 经典三级视频一区| 色999日韩国产欧美一区二区| 日韩欧美国产一区在线观看| 亚洲少妇30p| 韩国三级电影一区二区| 欧美性大战久久久| 国产精品女上位| 蜜臀av亚洲一区中文字幕| 91色porny蝌蚪| 精品av综合导航| 91福利社在线观看| 欧美激情一二三区| 99r精品视频| www久久精品| 日本欧美大码aⅴ在线播放| 欧美日韩免费在线视频| 国产精品成人在线观看| 99精品欧美一区| 欧美大片一区二区| 国产精品久久久久婷婷| 国产中文字幕精品| 精品一区二区免费| heyzo一本久久综合| 日韩精品中午字幕| 亚洲午夜一二三区视频| 91在线观看美女| 日本一区二区综合亚洲| 九九国产精品视频| 91超碰这里只有精品国产| 一区二区三区国产豹纹内裤在线 | 欧美在线一区二区三区| 精品国产伦一区二区三区观看方式| 亚洲自拍偷拍综合| 色综合天天天天做夜夜夜夜做| 久久久不卡网国产精品一区| 久久精品国产精品亚洲综合| 日韩亚洲电影在线| 日本欧美一区二区| 欧美精品在线视频| 婷婷久久综合九色国产成人 | 国产精品一区二区视频| 欧美影院午夜播放| 日韩中文欧美在线| 日韩精品最新网址| 国产精品一级片| 中文字幕av资源一区| 日本乱人伦一区| 欧美激情一区二区三区不卡 | 国产老妇另类xxxxx| 在线不卡中文字幕| 肉肉av福利一精品导航| 欧美日韩一本到| 成人avav影音| 国产精品亚洲午夜一区二区三区| 国产校园另类小说区| 日韩一区二区不卡| 色呦呦一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了| 欧美区视频在线观看| 国产在线视频不卡二| 日本一区二区免费在线观看视频 | 91在线视频18| 一本大道久久精品懂色aⅴ| 自拍偷拍欧美精品| 91视频国产观看| 亚洲一区二区三区在线播放| 欧美色图一区二区三区| 调教+趴+乳夹+国产+精品| 欧美一区二区黄色| 国产一区二区三区免费看| 国产日韩欧美a| 一本大道综合伊人精品热热| 亚洲福利电影网| 日韩欧美卡一卡二| 国产99久久精品| 亚洲乱码日产精品bd| 欧美吻胸吃奶大尺度电影| 日韩国产精品久久| 久久综合久久综合九色| thepron国产精品| 亚洲六月丁香色婷婷综合久久 | 国产女人18水真多18精品一级做| 欧美一级专区免费大片| 国产一区二区三区香蕉| 国产精品夫妻自拍| 精品视频在线视频| 国内精品久久久久影院薰衣草| 国产精品传媒视频| 欧美高清视频在线高清观看mv色露露十八| 久色婷婷小香蕉久久| 中文一区二区完整视频在线观看| 一本久道久久综合中文字幕| 日韩高清不卡在线| 日本一区二区电影| 欧美性生活大片视频| 国内精品在线播放| 18欧美亚洲精品| 3d动漫精品啪啪一区二区竹菊| 国产成人啪免费观看软件| 一区二区三区91| 久久综合狠狠综合久久综合88 | 亚洲美女区一区| 日韩午夜激情电影| 亚洲婷婷综合色高清在线| 国产精品白丝在线| 亚洲成a人在线观看| 日韩激情在线观看| 激情深爱一区二区| 高清不卡一二三区| av福利精品导航| 欧美日韩综合色| 欧美mv和日韩mv国产网站| 欧美激情中文字幕| 一区二区三区在线观看视频| 国产一区二区三区观看| 国产在线精品不卡| 亚洲夂夂婷婷色拍ww47| 国产女同性恋一区二区| 欧美丰满美乳xxx高潮www| 欧美高清dvd| 色欧美88888久久久久久影院| 国产一区在线观看视频| 亚洲成人先锋电影| 国产精品久久久爽爽爽麻豆色哟哟| 91精品在线观看入口| 91视频免费看| 国产成人免费在线观看| 捆绑调教一区二区三区| 亚洲福利视频一区二区| 亚洲欧美国产高清| 国产拍欧美日韩视频二区| 欧美zozo另类异族| 欧美日韩成人在线一区| 91女人视频在线观看| 国产成人av影院| 狠狠色伊人亚洲综合成人| 天天综合色天天| 亚洲国产wwwccc36天堂| 亚洲欧美区自拍先锋| 中文子幕无线码一区tr| 久久久www免费人成精品| 精品国产a毛片| 欧美一级欧美三级| 欧美欧美欧美欧美| 欧美天堂亚洲电影院在线播放| 色诱视频网站一区| 99久久777色| 91在线丨porny丨国产| 丁香六月综合激情| 国产一区二区看久久| 久久99精品国产麻豆婷婷| 日本不卡高清视频| 日日夜夜免费精品| 日日骚欧美日韩| 天天色天天操综合| 偷拍亚洲欧洲综合| 婷婷开心激情综合| 蜜臀av在线播放一区二区三区| 日韩av高清在线观看| 麻豆精品一区二区三区| 免费久久99精品国产| 免费一区二区视频| 久热成人在线视频| 国产另类ts人妖一区二区| 国产精品一区一区三区| 国产成人免费在线| 成人毛片视频在线观看| 国产aⅴ综合色| www.在线欧美| 91亚洲永久精品| 欧美日韩综合色| 欧美日韩免费电影| 欧美欧美欧美欧美首页| 日韩欧美综合一区| 欧美v亚洲v综合ⅴ国产v| 国产午夜一区二区三区| 中文字幕不卡在线观看| 1024精品合集| 亚洲成av人片一区二区梦乃|