<test title="Test example" textAsShapes="false"> | |
<description> | |
This is a sample test | |
</description> | |
<javaCode> | |
<![CDATA[ | |
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, | |
RenderingHints.VALUE_ANTIALIAS_ON); | |
// Text | |
g.setPaint(new Color(103, 103, 152)); | |
g.fillRect(10, 10, 200, 50); | |
g.setPaint(Color.white); | |
g.setFont(new Font("SunSansCondensed-Heavy", Font.PLAIN, 20)); | |
g.drawString("Hello Java 2D to SVG", 40, 40); | |
]]> | |
</javaCode> | |
</test> |