synergynetframework.appsystem.contentsystem.jme.items
Class JMEMathPad

java.lang.Object
  extended by synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
          extended by synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
              extended by synergynetframework.appsystem.contentsystem.jme.items.JMEFrame
                  extended by synergynetframework.appsystem.contentsystem.jme.items.JMESketchPad
                      extended by synergynetframework.appsystem.contentsystem.jme.items.JMEMathPad
All Implemented Interfaces:
IContentItemImplementation, IFrameImplementation, IMathPadImplementation, IOrthoContentItemImplementation, IQuadContentItemImplementation, ISketchPadImplementation, ScreenCursorListener, OrthoBringToTop.OrthoBringToTopListener, OrthoControlPointRotateTranslateScale.RotateTranslateScaleListener, OrthoCursorEventDispatcher.CommonCursorEventListener, OrthoSnap.SnapListener, FlickMover.FlickListener

public class JMEMathPad
extends JMESketchPad
implements IMathPadImplementation

The Class JMEMathPad.


Constructor Summary
JMEMathPad(ContentItem contentItem)
          Instantiates a new JME math pad.
 
Method Summary
 void addMathHandwritingListener(MathPad.MathHandwritingListener listener)
          Adds the math handwriting listener.
 void clearAll()
          Clear all.
 void clearMathExpressions()
          Clear math expressions.
 void cursorClicked(long cursorID, int x, int y)
          Cursor clicked.
 void cursorDragged(long id, int x, int y)
          Cursor dragged.
 void cursorReleased(long cursorID, int x, int y)
          Cursor released.
 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 renderSketch()
          Render sketch.
 void setMathEngineEnabled(boolean isEnabled)
          Sets the math engine enabled.
 void startNewExpression()
          Start new expression.
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMESketchPad
addDrawListener, clear, cursorPressed, draw, draw, drawLine, drawString, fillRectangle, getBackgroundColour, getClearArea, getDrawData, getHeight, getImageHeight, getImageWidth, getLineWidth, getSketchArea, getTextColor, getWidth, init, isDrawEnabled, makeFlickable, removeDrawListener, removeDrawListeners, setBackGround, setBackgroundColour, setBorder, setClearArea, setDrawEnabled, setHeight, setLineWidth, setRotateTranslateScalable, setSketchArea, setTextColor, setWidth
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEFrame
drawImage, drawImage, flushGraphics, getGraphicsContext, getImages, removeAllImages, removeImage, setAutoFitSize
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
cursorChanged, cursorClicked, cursorPressed, cursorReleased
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
addBringToTopListener, addFlickListener, addItemListener, addMultitouchListener, addOrthoControlPointRotateTranslateScaleListener, addScreenCursorListener, addSnapListener, allowMoreThanTwoToRotateAndScale, allowSingleTouchFreeMove, allowSnapToOccupiedLocation, centerItem, cursorRightClicked, flick, getMaxScale, getMinScale, isFlickable, ItemBringToTop, itemFlicked, itemMoved, itemRotated, itemScaled, itemSnapped, makeUnflickable, placeRandom, removeBringToTopListeners, removeFlickListeners, removeItemListerner, removeOrthoControlPointRotateTranslateScaleListeners, removeScreenCursorListeners, removeSnapListeners, reset, rotateRandom, screenCursorChanged, screenCursorClicked, screenCursorPressed, screenCursorReleased, setAsBottomObject, setAsTopObject, setAsTopObjectAndBroadCastEvent, setBringToTopable, setFixLocations, setLocalLocation, setName, setOrder, setRightClickDistance, setRotateTranslateScalable, setScaleLimit, setSingleTouchRotateTranslate, setSnapable, setTolerance, setZRotateLimit, turnOffEventDispatcher, update, update
 
Methods inherited from class synergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
contains, getImplementationObject, getLocalLocation, hasCollision, setAngle, setBoundaryEnabled, setId, setLocation, setManipulate, setScale, setScale, setVisible, setVisible
 
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, 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

JMEMathPad

public JMEMathPad(ContentItem contentItem)
Instantiates a new JME math pad.

Parameters:
contentItem - the content item
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

clearAll

public void clearAll()
Description copied from interface: ISketchPadImplementation
Clear all.

Specified by:
clearAll in interface ISketchPadImplementation
Overrides:
clearAll in class JMESketchPad

clearMathExpressions

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

Specified by:
clearMathExpressions in interface IMathPadImplementation

cursorClicked

public void cursorClicked(long cursorID,
                          int x,
                          int y)
Description copied from class: JMESketchPad
Cursor clicked.

Overrides:
cursorClicked in class JMESketchPad
Parameters:
cursorID - the cursor id
x - the x
y - the y

cursorDragged

public void cursorDragged(long id,
                          int x,
                          int y)
Description copied from class: JMESketchPad
Cursor dragged.

Overrides:
cursorDragged in class JMESketchPad
Parameters:
id - the id
x - the x
y - the y

cursorReleased

public void cursorReleased(long cursorID,
                           int x,
                           int y)
Description copied from class: JMESketchPad
Cursor released.

Overrides:
cursorReleased in class JMESketchPad
Parameters:
cursorID - the cursor id
x - the x
y - the y

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

renderSketch

public void renderSketch()
Description copied from class: JMESketchPad
Render sketch.

Overrides:
renderSketch in class JMESketchPad

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