XmlViewer.java 文件源码

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

项目:TranskribusSwtGui 作者:
private void setLineBullet() {
        StyleRange style = new StyleRange();
        style.metrics = new GlyphMetrics(0, 0, Integer.toString(text.getLineCount() + 1).length() * 12);
        style.background = Colors.getSystemColor(SWT.COLOR_GRAY);
        Bullet bullet = new Bullet(ST.BULLET_NUMBER, style);
        text.setLineBullet(0, text.getLineCount(), bullet);
//      text.setLineIndent(0, text.getLineCount(), 25);
//      text.setLineAlignment(0, text.getLineCount(), textAlignment);
//      text.setLineWrapIndent(0, text.getLineCount(), 25+style.metrics.width);     
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号