apps.mathpadapp.mathtool
Class MathTool

java.lang.Object
  extended by apps.mathpadapp.conceptmapping.GraphNode
      extended by apps.mathpadapp.util.MTFrame
          extended by apps.mathpadapp.mathtool.MathTool
Direct Known Subclasses:
AssignmentBuilder

public class MathTool
extends MTFrame

The Class MathTool.


Nested Class Summary
static interface MathTool.MathToolListener
          The listener interface for receiving mathTool events.
static class MathTool.SeparatorState
          The Enum SeparatorState.
static class MathTool.WritingState
          The Enum WritingState.
 
Nested classes/interfaces inherited from class apps.mathpadapp.conceptmapping.GraphNode
GraphNode.ConceptMapListener
 
Constructor Summary
MathTool(ContentSystem contentSystem)
          Instantiates a new math tool.
MathTool(ContentSystem contentSystem, GraphManager graphManager)
          Instantiates a new math tool.
 
Method Summary
 void addMathToolListener(MathTool.MathToolListener listener)
          Adds the math tool listener.
 MathPad addNewPad()
          Adds the new pad.
 java.util.List<MathPad> getAllPads()
          Gets the all pads.
 AnswerDialog getAnswerDialog()
          Gets the answer dialog.
 AssignmentHandler getAssignmentHandler()
          Gets the assignment handler.
 MathToolControlPanel getControlPanel()
          Gets the control panel.
 AssignmentInfo getCurrentAssignmentInfo()
          Gets the current assignment info.
 MathPad getCurrentPad()
          Gets the current pad.
 MathTool.WritingState getCurrentWritingState()
          Gets the current writing state.
 java.util.HashMap<java.lang.Integer,java.util.List<DrawData>> getDrawData()
          Gets the draw data.
 MathToolInitSettings getInitSettings()
          Gets the inits the settings.
 void init(MathToolInitSettings settings)
          Inits the.
 void removeMathToolListener(MathTool.MathToolListener listener)
          Removes the math tool listener.
 void removeMathToolListeners()
          Removes the math tool listeners.
 void removePad(int padIndex)
          Removes the pad.
 void setLineWidth(float lineWidth)
          Sets the line width.
 void setSeparatorState(MathTool.SeparatorState separatorState)
          Sets the separator state.
 void setTextColor(java.awt.Color color)
          Sets the text color.
 void setWritingState(MathTool.WritingState initWritingState)
          Sets the writing state.
 void showPad(int padIndex)
          Show pad.
 void terminate()
          Terminate.
 
Methods inherited from class apps.mathpadapp.util.MTFrame
close, getTitle, getTopBar, getWindow, setHeight, setTitle, setWidth
 
Methods inherited from class apps.mathpadapp.conceptmapping.GraphNode
addConceptMapListener, fireNodeConnected, fireNodeDisconnected, getClosePoint, getGraphManager, getIncomingLinks, getLinkPoint, getLocation, getName, getNodeItem, getOutgoingLinks, isLinkable, registerIncomingLink, registerOutgoingLink, remove, removeConceptMapListeners, setClosePoint, setLinkable, setLinkPoint, setLocation, unregisterAllLinks, unregisterLink, updateConnectionPoints
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathTool

public MathTool(ContentSystem contentSystem)
Instantiates a new math tool.

Parameters:
contentSystem - the content system

MathTool

public MathTool(ContentSystem contentSystem,
                GraphManager graphManager)
Instantiates a new math tool.

Parameters:
contentSystem - the content system
graphManager - the graph manager
Method Detail

addMathToolListener

public void addMathToolListener(MathTool.MathToolListener listener)
Adds the math tool listener.

Parameters:
listener - the listener

addNewPad

public MathPad addNewPad()
Adds the new pad.

Returns:
the math pad

getAllPads

public java.util.List<MathPad> getAllPads()
Gets the all pads.

Returns:
the all pads

getAnswerDialog

public AnswerDialog getAnswerDialog()
Gets the answer dialog.

Returns:
the answer dialog

getAssignmentHandler

public AssignmentHandler getAssignmentHandler()
Gets the assignment handler.

Returns:
the assignment handler

getControlPanel

public MathToolControlPanel getControlPanel()
Gets the control panel.

Returns:
the control panel

getCurrentAssignmentInfo

public AssignmentInfo getCurrentAssignmentInfo()
Gets the current assignment info.

Returns:
the current assignment info

getCurrentPad

public MathPad getCurrentPad()
Gets the current pad.

Returns:
the current pad

getCurrentWritingState

public MathTool.WritingState getCurrentWritingState()
Gets the current writing state.

Returns:
the current writing state

getDrawData

public java.util.HashMap<java.lang.Integer,java.util.List<DrawData>> getDrawData()
Gets the draw data.

Returns:
the draw data

getInitSettings

public MathToolInitSettings getInitSettings()
Gets the inits the settings.

Returns:
the inits the settings

init

public void init(MathToolInitSettings settings)
Inits the.

Parameters:
settings - the settings

removeMathToolListener

public void removeMathToolListener(MathTool.MathToolListener listener)
Removes the math tool listener.

Parameters:
listener - the listener

removeMathToolListeners

public void removeMathToolListeners()
Removes the math tool listeners.


removePad

public void removePad(int padIndex)
Removes the pad.

Parameters:
padIndex - the pad index

setLineWidth

public void setLineWidth(float lineWidth)
Sets the line width.

Parameters:
lineWidth - the new line width

setSeparatorState

public void setSeparatorState(MathTool.SeparatorState separatorState)
Sets the separator state.

Parameters:
separatorState - the new separator state

setTextColor

public void setTextColor(java.awt.Color color)
Sets the text color.

Parameters:
color - the new text color

setWritingState

public void setWritingState(MathTool.WritingState initWritingState)
Sets the writing state.

Parameters:
initWritingState - the new writing state

showPad

public void showPad(int padIndex)
Show pad.

Parameters:
padIndex - the pad index

terminate

public void terminate()
Terminate.