package jsetool.gui; import java.awt.Cursor; import java.awt.event.MouseEvent; /** * * @author Mike Lawson * * @since Nov 2, 2004 * * This is the state that the drawing pane will be in under "normal" operations * */ class NormalOperationsState extends FSMDrawingState { protected static Cursor normalCursor = new Cursor(Cursor.DEFAULT_CURSOR); /** * Constructs a normal operations state for the given pane. * * @param pane */ public NormalOperationsState(FSMDrawingPane pane) { super(pane); } /** * The transition to the normal operations state means that the cursor is the * normal cursor and that dragging is allowed. */ public void enter() { getPane().setCursor(normalCursor); getPane().setIsDragging(true); } /** * This state does nothing when the mouse is clicked on the drawing pane. * * @param e * @throws Exception */ public void mouseClicked(MouseEvent e) throws Exception { // NADA in this state. } public void mouseDragged(MouseEvent e) throws Exception { // nada in this state } public void mousePressed(MouseEvent e) throws Exception { //nada in this state } public void mouseReleased(MouseEvent e) throws Exception { //nada in this state } }