|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.jme.items.JMEContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEOrthoContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEQuadContentItem
synergynetframework.appsystem.contentsystem.jme.items.JMEFrame
synergynetframework.appsystem.contentsystem.jme.items.JMESketchPad
synergynetframework.appsystem.contentsystem.jme.items.JMEMathPad
public class JMEMathPad
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.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.IContentItemImplementation |
---|
addMultitouchListener, contains, getImplementationObject, hasCollision, init, setAngle, setBackGround, setBorder, setBoundaryEnabled, setId, setLocalLocation, setLocation, setManipulate, setName, setScale, setScale, setVisible, setVisible, update, update |
Constructor Detail |
---|
public JMEMathPad(ContentItem contentItem)
contentItem
- the content itemMethod Detail |
---|
public void addMathHandwritingListener(MathPad.MathHandwritingListener listener)
IMathPadImplementation
addMathHandwritingListener
in interface IMathPadImplementation
listener
- the listenerpublic void clearAll()
ISketchPadImplementation
clearAll
in interface ISketchPadImplementation
clearAll
in class JMESketchPad
public void clearMathExpressions()
IMathPadImplementation
clearMathExpressions
in interface IMathPadImplementation
public void cursorClicked(long cursorID, int x, int y)
JMESketchPad
cursorClicked
in class JMESketchPad
cursorID
- the cursor idx
- the xy
- the ypublic void cursorDragged(long id, int x, int y)
JMESketchPad
cursorDragged
in class JMESketchPad
id
- the idx
- the xy
- the ypublic void cursorReleased(long cursorID, int x, int y)
JMESketchPad
cursorReleased
in class JMESketchPad
cursorID
- the cursor idx
- the xy
- the ypublic mit.ai.nl.core.Expression getCurrentExpression()
IMathPadImplementation
getCurrentExpression
in interface IMathPadImplementation
public java.util.List<mit.ai.nl.core.Expression> getMathExpressions()
IMathPadImplementation
getMathExpressions
in interface IMathPadImplementation
public void removeHandwritingListener(MathPad.MathHandwritingListener listener)
IMathPadImplementation
removeHandwritingListener
in interface IMathPadImplementation
listener
- the listenerpublic void removeHandwritingListeners()
IMathPadImplementation
removeHandwritingListeners
in interface IMathPadImplementation
public void renderSketch()
JMESketchPad
renderSketch
in class JMESketchPad
public void setMathEngineEnabled(boolean isEnabled)
IMathPadImplementation
setMathEngineEnabled
in interface IMathPadImplementation
isEnabled
- the new math engine enabledpublic void startNewExpression()
IMathPadImplementation
startNewExpression
in interface IMathPadImplementation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |