ArrowDecorator.java 文件源码

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

项目:raptor-chess-interface 作者:
private void drawDestinationVerticalDown(ChessSquare square,
        Color color, int width, GC gc) {
    int squareSide = square.getSize().x;

    Transform tr = new Transform(gc.getDevice());

    tr.translate(squareSide / 2.0F, 0);
    gc.setTransform(tr);

    tr.rotate(90);
    gc.setTransform(tr);

    gc.setBackground(color);
    gc.fillPolygon(getDestinationPolygon(squareSide, width));

    tr.dispose();
    gc.setTransform(null);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号