com.maplesoft.client
Class mathmlEditEquation

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--webeq3.app.Equation
                    |
                    +--webeq3.app.EEquation
                          |
                          +--com.maplesoft.client.mathmlEditEquation
All Implemented Interfaces:
javax.accessibility.Accessible, webeq3.constants.AttributeConstants, java.awt.datatransfer.ClipboardOwner, org.w3c.dom.Document, webeq3.editor.EditController, java.awt.image.ImageObserver, webeq3.dom.MathMLDocument, java.awt.MenuContainer, org.w3c.dom.Node, java.io.Serializable

public class mathmlEditEquation
extends webeq3.app.EEquation
implements webeq3.editor.EditController

Creates a displayable equation that can be edited

See Also:
Serialized Form

Fields inherited from class webeq3.app.EEquation
atTop, current_template, cursor, ih, INSERT_MODE, maxChildren, minChildren, OVERWRITE_MODE, tainted, templates, text_mode
 
Fields inherited from class webeq3.app.Equation
ah, align, allow_cut, applet, breaks, canvas_xoff, canvas_yoff, cutend, cutendx, cutendy, cutstart, cutstartx, cutstarty, fixed_size, full_size, handler, haveSelection, hilight_change, indent, leftMargin, leftmostSelection, linebreak, markupRoot, mh, offsetx, offsety, oh, overflowMarkers, padding, rectbottom, rectleft, rectright, recttop, rightmostSelection, root, system_clipboard, valign, WizardIsRunning
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface webeq3.constants.AttributeConstants
ACCENT, ACCENTUNDER, ACTIONTYPE, ALGNSCOPE, ALIGN, ALT, attribute_names, BACKGROUND, BASE, BGHIGHLIGHT, CLASS, CLOSE, CLOSURE, COLOR, COLUMNALIGN, COLUMNLINES, COLUMNSPACING, COLUMNSPAN, CUE1, CUE2, defaultValue, DEFINITIONURL, DEPTH, DISPLAY, DISPLAYSTYLE, EDGE, ENCODING, EQUALCOLUMNS, EQUALROWS, FENCE, FGHIGHLIGHT, FONTCOLOR, FONTFAMILY, FONTSIZE, FONTSLANT, FONTSTYLE, FONTWEIGHT, FORM, FRAME, FRAMESPACING, GRPALIGN, hasUnits, HEIGHT, HREF, ID, INDEX, LARGEOP, LINEBREAK, LINETHICKNESS, LQUOTE, LSPACE, MACROS, MATHBACKGROUND, MATHCOLOR, MATHSIZE, MATHVARIANT, MAXSIZE, MINLABELSPACING, MINSIZE, MODE, MOVABLELIMITS, MPHANTOM_LAP, MSPACE_FILL, NARGS, NOTATION, NUM_ATTRIBUTES, OCCURRENCE, OPEN, ORDER, OTHER, ROWALIGN, ROWLINES, ROWSPACING, ROWSPAN, RQUOTE, RSPACE, SCOPE, SCRIPTLEVEL, SCRIPTMINSIZE, SCRIPTMULT, SELECTION, SEPARATOR, SEPARATORS, SIDE, STRETCHY, STYLE, SUBSHIFT, SUPSHIFT, SYMMETRIC, TYPE, WIDTH, XREF
 
Fields inherited from interface webeq3.dom.MathMLDocument
domain, referrer, URI
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
mathmlEditEquation()
          Default Constructor with no equation set
mathmlEditEquation(java.lang.String sMathML)
          Creates a visual equation based on the mathml string.
 
Method Summary
 void disableUndoMenu()
           
 void enableUndoMenu()
           
 java.lang.String getEquation()
          Retrieve the math ml taged expression
 void paint(java.awt.Graphics g)
          redraws the equation on the given Graphics context
 void re_paint_eq()
           
 void re_paint()
           
 void renewFocus()
           
 void setEquation(java.lang.String sMathML)
          Store the Math ML equation and update the display
 void update_all()
           
 
Methods inherited from class webeq3.app.EEquation
addTemplate, findMatching, getECursor, getNumTemplates, getTextMode, gotoCurrentTemplate, handleEvent, insertBox, InsertBox, insertNecessaryTemplates, isTainted, mergeBoxes, postPaint, recursiveRmTemplate, removeTemplate, setAllowCut, setCurrentTemplate, setCurrentTemplate, setCursor, setInputHandler, setTainted, setTextMode, splitBox, storeUndoInfo, undo
 
Methods inherited from class webeq3.app.Equation
appendChild, attributeInUse, cloneNode, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, directRedraw, dispose, fixSize, fullSize, getAttributes, getChildNodes, getDisplayWidth, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getFace, getFirstChild, getHandler, getImplementation, getLastChild, getLocalName, getMinimumSize, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPointsize, getPreferredAscent, getPreferredHeight, getPreferredSize, getPreferredWidth, getPrefix, getPreviousSibling, getSize, getVendor, hasAttributes, hasChildNodes, highlightAll, importNode, initBG, initBG, initFG, initFG, insertBefore, isSupported, lookupIndex, lostOwnership, normalize, normalVirtualCoords, redraw, registerActions, registerMessage, removeChild, replaceChild, resetMessagesAndActions, setAlign, setHandler, setLeftMargin, setLinebreak, setNodeValue, setOverflow, setPadding, setPointSize, setPreferredSize, setPrefix, setRoot, setSelection, setVAlign, standardPointsize, supports
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

mathmlEditEquation

public mathmlEditEquation()
Default Constructor with no equation set

mathmlEditEquation

public mathmlEditEquation(java.lang.String sMathML)
Creates a visual equation based on the mathml string.
Parameters:
sMathML - a string containing the MathML equation
Method Detail

setEquation

public void setEquation(java.lang.String sMathML)
Store the Math ML equation and update the display
Parameters:
sMathML - the string containg the mathml

getEquation

public java.lang.String getEquation()
Retrieve the math ml taged expression
Returns:
the mathml string

paint

public void paint(java.awt.Graphics g)
redraws the equation on the given Graphics context
Overrides:
paint in class webeq3.app.Equation
Parameters:
g - a Graphics context

enableUndoMenu

public void enableUndoMenu()
Specified by:
enableUndoMenu in interface webeq3.editor.EditController

disableUndoMenu

public void disableUndoMenu()
Specified by:
disableUndoMenu in interface webeq3.editor.EditController

update_all

public void update_all()
Specified by:
update_all in interface webeq3.editor.EditController

re_paint_eq

public void re_paint_eq()
Specified by:
re_paint_eq in interface webeq3.editor.EditController

re_paint

public void re_paint()
Specified by:
re_paint in interface webeq3.editor.EditController

renewFocus

public void renewFocus()
Specified by:
renewFocus in interface webeq3.editor.EditController