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

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

?? transformpanel.java

?? java算法大全
?? 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			}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美浪妇xxxx高跟鞋交| 亚洲一区二区三区视频在线| 亚洲精品中文字幕在线观看| 日韩黄色小视频| 99久久精品情趣| wwwwww.欧美系列| 五月婷婷色综合| 99在线精品免费| 久久久久久综合| 免费欧美在线视频| 欧美性猛交xxxxxx富婆| 国产精品久久久久久久久免费樱桃| 日本特黄久久久高潮| 欧美最猛黑人xxxxx猛交| 国产精品三级av| 成人午夜视频免费看| 精品国产青草久久久久福利| 亚洲一区二区美女| 日本精品视频一区二区| 国产精品久久久久久亚洲毛片 | www.亚洲人| 亚洲精品一线二线三线无人区| 午夜精品福利一区二区三区av | 一本一道波多野结衣一区二区| 国产日产精品1区| 国产激情一区二区三区| 精品国产一区二区三区不卡| 青娱乐精品在线视频| 欧美一区二区三区四区在线观看| 一区二区在线看| 在线亚洲一区观看| 亚洲美女免费在线| 欧美在线观看视频在线| 污片在线观看一区二区| 欧美日韩高清一区二区三区| 亚洲第一会所有码转帖| 欧美日韩和欧美的一区二区| 日韩中文字幕麻豆| 日韩天堂在线观看| 国产在线精品一区二区三区不卡| 26uuu精品一区二区三区四区在线| 精品一二三四区| 国产婷婷精品av在线| 不卡高清视频专区| 亚洲欧美日韩一区二区| 欧美亚日韩国产aⅴ精品中极品| 日韩一区中文字幕| 欧美伊人精品成人久久综合97| 一级中文字幕一区二区| 欧美高清精品3d| 激情成人综合网| 中文字幕一区二区三区色视频| 色婷婷久久久综合中文字幕| 天天免费综合色| 精品国产伦一区二区三区观看方式 | 国产精品乱码一区二区三区软件 | 一区二区视频在线| 欧美视频一区二区在线观看| 免费的成人av| 国产精品三级电影| 欧美日韩在线精品一区二区三区激情| 亚洲成av人综合在线观看| 精品精品国产高清a毛片牛牛| 国产99久久久精品| 午夜国产精品一区| 久久久久88色偷偷免费| 欧美主播一区二区三区美女| 麻豆久久久久久久| 亚洲黄色免费网站| 精品国产成人系列| 91精彩视频在线观看| 久久成人免费电影| 曰韩精品一区二区| 久久蜜桃一区二区| 欧美影视一区在线| 国产成人亚洲精品青草天美| 亚洲va国产天堂va久久en| 国产天堂亚洲国产碰碰| 制服丝袜亚洲播放| 成年人国产精品| 日本不卡1234视频| 一区二区免费视频| 国产人成一区二区三区影院| 欧美精品一二三四| 色综合天天综合网天天狠天天| 国产综合成人久久大片91| 亚洲国产一区二区三区| 中文字幕成人av| 精品国产91久久久久久久妲己 | 在线亚洲精品福利网址导航| 黑人巨大精品欧美一区| 午夜激情综合网| 亚洲美女精品一区| 亚洲国产精品成人综合 | 一区二区三区四区国产精品| 欧美r级在线观看| 4hu四虎永久在线影院成人| 色综合一区二区| 不卡视频在线看| 成人一级黄色片| 国产成人无遮挡在线视频| 日韩av一区二区三区四区| 亚洲 欧美综合在线网络| 亚洲欧洲精品天堂一级| 中文字幕在线不卡国产视频| 国产欧美日韩精品在线| 久久精品人人做人人爽人人| www国产成人| 欧美一区二区三区婷婷月色| 欧美午夜片在线看| 欧美视频三区在线播放| 在线观看亚洲精品| 色久优优欧美色久优优| 日本韩国欧美在线| 日本高清免费不卡视频| 91网址在线看| 在线看日本不卡| 欧美日韩精品电影| 欧美伦理视频网站| 日韩欧美综合一区| 欧美成人三级在线| 久久精品夜色噜噜亚洲aⅴ| 久久久精品人体av艺术| 国产人伦精品一区二区| 亚洲欧美中日韩| 亚洲国产日韩精品| 日日夜夜精品免费视频| 久久99精品久久久久婷婷| 国产综合久久久久影院| 国产精品69久久久久水密桃| 成人综合婷婷国产精品久久蜜臀 | 美腿丝袜亚洲综合| 激情伊人五月天久久综合| 国产精品亚洲一区二区三区妖精 | 亚洲1区2区3区视频| 日韩福利视频网| 国产一区二区美女| 成人动漫一区二区| 在线中文字幕不卡| 日韩亚洲欧美综合| 亚洲国产成人一区二区三区| 一区二区三区电影在线播| 亚洲精品视频免费看| 午夜久久电影网| 免费看黄色91| 99视频一区二区三区| 7777精品久久久大香线蕉| www激情久久| 亚洲一区二区三区四区五区黄 | 91久久精品日日躁夜夜躁欧美| 欧美日韩亚洲综合在线| 精品国产成人在线影院| 日韩美女久久久| 麻豆精品国产91久久久久久| 国产白丝网站精品污在线入口| 色先锋久久av资源部| 精品国产乱码久久久久久夜甘婷婷| 国产精品―色哟哟| 日本女优在线视频一区二区| 国产成人综合在线观看| 欧美性猛交一区二区三区精品| 久久亚洲欧美国产精品乐播| 亚洲国产精品尤物yw在线观看| 国内精品久久久久影院薰衣草| 不卡的av电影在线观看| 欧美一级片在线| 亚洲柠檬福利资源导航| 国产精品99久久久久久有的能看| 欧美色图免费看| **欧美大码日韩| 国产一区91精品张津瑜| 欧美酷刑日本凌虐凌虐| 亚洲欧美色综合| 成人涩涩免费视频| 日韩美女天天操| 天堂影院一区二区| 91免费在线视频观看| 欧美激情资源网| 韩国av一区二区三区四区| 欧美丰满美乳xxx高潮www| 亚洲人成精品久久久久| 懂色av一区二区三区蜜臀| 91精品国产一区二区人妖| 亚洲免费在线观看| 91在线精品一区二区| 亚洲国产成人自拍| 国产.欧美.日韩| 久久久不卡影院| 国产主播一区二区三区| 欧美成人性战久久| 免费在线观看一区| 欧美一区二区视频在线观看| 丝袜亚洲另类欧美| 在线播放/欧美激情| 婷婷中文字幕一区三区| 欧美年轻男男videosbes| 亚洲成av人片在线| 欧美色国产精品| 日日噜噜夜夜狠狠视频欧美人| 欧美日韩中字一区|