⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 framedtexttester.java

📁 书籍"Java_面向事件编程"的附带光盘代码
💻 JAVA
字号:
import objectdraw.*;// allows testing of the FramedText classpublic class FramedTextTester implements FrameIfc {        private FramedText text;        // current size of the text    private int currSize;        public FramedTextTester( String contents, double x, double y,                             double width, double height,                             DrawingCanvas canvas ){                text = new FramedText(contents, x, y, width, height, canvas);        currSize = 13;    }        // calls whichever method will update the contents of the display    // in this case, the size of the text is increased by 1    public void update(){        text.setTextSize( currSize++ );    }        // highlight the display    public void highlight(){        text.highlight();    }        // un-highlight the display    public void unHighlight(){        text.unHighlight();    }    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -