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

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

?? textline.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
package graph;import java.awt.*;import java.util.*;import java.lang.*;import java.awt.image.*;/*******************************************************************************    Class  TextLine******************************************************************************    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 designed to bundle together all the information required**    to draw short Strings***************************************************************************//** * This class is designed to bundle together all the information required * to draw short Strings with subscripts and superscripts * * @version $Revision: 1.10 $, $Date: 1996/09/05 04:53:27 $ * @author  Leigh Brookshaw */public class TextLine extends Object {/****************** Constants**************/  /**   * Center the Text over the point   */     public final static int CENTER   =    0;  /**   * Position the Text to the Left of the  point   */     public final static int LEFT     =    1;  /**   * Position the Text to the Right of the  point   */     public final static int RIGHT    =    2;  /**   * Format to use when parsing a double   */     public final static int SCIENTIFIC = 1;  /**   * Format to use when parsing a double   */     public final static int ALGEBRAIC = 2;  /*  ** Minimum Point size allowed for script characters  */     final static int MINIMUM_SIZE  =  6;/*************************** Protected Variables***********************/  /**   * Decrease in size of successive script levels   */     protected double script_fraction = 0.8;  /**   * Superscript offset   */     protected double sup_offset      = 0.6;  /**   * Subscript offset   */     protected double sub_offset      = 0.7;  /**   * Font to use for text   */     protected Font font     = null;  /**   * Text color   */     protected Color color   = null;  /**   * Background Color   */     protected Color background   = null;  /**   * The text to display   */     protected String text   = null;  /**   * The logical name of the font to use   */     protected String fontname  = "TimesRoman";  /**   * The font size   */     protected int    fontsize  = 0;  /**   * The font style   */     protected int    fontstyle = Font.PLAIN;  /**   * Text justification. Either CENTER, LEFT or RIGHT   */     protected int    justification = LEFT;  /**   * The width of the text using the current Font   */     protected int width   = 0;  /**   * The ascent using the current font   */     protected int ascent  = 0;  /**   * The maximum ascent using the current font   */     protected int maxAscent  = 0;  /**   * The descent using the current font   */     protected int descent = 0;  /**   * The maximum descent using the current font   */     protected int maxDescent = 0;  /**   * The height using the current font ie ascent+descent+leading   */     protected int height = 0;  /**   * The leading using the current font   */     protected int leading = 0;  /**   * Has the string been parsed! This only needs to be done once   * unless the font is altered.   */     protected boolean parse = true;  /**   * Local graphics context.   */     protected Graphics lg = null;  /**   * The parsed string. Each element in the vector represents   * a change of context in the string ie font change and offset.   */     protected Vector list = new Vector(8,4);/*************************** Constructors***********************/  /**   * Instantiate the class   */     public TextLine() { }  /**   * Instantiate the class.   * @param s String to parse.   */     public TextLine(String s) {             this.text = s;	  }  /**   * Instantiate the class   * @param s String to parse.   * @param f Font to use.   */     public TextLine(String s, Font f) {             this(s);            font      = f;            if(font == null) return;            fontname  = f.getName();            fontstyle = f.getStyle();            fontsize  = f.getSize();	  }  /**   * Instantiate the class   * @param s String to parse.   * @param f Font to use.   * @param c Color to use   * @param j Justification   */     public TextLine(String s, Font f, Color c, int j) {            this(s,f);            color  = c;            justification = j; 	  }  /**   * Instantiate the class   * @param s String to parse.   * @param c Color to use   */     public TextLine(String s, Color c) {             this(s);            color = c;	  }  /**   * Instantiate the class   * @param f Font to use.   * @param c Color to use   * @param j Justification   */     public TextLine(Font f, Color c, int j) {            font      = f;            color  = c;            justification = j;            if(font == null) return;            fontname  = f.getName();            fontstyle = f.getStyle();            fontsize  = f.getSize(); 	  }/********************** Public Methods*******************/  /**   * Create a New Textline object copying the state of the existing   * object into the new one. The state of the class is the color,   * font, and justification ie everything but the string.   */     public TextLine copyState() {            return new TextLine(font,color,justification);     }  /**   * Copy the state of the parsed Textline into the existing   * object.   * @param t The TextLine to get the state information from.   */     public void copyState(TextLine t) {            if(t==null) return;            font  = t.getFont();            color = t.getColor();            justification = t.getJustification();                   if(font == null) return;            fontname  = font.getName();            fontstyle = font.getStyle();            fontsize  = font.getSize();            parse  = true;     }  /**   * Set the Font to use with the class   * @param f Font   */     public void setFont(  Font f   ) {             font      = f;            fontname  = f.getName();            fontstyle = f.getStyle();            fontsize  = f.getSize();            parse = true;      }  /**   * Set the String to use with the class   * @param s String   */     public void setText(  String s ) {             text   = s;            parse = true;      }  /**   * Set the Color to use with the class   * @param c Color   */     public void setColor( Color c  ) {             color = c;      }  /**   * Set the Background Color to use with the class   * @param c Color   */     public void setBackground( Color c  ) {             background = c;      }  /**   * Set the Justification to use with the class   * @param t Justification   */     public void setJustification( int i ) {          switch (i) {          case CENTER:                    justification = CENTER;                    break;          case LEFT: default:                    justification = LEFT;                    break;          case RIGHT:                    justification = RIGHT;                    break;          }	}  /**   * @return the font the class is using   */     public Font   getFont()  {                                 return font;      }  /**   * @return the String the class is using.   */     public String getText()  {                                return text;      }  /**   * @return the Color the class is using.   */     public Color  getColor() {                                return color;      }  /**   * @return the Background Color the class is using.   */     public Color  getBackground() {                                return background;      }  /**   * @return the Justification the class is using.   */     public int    getJustification() {                                 return justification;      }  /**   * @param g Graphics context.   * @return the Fontmetrics the class is using.   */     public FontMetrics getFM(Graphics g) {         if(g==null) return null;         if(font==null) return g.getFontMetrics();         else           return g.getFontMetrics(font);     }  /**   * @param g Graphics context.   * @param ch The character.   * @return the width of the character.   */     public int charWidth(Graphics g, char ch) {         FontMetrics fm;         if(g==null) return 0;         if(font==null) fm =  g.getFontMetrics();         else           fm =  g.getFontMetrics(font);                  return fm.charWidth(ch);     }  /**   * @param g Graphics context.   * @return the width of the parsed text.   */     public int getWidth(Graphics g) {         parseText(g);         return width;     }  /**   * @param g Graphics context.   * @return the height of the parsed text.   */     public int getHeight(Graphics g) {         parseText(g);         return height;     }  /**   * @param g Graphics context.   * @return the ascent of the parsed text.   */     public int getAscent(Graphics g) {         if(g == null) return 0;         parseText(g);         return ascent;     }  /**   * @param g Graphics context.   * @return the maximum ascent of the parsed text.   */     public int getMaxAscent(Graphics g) {         if(g == null) return 0;         parseText(g);         return maxAscent;     }  /**   * @param g Graphics context.   * @return the descent of the parsed text.   */     public int getDescent(Graphics g) {         if(g == null) return 0;         parseText(g);         return descent;           }  /**   * @param g Graphics context.   * @return the maximum descent of the parsed text.   */     public int getMaxDescent(Graphics g) {         if(g == null) return 0;         parseText(g);         return maxDescent;     }  /**   * @param g Graphics context.   * @return the leading of the parsed text.   */     public int getLeading(Graphics g) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产经典欧美精品| 亚洲夂夂婷婷色拍ww47| 中文字幕在线不卡视频| 亚洲一卡二卡三卡四卡| 日韩电影一区二区三区| 国产福利不卡视频| 在线观看亚洲a| 久久影院午夜论| 樱花影视一区二区| 国产在线一区观看| 欧美怡红院视频| 国产三级欧美三级日产三级99| 国产精品理论片| 免费视频一区二区| 一本色道综合亚洲| 精品美女在线播放| 亚洲妇女屁股眼交7| 国产一二三精品| 欧美日韩不卡视频| 国产精品国产成人国产三级| 午夜精品久久久久久久久久久| 国产制服丝袜一区| 欧美久久高跟鞋激| 亚洲人妖av一区二区| 久久av中文字幕片| 欧美自拍偷拍午夜视频| 国产清纯在线一区二区www| 不卡一区在线观看| 91精品国产美女浴室洗澡无遮挡| 综合激情成人伊人| 国产一区二区三区精品视频| 欧美日韩精品综合在线| 国产精品国产精品国产专区不片| 蜜臀精品一区二区三区在线观看| 色又黄又爽网站www久久| 国产日韩av一区二区| 日韩精彩视频在线观看| 欧美在线视频全部完| 国产三级欧美三级日产三级99| 日韩精品成人一区二区三区| 日本高清不卡一区| 国产精品美女久久久久久久| 国产一区三区三区| 日韩一级完整毛片| 亚洲二区在线视频| 91黄色在线观看| 国产精品黄色在线观看| 国产乱人伦偷精品视频免下载| 337p亚洲精品色噜噜| 洋洋av久久久久久久一区| 成人免费视频app| 久久久久久久综合狠狠综合| 久久精品99国产精品| 欧美精品18+| 婷婷国产在线综合| 欧美日韩在线亚洲一区蜜芽| 一级特黄大欧美久久久| 97se亚洲国产综合在线| 亚洲国产高清在线观看视频| 国产麻豆91精品| 久久尤物电影视频在线观看| 蜜桃免费网站一区二区三区| 6080yy午夜一二三区久久| 亚洲不卡一区二区三区| 色94色欧美sute亚洲线路一久| 亚洲欧美一区二区三区孕妇| av电影天堂一区二区在线| 国产精品二三区| 91在线视频在线| 最新中文字幕一区二区三区| 精品免费国产一区二区三区四区| 日韩国产在线观看| 欧美一区二区在线免费观看| 琪琪久久久久日韩精品| 欧美一卡二卡三卡| 免费观看一级特黄欧美大片| 日韩视频免费直播| 奇米一区二区三区| 2021中文字幕一区亚洲| 国产精品亚洲第一区在线暖暖韩国| 久久综合九色综合欧美就去吻 | jvid福利写真一区二区三区| 国产精品久久久久影院亚瑟| caoporn国产精品| 综合分类小说区另类春色亚洲小说欧美 | 一本色道久久综合狠狠躁的推荐 | 欧美人体做爰大胆视频| 午夜私人影院久久久久| 日韩亚洲欧美在线| 国产夫妻精品视频| 亚洲情趣在线观看| 欧美老肥妇做.爰bbww视频| 日韩国产成人精品| 久久精品视频一区| 91免费观看视频| 图片区小说区国产精品视频| 欧美一区二区成人| 国产宾馆实践打屁股91| 综合激情成人伊人| 欧美精选午夜久久久乱码6080| 免费高清在线视频一区·| 精品乱人伦小说| 成人午夜在线视频| 亚洲成人免费视| 欧美精品一区二区三区蜜臀| 99视频精品在线| 日韩国产成人精品| 久久久久国产成人精品亚洲午夜| 91免费在线看| 久色婷婷小香蕉久久| 国产精品福利电影一区二区三区四区| 在线观看亚洲成人| 国产一区二区三区四| 一区二区三区在线视频播放 | 久久99精品久久久久久| 国产精品国产三级国产| 亚洲色图.com| 欧美一级免费大片| 丁香激情综合五月| 日本午夜一区二区| 国产精品麻豆视频| 91精品国产日韩91久久久久久| 成人性生交大合| 奇米四色…亚洲| 亚洲日本免费电影| 337p日本欧洲亚洲大胆精品| 色美美综合视频| 国产精品1区二区.| 日韩电影在线观看电影| 中文字幕视频一区| www国产亚洲精品久久麻豆| 欧美性大战xxxxx久久久| 国产高清久久久久| 日韩福利视频导航| 亚洲精品乱码久久久久久久久 | 成人天堂资源www在线| 婷婷丁香久久五月婷婷| 中文字幕亚洲一区二区av在线| 欧美一区二区三区四区高清| 一本久道久久综合中文字幕 | 亚洲欧美日韩国产手机在线| 欧美成人免费网站| 色狠狠色噜噜噜综合网| 成人免费视频网站在线观看| 久久精品国产秦先生| 亚洲无线码一区二区三区| 国产精品乱码久久久久久| 精品国产一区二区三区久久影院| 欧美日韩综合一区| 99久久精品免费看国产| 国产专区欧美精品| 蜜臀久久99精品久久久画质超高清 | 国产大陆亚洲精品国产| 麻豆国产精品官网| 亚洲成人av一区| 一区二区日韩av| 亚洲人成人一区二区在线观看 | 一本大道综合伊人精品热热| 懂色av中文一区二区三区 | 国产欧美日韩综合精品一区二区| 日韩一二三区视频| 91精品午夜视频| 欧美精品777| 欧美日韩国产在线播放网站| 在线日韩一区二区| 日本高清视频一区二区| 国产精品69毛片高清亚洲| 国内精品久久久久影院薰衣草| 美女尤物国产一区| 奇米精品一区二区三区四区| 亚洲123区在线观看| 亚洲午夜激情网页| 性做久久久久久免费观看| 亚洲一区二区三区四区的| 一区二区三区欧美视频| 夜夜精品浪潮av一区二区三区| 亚洲蜜桃精久久久久久久| 依依成人精品视频| 亚洲一线二线三线久久久| 亚洲综合小说图片| 亚洲v日本v欧美v久久精品| 性做久久久久久免费观看| 五月天一区二区| 在线欧美日韩国产| 在线观看一区不卡| 欧美视频自拍偷拍| 欧美精选在线播放| 欧美一级理论片| 久久久久久久久99精品| 国产女主播一区| 亚洲素人一区二区| 亚洲一区二区三区不卡国产欧美| 亚洲成人免费看| 麻豆成人91精品二区三区| 精品一区二区三区免费播放| 国产乱码精品一品二品| 成人成人成人在线视频| 色婷婷亚洲精品| 日韩视频在线永久播放| 久久久久国产精品免费免费搜索|