kcl.waterloo.tex
Interface TexSupportInterface
-
public interface TexSupportInterfaceDefines 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
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.ObjectgetImage()Returns the TeX as an image.java.lang.ObjectgetLabel()Returns the TeX as a label.booleanisTeXSupported()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 ajava.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 ajavax.swing.JLabel.- Returns:
- a label object
-
-
DMelt 3.0 © DataMelt by jWork.ORG