lt.monarch.chart.util
Class FormulaPainter

java.lang.Object
  extended by lt.monarch.chart.util.FormulaPainter

public class FormulaPainter
extends java.lang.Object

Paints formula as an image


Constructor Summary
Constructor and Description
FormulaPainter()
           
 
Method Summary
Modifier and Type Method and Description
static java.awt.image.BufferedImage getImage(java.lang.String formulaText, double rotationAngle, java.awt.Color color, int fontSize)
          Gets image of the specified formula
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormulaPainter

public FormulaPainter()
Method Detail

getImage

public static java.awt.image.BufferedImage getImage(java.lang.String formulaText,
                                                    double rotationAngle,
                                                    java.awt.Color color,
                                                    int fontSize)
Gets image of the specified formula

Parameters:
formulaText - formula text
rotationAngle - rotation angle in radians
color - color of the formula
fontSize - font size
Returns:
rendered and rotated image