apps.mathpadapp.mathtool
Class LineWidthPanel

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

public class LineWidthPanel
extends java.lang.Object

The Class LineWidthPanel.


Nested Class Summary
static interface LineWidthPanel.LineWidthPanelListener
          The listener interface for receiving lineWidthPanel events.
 
Constructor Summary
LineWidthPanel(ContentSystem contentSystem, int noOfWidthLevels, int widthShift)
          Instantiates a new line width panel.
 
Method Summary
 void addLineWidthPanelListener(LineWidthPanel.LineWidthPanelListener listener)
          Adds the line width panel listener.
 void fireLineWidthChanged(float lineWidth)
          Fire line width changed.
 float getCurrentLineWidth()
          Gets the current line width.
 void removeLineWidthPanelListeners()
          Removes the line width panel listeners.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineWidthPanel

public LineWidthPanel(ContentSystem contentSystem,
                      int noOfWidthLevels,
                      int widthShift)
Instantiates a new line width panel.

Parameters:
contentSystem - the content system
noOfWidthLevels - the no of width levels
widthShift - the width shift
Method Detail

addLineWidthPanelListener

public void addLineWidthPanelListener(LineWidthPanel.LineWidthPanelListener listener)
Adds the line width panel listener.

Parameters:
listener - the listener

fireLineWidthChanged

public void fireLineWidthChanged(float lineWidth)
Fire line width changed.

Parameters:
lineWidth - the line width

getCurrentLineWidth

public float getCurrentLineWidth()
Gets the current line width.

Returns:
the current line width

removeLineWidthPanelListeners

public void removeLineWidthPanelListeners()
Removes the line width panel listeners.