jdbreport.model.math
Class MathValue

java.lang.Object
  extended by jdbreport.model.AbstractValue<MathML>
      extended by jdbreport.model.math.MathValue
All Implemented Interfaces:
and.util.xml.XMLParser, Serializable, CellValue<MathML>

public class MathValue
extends AbstractValue<MathML>

Version:
1.0 05.05.2011
Author:
Andrey Kholmanskih
See Also:
Serialized Form

Field Summary
 
Fields inherited from class jdbreport.model.AbstractValue
handler
 
Constructor Summary
MathValue()
           
 
Method Summary
 and.util.xml.XMLParser createParser(and.util.xml.XMLReaderHandler handler, ResourceReader resourceReader)
          Reads from XML
 void endElement(String name, StringBuffer value)
           
 Image getAsImage(ReportModel model, int row, int column)
           
 MathML getValue()
           
static boolean isEnableMathMl()
           
static void registerValue()
           
 void setValue(MathML e)
           
 boolean startElement(String name, Attributes attributes)
           
 String toString()
           
 boolean write(PrintWriter writer, ReportModel model, int row, int column)
          Writes to XML
 boolean write(PrintWriter writer, ReportModel model, int row, int column, ResourceWriter resourceWriter, String format)
          Writes to writer
 
Methods inherited from class jdbreport.model.AbstractValue
characters, createParser, getHandler, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathValue

public MathValue()
Method Detail

isEnableMathMl

public static boolean isEnableMathMl()

registerValue

public static void registerValue()

write

public boolean write(PrintWriter writer,
                     ReportModel model,
                     int row,
                     int column)
              throws SaveReportException
Description copied from interface: CellValue
Writes to XML

Returns:
true if supported
Throws:
SaveReportException

write

public boolean write(PrintWriter writer,
                     ReportModel model,
                     int row,
                     int column,
                     ResourceWriter resourceWriter,
                     String format)
              throws SaveReportException
Description copied from interface: CellValue
Writes to writer

Returns:
true if supported
Throws:
SaveReportException

getValue

public MathML getValue()

setValue

public void setValue(MathML e)

createParser

public and.util.xml.XMLParser createParser(and.util.xml.XMLReaderHandler handler,
                                           ResourceReader resourceReader)
Description copied from interface: CellValue
Reads from XML

Returns:
XMLParser

startElement

public boolean startElement(String name,
                            Attributes attributes)
                     throws SAXException
Throws:
SAXException

endElement

public void endElement(String name,
                       StringBuffer value)
                throws SAXException
Throws:
SAXException

getAsImage

public Image getAsImage(ReportModel model,
                        int row,
                        int column)
Specified by:
getAsImage in interface CellValue<MathML>
Overrides:
getAsImage in class AbstractValue<MathML>
Returns:
as image

toString

public String toString()
Overrides:
toString in class AbstractValue<MathML>