// ********************************************************************** // // // // BBN Technologies, a Verizon Company // 10 Moulton Street // Cambridge, MA 02138 // (617) 873-8000 // // Copyright (C) BBNT Solutions LLC. All rights reserved. // // // ********************************************************************** // // $Source: /cvs/CVS_LEBA/common/jstd/src/java/com/obrctm/openmap/editor/TextStateMachine.java,v $ // $RCSfile: TextStateMachine.java,v $ // $Revision: 1.1 $ // $Date: 2003/07/16 15:05:07 $ // $Author: pitek $ // // ********************************************************************** package com.obrctm.openmap.editor; import java.awt.*; import java.awt.event.*; import java.net.URL; import java.util.*; import javax.swing.ImageIcon; import com.bbn.openmap.omGraphics.*; import com.bbn.openmap.omGraphics.editable.*; import com.bbn.openmap.omGraphics.event.EOMGEvent; import com.bbn.openmap.layer.util.stateMachine.*; import com.bbn.openmap.util.Debug; public class TextStateMachine extends EOMGStateMachine { public TextStateMachine(EditableOMText text){ super(text); } protected State[] init(){ State[] states = super.init(); // These are the only two states that need something special // to happen. states[GRAPHIC_UNDEFINED] = new TextUndefinedState((EditableOMText)graphic); // states[GRAPHIC_SELECTED] = new TextSelectedState((EditableOMText)graphic); states[GRAPHIC_SETOFFSET] = new TextSetOffsetState((EditableOMText)graphic); return states; } }