kcl.waterloo.tex

## Interface TexSupportInterface

• public interface TexSupportInterface
Defines an interface for TeX support. Currently, Waterloo graphics supports TeX via the GPL supplement, which uses JLatexMath or via JavaFX, which can display TeX in a WevView using MathJax. To guarantee portability to platforms without either installed, include a standard component using the image returned by getImage or the label returned by getLabel. For the kcl-gpl-tex package using JLatexMath these return a BufferedImage and a JLabel respectively.

• ### Method Summary

Methods
Modifier and Type Method and Description
java.lang.Object getImage()
Returns the TeX as an image.
java.lang.Object getLabel()
Returns the TeX as a label.
boolean isTeXSupported()
Returns true if this object supports TeX
• ### Method Detail

• #### isTeXSupported

boolean isTeXSupported()
Returns true if this object supports TeX
Returns:
the flag
• #### getImage

java.lang.Object getImage()
Returns the TeX as an image. The class of the returned image is not specified. For Swing it will generally be a java.awt.image.BufferedImage.
Returns:
an image object
• #### getLabel

java.lang.Object getLabel()
Returns the TeX as a label. The class of the returned label is not specified. For Swing it will generally be a javax.swing.JLabel.
Returns:
a label object