EPSGraphics.java 文件源码

java
阅读 28 收藏 0 点赞 0 评论 0

项目:OpenDA 作者:
/** Issue the PostScript showpage command, then write and flush the output.
 *  If the output argument of the constructor was null, then write
 *  to the clipboard.
 */
public void showpage() {
    _buffer.append("showpage\n");
    if (_out != null) {
        PrintWriter output = new PrintWriter(
                new BufferedOutputStream(_out));

        output.println(_buffer.toString());
        output.flush();
    } else {
        // Write to clipboard instead
        // NOTE: This doesn't work at least with jdk 1.3beta
        if (_clipboard == null) {
            _clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
        }
        StringSelection sel = new StringSelection(_buffer.toString());
        _clipboard.setContents(sel, sel);
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号