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

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

?? transformpanel.java

?? 經(jīng) 典 的 數(shù) 據(jù) 結(jié) 構(gòu)
?? JAVA
字號:
/* TransformPanel class */import java.util.StringTokenizer;import java.awt.*;import java.io.*;import java.net.*;/** * Text panel to display the source code of the animation algorithm. * This class is initialized in the <code>TextFrame</code> class * construction during the main frame initialization. * Each line of the source code starting with <code>/*-</code> will be ignored. * The line after <code>/*-------</code> is considered as the first line of * text being displayed. * The line before <code>//-</code> is the last line of source code being * displayed. The text after this line will no longer be parsed. * See also <A href="AlgThread.html"><code>AlgThread</code></A> for special * symbol used in displaying source code in text panel. * <p> * This method should NOT have to be called manually. * @see TextFrame * @see AlgAnimFrame */public class TransformPanel extends Panel {    String file_name;    private boolean highlighted;    private int width = 300;    private int height = 400;		private BlockDiagram bd;    private Dimension offscreensize = null;    private Image offscreen = null;    private Graphics offGraphics = null;    private static final int dx = 2;    private Font font;    private int font_size = 10;    private int line_space = 14;    private int start;    private void SetFont( Graphics g ) {        FontMetrics fm;        this.setBackground( Color.white );        font = new Font( "Dialog", Font.PLAIN, font_size );        fm = g.getFontMetrics( font );        line_space = fm.getHeight() + 1;        g.setFont( font );    }    private int ReadSource( DataInputStream ds ) {        int cnt = 0;        StringBuffer sb;                        try {            while( true ) {                String s;                if ( (s = ds.readLine()) != null ) {                   // if ( s.startsWith( start_sign ) ) {                   //     n_lines = 0;                   //     cnt = 0;                   // } else if (s.trim().startsWith(ignore_trigger)) {                   //     continue;                   // } else if (s.startsWith(end_sign)) {                   //     break;                   // } else {                   //     sb = trim( s );                   //     /* Copy the buffer into a string */                   //     lines[cnt++] = expandtabs( sb );                   // }                 } else                    break;            }        } catch( IOException e ) {}        return cnt;    }		public TransformPanel( int number, boolean before ) {			System.out.println("TransformPanel(" + number + "," +                                              before + ")" );			bd = new BlockDiagram( number, before );			if ( bd == null ) {				System.out.println("null blockdiagram");				}			highlighted = false;						}    /**     * Creates a text panel based on the source file specified in the String     * passed in as the parameter.     * @param fn Filename of the source code     */    public TransformPanel( String fn ) {        FileInputStream instream;        file_name = fn;        File source = new File( file_name );                if ( source.exists() && source.isFile() ) {            try {                // lines = new String[ max_lines ];                instream = new FileInputStream( source );            } catch( IOException e ) {}            /* Read the file */        } else            System.out.println("Cant access [" + file_name + "]");    }            /**     * Creates a text frame based on the URL specified by     * the parameter.     * @param sourceURL URL of the source code     * @see URL     */    public TransformPanel( URL sourceURL) {        InputStream source = null;        StringBuffer sb;        // n_lines = 0;				// start = 0;        // file_name = sourceURL.toString();				try {	   			 source = sourceURL.openStream();				} catch( IOException e ) {       	}        if ( source != null ) {          //   lines = new String[ max_lines ];           //  /* Read the file */           //  DataInputStream ds = new DataInputStream( source );           //  n_lines = ReadSource( ds );        }                                 // highlight = -1;            }    public void Highlight( int h ) {        highlighted = h == 0;        this.repaint();    }    /**     * Returns the initial dimension of the text panel. This method     * will be called by the layout manager during the corresponding     * frame initialization.     */    public Dimension getPreferredSize() {        // int h = line_space * (n_lines + 1) - start * line_space;        int h = 200;        return new Dimension( width, h );    }        /**     * Return the minimum allowed dimension of the text panel.     */    public Dimension getMinimumSize() {        // int h = line_space * (n_lines + 1) - start * line_space;        int h = 140;        return new Dimension( width, h );    }        /**     * This method is invoked when the <code>repaint()</code> method of the     * parent class is called. This method eliminates flashing during animation.     */    public void update(Graphics g) {        Dimension d = size();        if (d.width < 1 || d.height < 1)            return;        if ((offscreen == null) || (d.width != offscreensize.width) ||                (d.height != offscreensize.height)) {            offscreen = createImage(d.width, d.height);            offscreensize = d;            offGraphics = offscreen.getGraphics();        }        offGraphics.setColor(Color.white);        offGraphics.fillRect(0, 0, d.width, d.height);        paint(offGraphics);        g.drawImage(offscreen, 0, 0, null);    }        /**     * Set the first line to display.     * @param start First line to display     * @see TransformPanel#getStart     */    // public void setStart(int start) {		//		this.start = start;    // }    /**     * This method print the source code starting from the first line specified     * by <code>setStart(int)</code> on the text panel.     * @param g Graphical context of the text panel.     */    public void paint( Graphics g ) {        int i, x, y;        SetFont( g );        x = dx; y = line_space;        g.setColor( Color.black );        bd.draw( g );    }    /**     * Get the number of lines of source code to be displayed on the text panel.     * @return The number of lines of source code to be displayed on the      *		text frame.     */    public int getNumLines() {	return 0;    	}    /**     * Get the number of pixels used by each line of text.     * @return The number of pixels allocated for each line of text.     */    public int getLineSpace() {			return line_space;    }    /**     * Get the first line of the source code that will be displayed.     * This attribute is used to couple the text panel to a vertical scrollbar     * in the TextFrame.      * @return The first line of source code that will be displayed.     *      */    public int getStart() {			return start;    }		public void setStart( int s ) {			// not relevant to TransformPanel			}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜臀国产一区二区三区在线播放| 福利一区二区在线观看| 图片区日韩欧美亚洲| 成人免费看黄yyy456| 国产亚洲欧洲997久久综合| 国产99久久精品| 亚洲欧美日韩精品久久久久| 欧美亚洲丝袜传媒另类| 美女一区二区久久| 欧美sm美女调教| 国产一区二区不卡老阿姨| 久久久国产精品午夜一区ai换脸| 国产呦萝稀缺另类资源| 国产精品久久午夜夜伦鲁鲁| 日本精品一区二区三区高清| 婷婷六月综合亚洲| 精品国产乱码久久久久久1区2区| 成人午夜视频在线观看| 亚洲婷婷国产精品电影人久久| 欧美色爱综合网| 国产一区二区在线电影| 国产精品美女www爽爽爽| 欧美性生交片4| 久久99国产精品免费网站| 欧美电影免费观看高清完整版在| 国产另类ts人妖一区二区| 成人一区二区视频| 中文字幕的久久| 欧美少妇一区二区| 国产一区二区三区最好精华液| 亚洲色图都市小说| 日韩视频永久免费| aa级大片欧美| 久久66热re国产| 一级精品视频在线观看宜春院 | 日韩国产在线一| 久久夜色精品国产噜噜av| 色美美综合视频| 国产一区二区三区四区在线观看 | 在线免费av一区| 精品一区二区三区免费播放| 中文字幕亚洲电影| 日韩三级免费观看| 日本久久电影网| 国产91精品欧美| 另类人妖一区二区av| 亚洲欧洲日本在线| 久久综合九色综合97_久久久| 欧美在线免费观看亚洲| 国产精品一区二区视频| 亚洲电影一级黄| 亚洲精品久久嫩草网站秘色| 亚洲国产精品黑人久久久| 在线不卡欧美精品一区二区三区| 色哟哟一区二区三区| 91在线小视频| 亚洲一区在线观看免费 | 91麻豆精品国产91久久久久久 | 色吧成人激情小说| 国产精品18久久久久久久久久久久| 一区二区三区四区激情| 欧美激情在线看| 久久综合久久综合久久| 欧美午夜一区二区三区免费大片| 99精品热视频| 国产99久久久国产精品 | 波多野结衣视频一区| 精品无人区卡一卡二卡三乱码免费卡| 亚洲国产欧美日韩另类综合| 中文字幕亚洲一区二区va在线| 久久久久久久综合狠狠综合| 欧美不卡一二三| 亚洲精品一区二区三区香蕉| 亚洲卡通欧美制服中文| 日韩视频一区在线观看| 久久免费看少妇高潮| 精品久久久久久久人人人人传媒 | 色综合天天综合给合国产| 蜜桃视频在线观看一区二区| 午夜一区二区三区视频| 亚洲第一搞黄网站| 亚洲18女电影在线观看| 图片区小说区区亚洲影院| 午夜精品一区在线观看| 天堂午夜影视日韩欧美一区二区| 亚洲第一综合色| 青青草国产成人av片免费| 蜜臀av一区二区三区| 国产老女人精品毛片久久| 高清成人免费视频| 97精品视频在线观看自产线路二| 99r国产精品| 欧洲av在线精品| 白白色 亚洲乱淫| 国产成人av电影| 国产精品一区二区久激情瑜伽| 国产高清在线观看免费不卡| 国产成人亚洲综合a∨婷婷图片| 国产91精品欧美| 91麻豆国产福利精品| 欧美日韩性生活| 日韩欧美国产综合一区 | 欧美日韩和欧美的一区二区| 欧美精品色综合| 2020国产精品久久精品美国| 欧美激情一区二区三区在线| 亚洲精品视频在线观看网站| 婷婷久久综合九色综合绿巨人 | 成人性生交大片| 91色综合久久久久婷婷| 欧美日产国产精品| 亚洲精品在线免费观看视频| 国产精品乱码人人做人人爱| 亚洲一区二区在线免费观看视频| 久久99精品久久久久婷婷| 国产成人福利片| 欧美午夜精品久久久久久超碰| 日韩精品专区在线| 亚洲欧美另类小说| 久久精品国产99国产| 99久久久久久| 日韩一级大片在线| 综合久久给合久久狠狠狠97色 | 国产成人av一区二区三区在线 | 精品久久久久久久久久久久包黑料| 日韩美女视频一区二区在线观看| 久久久精品2019中文字幕之3| 一区二区欧美视频| 久久99国产精品久久99| 91免费在线视频观看| 精品国产乱码久久久久久夜甘婷婷 | 国产日韩欧美高清在线| 午夜久久久影院| a4yy欧美一区二区三区| 欧美一卡二卡三卡| 亚洲欧美影音先锋| 激情伊人五月天久久综合| 在线观看欧美黄色| 国产精品乱人伦| 91精品国产综合久久国产大片| 国产精品高潮呻吟久久| 日韩一区精品视频| 丁香另类激情小说| 精品国产91洋老外米糕| 一区二区三区精品视频| 国产成人av一区二区三区在线观看| 91精品一区二区三区在线观看| 亚洲人成7777| 成人免费av在线| 国产欧美日本一区二区三区| 美女www一区二区| 在线不卡一区二区| 亚洲va在线va天堂| 欧美视频在线一区| 亚洲欧美一区二区三区极速播放 | 日韩三级免费观看| 视频一区二区欧美| 欧美自拍偷拍午夜视频| 一区二区在线看| 91国偷自产一区二区开放时间 | 日本成人中文字幕| 欧美少妇性性性| 亚洲午夜久久久久| 色噜噜狠狠一区二区三区果冻| 中文字幕在线不卡视频| 成人av影视在线观看| 亚洲国产精品v| 懂色av一区二区三区蜜臀| 久久蜜桃av一区二区天堂| 韩国女主播一区| 久久久久高清精品| 成人精品国产福利| 综合av第一页| 在线观看视频一区| 亚洲国产色一区| 欧美丰满嫩嫩电影| 美女视频一区二区三区| 精品少妇一区二区三区| 精品夜夜嗨av一区二区三区| 26uuu色噜噜精品一区| 国产一区二区伦理片| 国产欧美精品日韩区二区麻豆天美| 丰满亚洲少妇av| 亚洲欧洲日产国产综合网| 日本韩国精品在线| 亚洲福利视频一区| 欧美va在线播放| av在线不卡免费看| 亚洲一区视频在线| 欧美一区二区网站| 国产精品一区二区视频| 亚洲三级视频在线观看| 欧美少妇bbb| 久久99精品久久久| 亚洲国产精品ⅴa在线观看| 精品女同一区二区| 成人免费看视频| 天天影视涩香欲综合网| 2021中文字幕一区亚洲| 9i看片成人免费高清|