私はgefを使用してEclipseプラグインを実行しています。縦のラベルを描く方法を知っている人はいますか?
よろしく、Kyriakos Georgiou
私はgefを使用してEclipseプラグインを実行しています。縦のラベルを描く方法を知っている人はいますか?
よろしく、Kyriakos Georgiou
スレッドの最後にあるこのスレッドをチェックしてください。
リンクされた投稿のようにImageUtilitiesを使用するとうまくいきました。ラベルでの使用方法は次のとおりです。
@Override
protected void paintFigure(Graphics graphics) {
if (vertical) {
Image image = ImageUtilities.createRotatedImageOfString(getSubStringText(), getFont(), getForegroundColor(), getBackgroundColor());
graphics.drawImage(image, new Point(getTextLocation()).translate(getLocation()));
image.dispose();
} else {
super.paintFigure(graphics);
}
}