rotate html formatted text (java) object

6 ビュー (過去 30 日間)
Robert Cumming
Robert Cumming 2012 年 1 月 5 日
Hi,
I am creating a multi line text object which is formatted by html, see sample code below:
d = dialog ( 'windowstyle', 'normal' );
jv=javacomponent('javax.swing.JLabel',[100 100 100 100],d)
set ( jv, 'text', '<HTML><FONT color="RED">line 1<br/>line 2</FONT></html>' )
I cant work out how to rotate the above object by 90 degrees so that the text could be read vertically (for example like a ylabel on a plot) - any help much appreciated.
I'm using r2009b (PC), can upgrade to r2010b but not any more recent.

採用された回答

Robert Cumming
Robert Cumming 2012 年 1 月 19 日
FYI: I have yet to find a javacomponent solution to this, I have instead made a number of different rotated text objects to which I can define each color individually. - as the aim in the original question was to use html to (color) format multi line text

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by