com.integretechpub.mathex.editor.applet
Class MathEXApplet

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Panel
              extended by java.applet.Applet
                  extended by javax.swing.JApplet
                      extended by com.integretechpub.mathex.editor.applet.MathEXApplet
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer

public class MathEXApplet
extends JApplet

Equation Editor applet class.

This class implements the applet object for the applet edition of the equation editor.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MathEXApplet()
          Construct an instance of the applet.
 
Method Summary
 void aboutBox()
          Show the about box.
 boolean addConfig(String key, String value)
          Add to the named section of the current configuration.
 boolean applyTemplate(String template)
          Apply the given template.
 boolean applyTemplateByName(String name)
          Apply the named template.
 void destroy()
          Perform one-time applet cleanup.
 Frame getAppletFrame()
          Return the frame that owns this applet.
 boolean getAutoAlign()
          Return the value of the AutoAlign property.
 boolean getAutoSize()
          Return the value of the AutoSize property.
 String getConfig(String key)
          Return the named section of the current configuration.
 String getFontSize()
          Return the font size for this editor instance.
 boolean getGrabFocus()
          Return the value of the GrabFocus property.
 String getMmlContent()
          Return the content of the editor expression as MathML markup.
 String getMmlContentById(String id)
          Return the content of the identified expression as MathML markup.
 String getMmlCurrent()
          Return the content of the current expression as MathML markup.
 String getMmlPresent()
          Return the presentation of the editor expression as MathML markup.
 String getMmlPresentById(String id)
          Return the presentation of the identified expression as MathML markup.
 String getMmlSource()
          Return the path to the MathML source file.
 String getVersion()
          Return the equation editor version string.
 String getZedContent()
          Return the content of the editor expression as editor markup.
 String getZedContentById(String id)
          Return the content of the identified expression as editor markup.
 String getZedCurrent()
          Return the content of the current expression as editor markup.
 int getZedDepth()
          Return the natural depth of the applet.
 int getZedHeight()
          Return the natural height of the applet.
 String getZedPosition()
          Return the position of the current expression.
 String getZedPositionById()
          Return the identifier of the current expression.
 String getZedPresent()
          Return the presentation of the editor expression as editor markup.
 String getZedPresentById(String id)
          Return the presentation of the identified expression as editor markup.
 String getZedSource()
          Return the path to the editor source file.
 int getZedWidth()
          Return the natural width of the applet.
 void grabFocus()
          Request that the applet receive the focus.
 boolean hidePalette(String name)
          Hide the named palette.
 void init()
          Perform one-time applet initialization.
 boolean loadConfig(String pathName)
          Load the named configuration file.
 boolean readConfig(String key, String pathName)
          Read the named section of the current configuration.
 boolean saveConfig(String pathName)
          Save the named configuration file.
 void setAutoAlign(boolean autoAlign)
          Set the value of the AutoAlign property.
 void setAutoSize(boolean autoSize)
          Set the value of the AutoSize property.
 boolean setConfig(String key, String value)
          Set the named section of the current configuration.
 void setFontSize(String fontSize)
          Set the font size for this editor instance.
 void setGrabFocus(boolean grabFocus)
          Set the value of the GrabFocus property.
 void setMmlContent(String value)
          Set the content of the editor expression from MathML markup.
 void setMmlContentById(String id, String value)
          Set the content of the identified expression from MathML markup.
 void setMmlCurrent(String value)
          Set the content of the current expression from MathML markup.
 void setMmlPresent(String value)
          Set the presentation of the editor expression from MathML markup.
 void setMmlPresentById(String id, String value)
          Set the presentation of the identified expression from MathML markup.
 void setMmlSource(String pathName)
          Load the MathML source from the given file.
 void setZedContent(String value)
          Set the content of the editor expression from editor markup.
 void setZedContentById(String id, String value)
          Set the content of the identified expression from editor markup.
 void setZedCurrent(String value)
          Set the content of the current expression from editor markup.
 void setZedPosition(String value)
          Set the current expression by position.
 void setZedPositionById(String value)
          Set the current expression by identifier.
 void setZedPresent(String value)
          Set the presentation of the editor expression from editor markup.
 void setZedPresentById(String id, String value)
          Set the presentation of the identified expression from editor markup.
 void setZedSource(String pathName)
          Load the editor source from the given file.
 boolean showFormat(String key, String value)
          Set the named formatting flag to the given value.
 boolean showPalette(String name)
          Show the named palette.
 void start()
          Perform applet initialization on startup.
 void stop()
          Perform applet initialization on shutdown.
 boolean writeConfig(String key, String pathName)
          Write the named section of the current configuration.
 
Methods inherited from class javax.swing.JApplet
getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, update
 
Methods inherited from class java.applet.Applet
getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MathEXApplet

public MathEXApplet()
Construct an instance of the applet.

Method Detail

getAppletFrame

public Frame getAppletFrame()
Return the frame that owns this applet.


init

public void init()
Perform one-time applet initialization.

Overrides:
init in class Applet

destroy

public void destroy()
Perform one-time applet cleanup.

Overrides:
destroy in class Applet

start

public void start()
Perform applet initialization on startup.

Overrides:
start in class Applet

stop

public void stop()
Perform applet initialization on shutdown.

Overrides:
stop in class Applet

aboutBox

public void aboutBox()
Show the about box.


getVersion

public String getVersion()
Return the equation editor version string.


grabFocus

public void grabFocus()
Request that the applet receive the focus.


getZedHeight

public int getZedHeight()
Return the natural height of the applet.


getZedDepth

public int getZedDepth()
Return the natural depth of the applet.


getZedWidth

public int getZedWidth()
Return the natural width of the applet.


getAutoSize

public boolean getAutoSize()
Return the value of the AutoSize property.


setAutoSize

public void setAutoSize(boolean autoSize)
Set the value of the AutoSize property.


getAutoAlign

public boolean getAutoAlign()
Return the value of the AutoAlign property.


setAutoAlign

public void setAutoAlign(boolean autoAlign)
Set the value of the AutoAlign property.


getGrabFocus

public boolean getGrabFocus()
Return the value of the GrabFocus property.


setGrabFocus

public void setGrabFocus(boolean grabFocus)
Set the value of the GrabFocus property.


getFontSize

public String getFontSize()
Return the font size for this editor instance.


setFontSize

public void setFontSize(String fontSize)
Set the font size for this editor instance.


loadConfig

public boolean loadConfig(String pathName)
Load the named configuration file.


saveConfig

public boolean saveConfig(String pathName)
Save the named configuration file.


getConfig

public String getConfig(String key)
Return the named section of the current configuration.


setConfig

public boolean setConfig(String key,
                         String value)
Set the named section of the current configuration.


addConfig

public boolean addConfig(String key,
                         String value)
Add to the named section of the current configuration.


readConfig

public boolean readConfig(String key,
                          String pathName)
Read the named section of the current configuration.


writeConfig

public boolean writeConfig(String key,
                           String pathName)
Write the named section of the current configuration.


showPalette

public boolean showPalette(String name)
Show the named palette.


hidePalette

public boolean hidePalette(String name)
Hide the named palette.


showFormat

public boolean showFormat(String key,
                          String value)
Set the named formatting flag to the given value.


applyTemplate

public boolean applyTemplate(String template)
Apply the given template.


applyTemplateByName

public boolean applyTemplateByName(String name)
Apply the named template.


getZedPosition

public String getZedPosition()
Return the position of the current expression.


setZedPosition

public void setZedPosition(String value)
Set the current expression by position.


getZedPositionById

public String getZedPositionById()
Return the identifier of the current expression.


setZedPositionById

public void setZedPositionById(String value)
Set the current expression by identifier.


getMmlSource

public String getMmlSource()
Return the path to the MathML source file.


setMmlSource

public void setMmlSource(String pathName)
Load the MathML source from the given file.


getZedSource

public String getZedSource()
Return the path to the editor source file.


setZedSource

public void setZedSource(String pathName)
Load the editor source from the given file.


getMmlCurrent

public String getMmlCurrent()
Return the content of the current expression as MathML markup.


setMmlCurrent

public void setMmlCurrent(String value)
Set the content of the current expression from MathML markup.


getZedCurrent

public String getZedCurrent()
Return the content of the current expression as editor markup.


setZedCurrent

public void setZedCurrent(String value)
Set the content of the current expression from editor markup.


getMmlContent

public String getMmlContent()
Return the content of the editor expression as MathML markup.


setMmlContent

public void setMmlContent(String value)
Set the content of the editor expression from MathML markup.


getMmlContentById

public String getMmlContentById(String id)
Return the content of the identified expression as MathML markup.


setMmlContentById

public void setMmlContentById(String id,
                              String value)
Set the content of the identified expression from MathML markup.


getMmlPresent

public String getMmlPresent()
Return the presentation of the editor expression as MathML markup.


setMmlPresent

public void setMmlPresent(String value)
Set the presentation of the editor expression from MathML markup.


getMmlPresentById

public String getMmlPresentById(String id)
Return the presentation of the identified expression as MathML markup.


setMmlPresentById

public void setMmlPresentById(String id,
                              String value)
Set the presentation of the identified expression from MathML markup.


getZedContent

public String getZedContent()
Return the content of the editor expression as editor markup.


setZedContent

public void setZedContent(String value)
Set the content of the editor expression from editor markup.


getZedContentById

public String getZedContentById(String id)
Return the content of the identified expression as editor markup.


setZedContentById

public void setZedContentById(String id,
                              String value)
Set the content of the identified expression from editor markup.


getZedPresent

public String getZedPresent()
Return the presentation of the editor expression as editor markup.


setZedPresent

public void setZedPresent(String value)
Set the presentation of the editor expression from editor markup.


getZedPresentById

public String getZedPresentById(String id)
Return the presentation of the identified expression as editor markup.


setZedPresentById

public void setZedPresentById(String id,
                              String value)
Set the presentation of the identified expression from editor markup.