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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 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

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
大桥未久av一区二区三区中文| 欧美电影精品一区二区| 在线免费av一区| 欧美老肥妇做.爰bbww| 日韩欧美国产午夜精品| 国产日韩精品一区二区三区在线| 亚洲国产成人在线| 亚欧色一区w666天堂| 激情综合亚洲精品| 懂色av中文一区二区三区| 91搞黄在线观看| 久久久国产综合精品女国产盗摄| 亚洲精品国产一区二区精华液 | 99久久综合狠狠综合久久| 欧美在线色视频| 久久久欧美精品sm网站| 亚洲免费资源在线播放| 国产综合久久久久久鬼色| 色av综合在线| 中文字幕免费一区| 美女性感视频久久| 欧洲国产伦久久久久久久| 久久嫩草精品久久久久| 肉色丝袜一区二区| av不卡在线播放| 欧美一区二区三区系列电影| 国产精品网站在线| 国产精品中文欧美| 欧美一区二区三区四区视频| 亚洲女爱视频在线| 99热精品国产| 日本一区二区高清| 国产乱码一区二区三区| 日韩三区在线观看| 亚洲一区二区av电影| 91麻豆视频网站| 欧美经典一区二区| 国产一区二区三区四区在线观看| 8v天堂国产在线一区二区| 亚洲美女在线一区| 91蜜桃传媒精品久久久一区二区| 精品国产91久久久久久久妲己| 丝袜亚洲另类欧美| 欧美亚洲尤物久久| 亚洲综合在线五月| 色八戒一区二区三区| 亚洲影视资源网| 欧美亚洲一区二区在线观看| 欧美极品美女视频| 成人国产精品免费观看动漫| 亚洲国产成人自拍| 99国产精品国产精品久久| 国产精品久久久久久久久免费丝袜| 国产激情一区二区三区| 久久久噜噜噜久久中文字幕色伊伊| 韩国女主播一区二区三区| 精品日产卡一卡二卡麻豆| 国内精品自线一区二区三区视频| 精品免费国产二区三区| 国产麻豆日韩欧美久久| 中文字幕va一区二区三区| 久久99精品一区二区三区三区| 欧美变态tickle挠乳网站| 精品一区二区成人精品| 久久一日本道色综合| 国产成人av在线影院| 欧美国产日韩亚洲一区| 色综合久久99| 日韩电影在线观看电影| 日韩视频一区在线观看| 国产精品影音先锋| 日韩理论片中文av| 欧美日韩免费一区二区三区| 琪琪久久久久日韩精品| 国产性做久久久久久| 99视频热这里只有精品免费| 亚洲 欧美综合在线网络| 精品日韩一区二区三区免费视频| 成人一区在线看| 亚洲午夜视频在线观看| 2024国产精品视频| 99久久婷婷国产综合精品| 亚洲图片欧美色图| 国产亚洲欧美在线| 欧美亚洲日本一区| 久久国产麻豆精品| 中文字幕中文在线不卡住| 在线播放视频一区| 国产成人av影院| 日韩中文字幕不卡| 国产精品久久久久久亚洲毛片| 欧美日韩五月天| 国产成人免费网站| 五月婷婷综合激情| 中文字幕欧美国产| 91精品国产高清一区二区三区蜜臀| 国产乱子轮精品视频| 亚洲一区欧美一区| 精品精品欲导航| 欧日韩精品视频| 国内精品视频666| 午夜视频在线观看一区| 中文字幕av一区二区三区免费看| 欧美伦理视频网站| 99国产精品国产精品毛片| 国产一二精品视频| 美女网站色91| 亚洲a一区二区| 国产日产欧美一区二区视频| 91精品福利在线一区二区三区 | 亚洲免费观看高清完整 | 久久er精品视频| 亚洲国产美国国产综合一区二区| 国产欧美精品国产国产专区| 精品福利一区二区三区 | 欧美一卡在线观看| 日韩欧美成人午夜| 日韩免费在线观看| 久久影院视频免费| 欧美国产精品一区| 依依成人精品视频| 亚洲gay无套男同| 美女性感视频久久| 国产高清无密码一区二区三区| 国产精品自拍av| 91丨九色porny丨蝌蚪| 日本丰满少妇一区二区三区| 91黄色免费看| 日韩一区二区影院| 欧美激情一区三区| 亚洲综合无码一区二区| 秋霞电影一区二区| 国产成人啪免费观看软件| 91日韩精品一区| 91精品一区二区三区久久久久久 | 成人小视频在线观看| 91一区一区三区| 欧美精品99久久久**| 久久久久久亚洲综合影院红桃| 国产精品色哟哟网站| 亚洲尤物在线视频观看| 久久国产乱子精品免费女| 成人国产精品免费| 欧美色综合影院| 久久夜色精品一区| 亚洲在线观看免费| 国产一区二区影院| 在线看不卡av| 亚洲精品一区二区三区福利| 亚洲欧洲性图库| 日本中文字幕不卡| 成人激情校园春色| 制服丝袜国产精品| 欧美乱妇15p| 久久综合九色综合97婷婷| 亚洲国产成人一区二区三区| 一区二区三区欧美日| 另类欧美日韩国产在线| 91免费小视频| 日韩三级伦理片妻子的秘密按摩| 国产精品无人区| 免费观看一级特黄欧美大片| 99久久婷婷国产综合精品电影| 欧美日韩成人综合在线一区二区| 国产亚洲一二三区| 日韩高清不卡一区| 在线观看区一区二| 日本一区免费视频| 久久99国产精品久久99| 欧美亚洲一区三区| 最新国产成人在线观看| 毛片一区二区三区| 欧美日韩国产一级二级| 国产精品久久久久国产精品日日| 日本少妇一区二区| 欧美色欧美亚洲另类二区| 综合自拍亚洲综合图不卡区| 国产中文字幕一区| 欧美精品123区| 性感美女极品91精品| 国产调教视频一区| 一区二区三区中文字幕在线观看| 蜜臀久久99精品久久久久久9| 日本韩国一区二区三区视频| 国产精品美女久久久久aⅴ国产馆| 久久激情五月婷婷| 欧美裸体一区二区三区| 亚洲国产欧美在线| 在线观看一区日韩| 亚洲自拍偷拍麻豆| 在线观看三级视频欧美| 亚洲欧美日韩国产另类专区| 成人福利视频在线| 国产精品无人区| 不卡的看片网站| 中文字幕亚洲精品在线观看| 99精品视频在线播放观看| 亚洲人亚洲人成电影网站色| 99综合电影在线视频| 椎名由奈av一区二区三区|