Class MathComponent

java.lang.Object
java.awt.Component
net.sourceforge.jeuclid.awt.MathComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class MathComponent extends Component
A class for displaying MathML content in a AWT Component.
Version:
$Revision: 03dc0884e86f $
See Also:
  • Constructor Details

    • MathComponent

      public MathComponent()
      Default constructor.
  • Method Details

    • setParameters

      public final void setParameters(MutableLayoutContext newParameters)
      Sets the rendering parameters.
      Parameters:
      newParameters - the set of parameters.
    • getDocument

      public Document getDocument()
      Returns:
      the document
    • getMinimumSize

      public Dimension getMinimumSize()
      Gets the minimum size of this component.
      Overrides:
      getMinimumSize in class Component
      Returns:
      A dimension object indicating this component's minimum size.
    • getPreferredSize

      public Dimension getPreferredSize()
      Gets the preferred size of this component.
      Overrides:
      getPreferredSize in class Component
      Returns:
      A dimension object indicating this component's preferred size.
    • paint

      public void paint(Graphics g)
      Paints this component.
      Overrides:
      paint in class Component
      Parameters:
      g - The graphics context to use for painting.
    • setDebug

      public void setDebug(boolean debugMode)
      Enables, or disables the debug mode.
      Parameters:
      debugMode - Debug mode.
    • setDocument

      public void setDocument(Document newDocument)
      Parameters:
      newDocument - the document to set