Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to use float font size for Diagram. (Read 2375 times)
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
How to use float font size for Diagram.
Oct 30th, 2009 at 11:20am
Print Post  
Hi,

How can pass float value in

diagram.setFont(new Font("",Font.PLAIN,1));

method.

Thanks.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to use float font size for Diagram.
Reply #1 - Oct 30th, 2009 at 1:32pm
Print Post  
Hi,

Try this:

HashMap<Attribute, Object> attrs = new HashMap<Attribute, Object>();
attrs.put(TextAttribute.SIZE, floatSize);
Font f = new Font(attrs);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Mrini
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 34
Joined: Aug 18th, 2009
Re: How to use float font size for Diagram.
Reply #2 - Nov 2nd, 2009 at 6:29am
Print Post  
Thanks Stoyan,

It works Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint