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

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

?? buildgraph.java

?? java 作圖的程序
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
package graph;import java.awt.*;import java.util.*;import java.lang.*;import java.io.StreamTokenizer;import java.io.InputStream;import java.io.IOException;import java.net.URL;import java.applet.Applet;/*******************************************************************************    Class  BuildGraph            ******************************************************************************    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 will parse a description file and build the**    plot based on the instructions in the file***************************************************************************//** * This class will parse a description file and build a * plot based on the instructions in the file. * The build Graph class, with attached Axes and DataSets can be accessed * though methods in the class * * @version $Revision: 1.14 $, $Date: 1996/09/06 00:08:49 $ * @author Leigh Brookshaw */public class BuildGraph extends ScanWord {/*************************  Constants*********************//***   Specifiy the integer values associated with keywords. Every integer **   in this list is associated with keyword used in the input file*/     static final int BEGIN     = 256;     static final int GRAPH2D   = 257;     static final int MARKER    = 258;     static final int AXIS      = 259;     static final int URL       = 260;     static final int DATA      = 261;     static final int SIZE      = 262;     static final int COLOR     = 263;     static final int NAME      = 264;     static final int TITLE     = 265;     static final int LABEL     = 266;     static final int FONT      = 267;     static final int STYLE     = 268;     static final int BOTTOM    = 269;     static final int TOP       = 270;     static final int LEFT      = 271;     static final int RIGHT     = 272;     static final int END       = 273;     static final int G2DINT    = 274;     static final int OFF       = 275;     static final int ON        = 276;     static final int ATTACH    = 277;     static final int PLAIN     = 278;     static final int BOLD      = 279;     static final int ITALIC    = 280;     static final int DEBUG     = 281;     static final int GRID      = 282;     static final int ZERO      = 283;     static final int CONTOUR   = 284;     static final int LLEVELS   = 285;     static final int NUMBER    = 286;     static final int CDATA     = 287;     static final int FUNCTION  = 288;     static final int XRANGE    = 289;     static final int YRANGE    = 290;     static final int BACKGROUND = 291;     static final int LOGCONTOURS = 292;     static final int CLABELS    = 293;     static final int SQUARE     = 294;     /***    Specify Internal interger values. These constants are associated**    with objects nolonger in the context of the input file. But have**    been constructed by the program from a number of keyword commands.*/     static final int MARKER_STYLE  = 512;     static final int MARKER_COLOR  = 513;     static final int MARKER_SIZE   = 514;     static final int LABEL_COLOR   = 515;     static final int LABEL_FONT    = 517;     static final int GRID_COLOR    = 520;     static final int GRID_OFF      = 521;     static final int ZERO_COLOR    = 522;     static final int ZERO_OFF      = 523;     static final int MARKER_URL    = 524;     static final int GRID_ON       = 525;     static final int ZERO_ON       = 526;     static final int XMIN          = 527;     static final int XMAX          = 528;     static final int YMIN          = 529;     static final int YMAX          = 530;     static final int XNUMBER       = 531;     static final int YNUMBER       = 532;     static final int LABEL_OFF     = 533;  /**   * The BUILD stack. Everything pushed on this stack has to be    * built from other objects. An example would be a Font, which   * is constructed from Logical name, style and size.   */     protected Stack build = new Stack();  /**   *   The Object stack. All input tokens get pushed onto and    *    popped off this stack.   */     protected Stack object = new Stack();  /**   * The class vector. This contains final class objects that cannot be    * deleted. That is   * we don't want these classes unnattached and collected into the garbage.    * The obvious classes here are the main Graph2D class, the Axes of the plot   * DataSets etc.   */     protected Vector built = new Vector();  /**   * The constructed Graph Object    */     protected Object graph = null;  /**   *   The TextLine containing the title   */     protected TextLine graphtitle = null;  /**   *   The Calling Applet   */     protected Applet applet;  /**   * Debug. If true output copious debug messages. Though unless you know   * what is going on with the code most messages will probably be    * meaningless   */     protected boolean debug = false;       /*  ** This vector contains all the datasets as they are built.  ** the data sets in this lists are then searched so that they can  ** be attached to axis.  */     private Vector datasets = new Vector();/************************ Public Variables********************/  /**   * Current line being parsed   */     public int lineno = 1;  /**   * The current brace level. At the end of the input if all    * braces are matched the level should be back to zero.   */     public int level = 0;  /************************ Constructors*******************/  /**   * Instantiate the class   * @param in The inputstream to be read   * @param ap the driving applet.   */     public BuildGraph( InputStream in, Applet ap ) {        super(in);        applet = ap;/***   Specifiy The Key Words and associate them with the integer Values*/        addKeyWord("{",       BEGIN);        addKeyWord("}",       END);        addKeyWord("graph2d", GRAPH2D);        addKeyWord("g2dint",  G2DINT);        addKeyWord("marker",  MARKER);        addKeyWord("axis",    AXIS);        addKeyWord("url",     URL);        addKeyWord("data",    DATA);        addKeyWord("size",    SIZE);        addKeyWord("color",   COLOR);        addKeyWord("name",    NAME);        addKeyWord("title",   TITLE);        addKeyWord("label",   LABEL);        addKeyWord("font",    FONT);        addKeyWord("style",   STYLE);        addKeyWord("bottom",  BOTTOM);        addKeyWord("top",     TOP);        addKeyWord("left",    LEFT);        addKeyWord("right",   RIGHT);        addKeyWord("on",      ON);        addKeyWord("off",     OFF);        addKeyWord("attach",  ATTACH);        addKeyWord("plain",   PLAIN);        addKeyWord("bold",    BOLD);        addKeyWord("italic",  ITALIC);        addKeyWord("debug",   DEBUG);        addKeyWord("grid",    GRID);        addKeyWord("zero",    ZERO);        addKeyWord("contour", CONTOUR);        addKeyWord("number",  NUMBER);        addKeyWord("cdata",    CDATA);         addKeyWord("function", FUNCTION);        addKeyWord("xrange",   XRANGE);        addKeyWord("yrange",   YRANGE);        addKeyWord("background", BACKGROUND);        addKeyWord("llevels",   LLEVELS);        addKeyWord("square",    SQUARE);        addKeyWord("log",       LOGCONTOURS);             }/************************  Public Methods**********************/  /**   * Get the Graph object that has been built!   */         public Object   getGraph() {                                             return graph;                                      }  /**   * Get the title of the Graph   */         public TextLine getGraphTitle() {                                             return  graphtitle;                                      }  /**   *  Get a vector of all the built Classes.   *  Ie the DataSets, Axis, Graph etc.   *  This can be used by an applet to override anything specified in the   *       input file   */         public Vector   getBuilt()      { return built; }  /**   * This is THE method that parses the input file and constructs the plot.   */     public void parse() {          int token;          Object o;          NamedObject nobj;          boolean cont = true;          while( cont ) {/***           Grab a word from the stream and Do something with it!*/             token = nextWord();             debugMessage("Main",token);             switch (token) {/***                         Turn on the debug messages.*/             case DEBUG:                           debug = !debug;                           break;/***                         Instantiate the Graph class and push it onto**                         the object stack!*/             case CONTOUR:                           if(graph != null) {                              errorAtLine("Graph already defined.");                              return;                           }                           graph = new Contour();                           nobj = new NamedObject(graph, CONTOUR);                           object.push(nobj);                           break;             case G2DINT:                           if(graph != null) {                              errorAtLine("Graph already defined.");                              return;                           }                           graph = new G2Dint();                           nobj = new NamedObject(graph, G2DINT);                           object.push(nobj);                           break;             case GRAPH2D:                           if(graph != null) {                              errorAtLine("Graph already defined.");                              return;                           }                           graph = new Graph2D();                           nobj = new NamedObject(graph, GRAPH2D);                           object.push(nobj);                           break;/***                         End of the file. Exit the loop*/             case TT_EOF:                           cont = false;                           break;/***                         End of Line - Increment the line counter*/	         case TT_EOL:                           lineno++;                           if( lineno == (lineno/10)*10 ) {                            applet.showStatus("Reading input: Line "+lineno);			               }                           break;/***  LEFT, RIGHT, BOTTOM and TOP perform different tasks based on Context.**  Inside an AXIS group they position the axis and are standalone keywords**  Inside a GRAPH context they are followed by an integer and are the **  border widths in pixels.*/             case LEFT: case RIGHT: case TOP: case BOTTOM:                           if( isContext(AXIS) )  {                             nobj = new NamedObject(token);                           } else {                             int toke = nextWord();                             if( toke == TT_NUMBER ) {                                nobj = new NamedObject(                                       new Integer((int)(nval+0.01)), token);                             } else {                                 errorAtLine(                             "In this context LEFT, RIGHT, TOP or BOTTOM should be followed an integer");                                return;                             }                           }                                                      object.push(nobj);                           break;/***                         Build a URL object and push it onto the object stack**                         The URL keyword MUST be followed by a string*/             case URL:                           token = nextWord();                           if( token == STRING ) {                                try {                                      URL url = new URL(applet.getDocumentBase(),sval);                                      nobj = new NamedObject(url,URL);                                } catch(Exception e) {                                     errorAtLine("Failed to build URL!");                                     return;                                }                            } else {                                errorAtLine("URL should be followed by a string");                                return;                           }                           object.push(nobj);                           break;/***                         The ATTACH keyword is followed by the name of the**                         DataSet to be attached. Attach only appears**                         inside an AXIS group.*/             case ATTACH:	                       if( !isContext(AXIS) )  {	                       	   errorAtLine("ATTACH should only appear in AXIS context");	                       	   return;	                       }	                                                  token = nextWord();                           if( token == STRING ) {                                      nobj = new NamedObject(sval,ATTACH);                           } else {                                errorAtLine("ATTACH should be followed by a string");                                return;                           }                           object.push(nobj);                           break;/***                         Marker style, or font style depending on context

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区二区三区日韩| 欧美激情综合五月色丁香小说| 久久爱www久久做| 亚洲丝袜制服诱惑| 国产精品国模大尺度视频| 国产日本欧美一区二区| 久久久久青草大香线综合精品| 日韩免费电影一区| www日韩大片| 国产无一区二区| 中文字幕av一区二区三区高| 国产精品久久二区二区| 成人欧美一区二区三区小说| 亚洲免费在线电影| 有坂深雪av一区二区精品| 伊人一区二区三区| 亚洲一区二区免费视频| 日韩制服丝袜av| 美国三级日本三级久久99| 久久成人麻豆午夜电影| 国产麻豆成人精品| www.99精品| 欧洲精品一区二区| 91麻豆精品国产91久久久 | 久久伊人中文字幕| 国产片一区二区三区| 国产成人8x视频一区二区| 成人av在线一区二区三区| 色综合咪咪久久| 欧美日韩在线播放一区| 欧美一区二区三区免费观看视频| 日韩视频在线永久播放| 久久久www成人免费毛片麻豆 | 亚洲精品视频在线看| 五月婷婷激情综合| 国产一区二区三区电影在线观看| 成人晚上爱看视频| 欧美在线观看禁18| 精品国产乱码久久久久久免费| 国产日韩精品一区二区三区| 亚洲久草在线视频| 青青国产91久久久久久| 国产jizzjizz一区二区| 欧美熟乱第一页| 久久人人爽爽爽人久久久| 日韩美女啊v在线免费观看| 日韩影院精彩在线| 成人国产亚洲欧美成人综合网| 欧美日本视频在线| 国产欧美日韩精品一区| 国产精品欧美一区喷水| 一区二区三区四区av| 色诱视频网站一区| 日韩一二在线观看| 中文字幕一区二区三区在线不卡| 亚洲第一搞黄网站| 成人精品国产免费网站| 欧美高清dvd| 国产精品久久久久久亚洲伦| 蜜桃视频第一区免费观看| av中文字幕不卡| 日韩欧美激情在线| 亚洲女同一区二区| 国产精品996| 欧美一区二区二区| 亚洲精品精品亚洲| 国产成人h网站| 91精品国产品国语在线不卡| 亚洲免费看黄网站| 国产成人av影院| 911国产精品| 中文字幕在线不卡国产视频| 韩国成人精品a∨在线观看| 欧美性大战久久| 国产精品色哟哟网站| 国产一区二区三区四区五区美女 | 国产精品日日摸夜夜摸av| 中文字幕精品—区二区四季| 免费亚洲电影在线| 欧美午夜精品电影| 国产精品电影一区二区三区| 国产九色sp调教91| 日韩精品一区二区三区蜜臀| 婷婷久久综合九色综合伊人色| 99在线热播精品免费| 久久久精品免费免费| 久久99这里只有精品| 欧美美女网站色| 亚洲一区二区免费视频| 色一情一乱一乱一91av| 国产精品久久99| 成人深夜在线观看| 国产目拍亚洲精品99久久精品| 日本不卡1234视频| 欧美一区二区美女| 美女精品一区二区| 日韩欧美在线观看一区二区三区| 亚洲一二三四久久| 91久久线看在观草草青青| 中文字幕亚洲区| av资源站一区| 亚洲区小说区图片区qvod| 91丝袜国产在线播放| 自拍偷拍国产亚洲| 色综合天天综合网天天看片| 亚洲丝袜精品丝袜在线| 91视频国产观看| 成人免费视频在线观看| 一本到高清视频免费精品| 亚洲视频在线一区二区| 在线免费观看不卡av| 亚洲一级在线观看| 欧美精品国产精品| 老司机免费视频一区二区三区| 日韩美一区二区三区| 精品一区二区三区的国产在线播放| 日韩欧美在线网站| 国产精品99久久久| 国产精品国产三级国产有无不卡 | 国产在线国偷精品产拍免费yy| 久久久美女毛片| 99久久免费国产| 亚洲福利视频一区二区| 欧美一区二区三区系列电影| 久久电影网站中文字幕| 国产欧美一区二区精品性| jiyouzz国产精品久久| 亚洲精品菠萝久久久久久久| 欧美精品日韩一本| 国产在线精品一区二区三区不卡 | 欧美剧在线免费观看网站| 午夜在线电影亚洲一区| 日韩欧美区一区二| 国产成人精品三级| 亚洲免费电影在线| 日韩一区二区三区电影| 国产精品一区二区果冻传媒| 亚洲人成人一区二区在线观看| 欧美日韩三级视频| 国产激情一区二区三区四区 | 成人av影院在线| 伊人一区二区三区| 日韩美一区二区三区| 成人av网址在线观看| 亚洲韩国一区二区三区| 精品毛片乱码1区2区3区| 成人免费视频视频在线观看免费| 亚洲在线观看免费| 久久综合色婷婷| 99国产欧美另类久久久精品| 秋霞国产午夜精品免费视频| 国产精品三级电影| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲精选一二三| 日韩精品一区二区三区中文精品| a级高清视频欧美日韩| 蜜臀av性久久久久蜜臀aⅴ| 中文字幕亚洲一区二区av在线| 欧美一区二区三区免费在线看 | 91在线视频在线| 蜜臀av一区二区在线免费观看| 一色桃子久久精品亚洲| 日韩精品中文字幕在线不卡尤物| 99精品一区二区| 国产在线精品一区二区不卡了| 亚洲高清视频在线| 国产精品网站在线播放| 欧美二区三区的天堂| av不卡免费电影| 激情文学综合丁香| 亚洲成人一区二区| 国产精品灌醉下药二区| 欧美va在线播放| 欧美日韩精品是欧美日韩精品| 懂色一区二区三区免费观看| 蜜臀a∨国产成人精品| 夜夜精品浪潮av一区二区三区| 久久精品在这里| 日韩欧美一区二区久久婷婷| 欧洲国产伦久久久久久久| 成人av手机在线观看| 国产精品资源在线观看| 老司机午夜精品| 日日夜夜免费精品视频| 亚洲激情成人在线| 国产精品第13页| 欧美国产精品久久| 久久久美女毛片| 欧美精品一区二区三区四区| 欧美精品三级在线观看| 欧美午夜精品理论片a级按摩| av成人免费在线| 成人免费高清在线| 国产精品白丝jk黑袜喷水| 看电视剧不卡顿的网站| 亚洲一区二区三区激情| 亚洲综合成人网| 一区二区在线电影| 亚洲女与黑人做爰| 综合久久给合久久狠狠狠97色|