diva.whiteboard
Class WhiteboardState
java.lang.Object
diva.whiteboard.WhiteboardState
public class WhiteboardState
- extends Object
A model which maintains Whiteboard's UI properties such as pen
color, pen width, and the mode (sketch or command). It sents an
event to its listeners when a property has been changed.
- Version:
- $Revision: 1.5 $
- Author:
- Heloise Hse (hwawen@eecs.berkeley.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PEN_COLOR
public static final String PEN_COLOR
- See Also:
- Constant Field Values
FILL_COLOR
public static final String FILL_COLOR
- See Also:
- Constant Field Values
PEN_WIDTH
public static final String PEN_WIDTH
- See Also:
- Constant Field Values
MODE
public static final String MODE
- See Also:
- Constant Field Values
SKETCH_MODE
public static final String SKETCH_MODE
- See Also:
- Constant Field Values
COMMAND_MODE
public static final String COMMAND_MODE
- See Also:
- Constant Field Values
HIGHLIGHT_MODE
public static final String HIGHLIGHT_MODE
- See Also:
- Constant Field Values
WhiteboardState
public WhiteboardState()
addStateListener
public void addStateListener(PropertyChangeListener l)
removeStateListener
public void removeStateListener(PropertyChangeListener l)
getPenColor
public Color getPenColor()
getFillColor
public Color getFillColor()
getPenWidth
public float getPenWidth()
getMode
public String getMode()
setPenColor
public void setPenColor(Color c)
setFillColor
public void setFillColor(Color c)
setPenWidth
public void setPenWidth(float w)
setMode
public void setMode(String m)
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.