synergynetframework.appsystem.contentsystem.items
Class MathPad

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.items.ContentItem
      extended by synergynetframework.appsystem.contentsystem.items.OrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.items.QuadContentItem
              extended by synergynetframework.appsystem.contentsystem.items.Frame
                  extended by synergynetframework.appsystem.contentsystem.items.SketchPad
                      extended by synergynetframework.appsystem.contentsystem.items.MathPad
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<OrthoContentItem>, IContentItemImplementation, IFrameImplementation, IMathPadImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ISketchPadImplementation, BringToTopListener, ItemListener, OrthoControlPointRotateTranslateScaleListener, OrthoFlickListener, OrthoScaleMotionListener, OrthoSnapListener, OrthoSpinListener

public class MathPad
extends SketchPad
implements IMathPadImplementation

The Class MathPad.

See Also:
Serialized Form

Nested Class Summary
static interface MathPad.MathHandwritingListener
          The listener interface for receiving mathHandwriting events.
 
Nested classes/interfaces inherited from class synergynetframework.appsystem.contentsystem.items.SketchPad
SketchPad.DrawListener
 
Field Summary
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
removable
 
Fields inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
name
 
Constructor Summary
MathPad(ContentSystem contentSystem, java.lang.String name)
          Instantiates a new math pad.
 
Method Summary
 void addMathHandwritingListener(MathPad.MathHandwritingListener listener)
          Adds the math handwriting listener.
 void clearMathExpressions()
          Clear math expressions.
 mit.ai.nl.core.Expression getCurrentExpression()
          Gets the current expression.
 java.util.List<mit.ai.nl.core.Expression> getMathExpressions()
          Gets the math expressions.
 void removeHandwritingListener(MathPad.MathHandwritingListener listener)
          Removes the handwriting listener.
 void removeHandwritingListeners()
          Removes the handwriting listeners.
 void setMathEngineEnabled(boolean isEnabled)
          Sets the math engine enabled.
 void startNewExpression()
          Start new expression.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.SketchPad
addDrawListener, clear, clearAll, draw, draw, drawLine, drawString, fillRectangle, getBackgroundColour, getClearArea, getDrawData, getLineWidth, getSketchArea, getTextColor, isDrawEnabled, removeDrawListener, removeDrawListeners, setBackgroundColour, setClearArea, setDrawEnabled, setHeight, setLineWidth, setSketchArea, setTextColor, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.Frame
drawImage, drawImage, flushGraphics, getGraphicsContext, getImageResources, getImages, removeAllImages, removeImage
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.QuadContentItem
addSizeChangeListener, clone, getHeight, getWidth, isAutoFitSize, removeSizeChangeListener, setAutoFit, setAutoFitSize
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.OrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, bindImplementationOjbect, centerItem, compareTo, cursorChanged, cursorClicked, cursorDoubleClicked, cursorLongHeld, cursorPressed, cursorReleased, cursorRightClicked, enableMultiTouchElementListeners, fireCursorChanged, fireCursorClicked, fireCursorDoubleClicked, fireCursorLongHeld, fireCursorPressed, fireCursorReleased, fireCursorRightClicked, fireScreenCursorChanged, fireScreenCursorClicked, fireScreenCursorPressed, fireScreenCursorReleased, flick, getBringToTopListeners, getFlickDeceleration, getFlickListeners, getItemListeners, getLocation, getMaxScale, getMinScale, getOrder, getOrthoControlPointRotateTranslateScaleListeners, getOrthoSnapListeners, getParent, getScaleMotionDeceleration, getScaleMotionListeners, getSpinListeners, isBringToTopEnabled, isFlickable, isRotateTranslateScaleEnabled, isSingleTouchRotateTranslate, isSnapEnabled, itemBringToToped, itemFlicked, itemRotated, itemScaled, itemScaleMotioned, itemSnapped, itemSpun, itemTranslated, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeBringToTopListeners, removeFlickListeners, removeFlickListeners, removeItemListerner, removeItemListerners, removeOrthoControlPointRotateTranslateScaleListeners, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setBringToTopListeners, setFixLocations, setFlickListeners, setItemListeners, setLocation, setLocation, setName, setOrder, setOrthoControlPointRotateTranslateScaleListeners, setOrthoSnapListeners, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setScaleMotionListeners, setSingleTouchRotateTranslate, setSnapable, setSpinListeners, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from class synergynetframework.appsystem.contentsystem.items.ContentItem
addMultitouchListener, canManipulate, contains, generateUniqueName, getAngle, getBackGround, getBorder, getBorderColour, getBorderSize, getContentSystem, getId, getImplementationObject, getLocalLocation, getName, getNote, getResource, getScale, hasCollision, init, initImplementationObjet, isBoundaryEnabled, isVisible, setAngle, setBackGround, setBorder, setBorderColour, setBorderSize, setBoundaryEnabled, setContentSystem, setId, setLocalLocation, setLocalLocation, setLocalLocation, setManipulate, setNote, setResource, setScale, setScale, setVisible, setVisible, update, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.ISketchPadImplementation
addDrawListener, clear, clearAll, draw, draw, drawLine, drawString, fillRectangle, getBackgroundColour, getClearArea, getDrawData, getLineWidth, getSketchArea, getTextColor, isDrawEnabled, removeDrawListener, removeDrawListeners, setBackgroundColour, setClearArea, setDrawEnabled, setLineWidth, setSketchArea, setTextColor
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IFrameImplementation
drawImage, drawImage, flushGraphics, getGraphicsContext, getImages, removeAllImages, removeImage
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IQuadContentItemImplementation
setAutoFitSize, setHeight, setWidth
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IOrthoContentItemImplementation
addBringToTopListener, addFlickListener, addItemListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, flick, getMaxScale, getMinScale, isFlickable, makeFlickable, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setOrder, setRightClickDistance, setRotateTranslateScalable, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher
 
Methods inherited from interface synergynetframework.appsystem.contentsystem.items.implementation.interfaces.IContentItemImplementation
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update
 

Constructor Detail

MathPad

public MathPad(ContentSystem contentSystem,
               java.lang.String name)
Instantiates a new math pad.

Parameters:
contentSystem - the content system
name - the name
Method Detail

addMathHandwritingListener

public void addMathHandwritingListener(MathPad.MathHandwritingListener listener)
Description copied from interface: IMathPadImplementation
Adds the math handwriting listener.

Specified by:
addMathHandwritingListener in interface IMathPadImplementation
Parameters:
listener - the listener

clearMathExpressions

public void clearMathExpressions()
Description copied from interface: IMathPadImplementation
Clear math expressions.

Specified by:
clearMathExpressions in interface IMathPadImplementation

getCurrentExpression

public mit.ai.nl.core.Expression getCurrentExpression()
Description copied from interface: IMathPadImplementation
Gets the current expression.

Specified by:
getCurrentExpression in interface IMathPadImplementation
Returns:
the current expression

getMathExpressions

public java.util.List<mit.ai.nl.core.Expression> getMathExpressions()
Description copied from interface: IMathPadImplementation
Gets the math expressions.

Specified by:
getMathExpressions in interface IMathPadImplementation
Returns:
the math expressions

removeHandwritingListener

public void removeHandwritingListener(MathPad.MathHandwritingListener listener)
Description copied from interface: IMathPadImplementation
Removes the handwriting listener.

Specified by:
removeHandwritingListener in interface IMathPadImplementation
Parameters:
listener - the listener

removeHandwritingListeners

public void removeHandwritingListeners()
Description copied from interface: IMathPadImplementation
Removes the handwriting listeners.

Specified by:
removeHandwritingListeners in interface IMathPadImplementation

setMathEngineEnabled

public void setMathEngineEnabled(boolean isEnabled)
Description copied from interface: IMathPadImplementation
Sets the math engine enabled.

Specified by:
setMathEngineEnabled in interface IMathPadImplementation
Parameters:
isEnabled - the new math engine enabled

startNewExpression

public void startNewExpression()
Description copied from interface: IMathPadImplementation
Start new expression.

Specified by:
startNewExpression in interface IMathPadImplementation