1
A
回答
1
退房this線程,在線程結束。
1
在鏈接的文章中使用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);
}
}
相關問題
- 1. 如何在draw2d中垂直和水平放置標籤圖?
- 2. PyQt繪製一個垂直標籤
- 3. 如何在D3中繪製垂直文本作爲標籤
- 4. 用DO繪製垂直線
- 5. 如何在firefox插件中創建垂直標籤?
- 6. 在直方圖中使用qplot()繪製垂直峯值線R
- 7. 使用XML可繪製的垂直線
- 8. 使用gnuplot垂直繪製數據
- 9. 使用CSS和JQuery繪製垂直線
- 10. 如何在eclipse RCP中使用draw2d在編輯器上繪製一些圖形?
- 11. 垂直標籤欄?
- 12. 垂直hr標籤
- 13. 如何使用draw2d繪製圖表?
- 14. 垂直居中標籤
- 15. BarChart - 垂直中心標籤
- 16. 如何在Swing中繪製垂直線
- 17. 在圖表中繪製垂直線
- 18. 如何在SVG中繪製垂直線
- 19. 如何在gnuplot中繪製垂直線?
- 20. 在Python中垂直繪製函數
- 21. 如何在TeeChart中繪製垂直線?
- 22. 如何在UIScrollView中繪製垂直線
- 23. 如何在ASP.Net中繪製垂直線?
- 24. 在UINavigationBar中垂直居中標籤TitleView
- 25. Qt繪製垂直佈局
- 26. 繪製垂直金字塔
- 27. 繪製垂直文本()
- 28. 繪製垂直虛線
- 29. graphviz垂直繪製圖
- 30. 如何在標籤垂直居中的右側繪製水平線
緩存圖像並僅在處理標籤時處置它會是一種好的做法嗎?哪種方法最適合處理圖像?標籤#的removeNotify? – lolung