Search found 4 matches
- Wed Jan 18, 2006 5:03 pm
- Forum: JFreeChart
- Topic: Font style : can JFreeChart display underlined font ?
- Replies: 9
- Views: 14513
Here is a better solution : change if (useDrawRotatedStringWorkaround) { (...) } else g2.drawString(text, textX, textY); to if (useDrawRotatedStringWorkaround) { (...) } else { AttributedString as = new AttributedString(text, g2.getFont().getAttributes()); g2.drawString(as.getIterator(), textX, text...
- Wed Jan 18, 2006 4:21 pm
- Forum: JFreeChart
- Topic: Font style : can JFreeChart display underlined font ?
- Replies: 9
- Views: 14513
Ok, I made a quick-and-dirty solution that works : in TextUtilities.java, drawRotatedString method (line 539), I modified the code : if (useDrawRotatedStringWorkaround) { (...) } else g2.drawString(text, textX, textY); to : if (useDrawRotatedStringWorkaround) { (...) } else { if (g2.getFont().getAtt...
- Wed Jan 18, 2006 10:26 am
- Forum: JFreeChart
- Topic: Error while running the program
- Replies: 2
- Views: 2962
- Wed Jan 18, 2006 9:57 am
- Forum: JFreeChart
- Topic: Font style : can JFreeChart display underlined font ?
- Replies: 9
- Views: 14513
Font style : can JFreeChart display underlined font ?
Hello, I need to underline the title of my charts, so I tried the following code : Map m = new HashMap(); m.put(TextAttribute.SIZE, new Float(30)); m.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON); Font font = new Font(m); myGraph.setTitleFont(font); but it doesn't seem to work. The font h...