apps.mathpadapp.mathtool
Class MathToolControlPanel

java.lang.Object
  extended by apps.mathpadapp.mathtool.MathToolControlPanel

public class MathToolControlPanel
extends java.lang.Object

The Class MathToolControlPanel.


Nested Class Summary
static interface MathToolControlPanel.ControlPanelListener
          The listener interface for receiving controlPanel events.
 
Constructor Summary
MathToolControlPanel(ContentSystem contentSystem, MathTool tool)
          Instantiates a new math tool control panel.
 
Method Summary
 void addControlPanelListener(MathToolControlPanel.ControlPanelListener listener)
          Adds the control panel listener.
 OrthoContainer getContentPanel()
          Gets the content panel.
 int getHeight()
          Gets the height.
 ContentItem getLoginButton()
          Gets the login button.
 SimpleButton getSolutionButton()
          Gets the solution button.
 int getWidth()
          Gets the width.
 void init(MathToolInitSettings settings)
          Inits the.
 void registerButton(SimpleButton button)
          Register button.
 void removeControlPanelListeners()
          Removes the control panel listeners.
 void setLayout()
          Sets the layout.
 void unregisterButton(SimpleButton button)
          Unregister button.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MathToolControlPanel

public MathToolControlPanel(ContentSystem contentSystem,
                            MathTool tool)
Instantiates a new math tool control panel.

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

addControlPanelListener

public void addControlPanelListener(MathToolControlPanel.ControlPanelListener listener)
Adds the control panel listener.

Parameters:
listener - the listener

getContentPanel

public OrthoContainer getContentPanel()
Gets the content panel.

Returns:
the content panel

getHeight

public int getHeight()
Gets the height.

Returns:
the height

getLoginButton

public ContentItem getLoginButton()
Gets the login button.

Returns:
the login button

getSolutionButton

public SimpleButton getSolutionButton()
Gets the solution button.

Returns:
the solution button

getWidth

public int getWidth()
Gets the width.

Returns:
the width

init

public void init(MathToolInitSettings settings)
Inits the.

Parameters:
settings - the settings

registerButton

public void registerButton(SimpleButton button)
Register button.

Parameters:
button - the button

removeControlPanelListeners

public void removeControlPanelListeners()
Removes the control panel listeners.


setLayout

public void setLayout()
Sets the layout.


unregisterButton

public void unregisterButton(SimpleButton button)
Unregister button.

Parameters:
button - the button