// ********************************************************************** // // <copyright> // // BBN Technologies // 10 Moulton Street // Cambridge, MA 02138 // (617) 873-8000 // // Copyright (C) BBNT Solutions LLC. All rights reserved. // // </copyright> // ********************************************************************** // // $Source: // /cvs/distapps/openmap/src/openmap/com/bbn/openmap/omGraphics/editable/ScalingRasterStateMachine.java,v // $ // $RCSfile: ScalingRasterStateMachine.java,v $ // $Revision: 1.2 $ // $Date: 2004/10/14 18:06:16 $ // $Author: dietrick $ // // ********************************************************************** package com.bbn.openmap.omGraphics.editable; import com.bbn.openmap.omGraphics.EditableOMScalingRaster; import com.bbn.openmap.util.Debug; import com.bbn.openmap.util.stateMachine.State; public class ScalingRasterStateMachine extends EOMGStateMachine { public ScalingRasterStateMachine(EditableOMScalingRaster raster) { super(raster); } protected State[] init() { State[] states = super.init(); Debug.message("eomc", "ScalingRasterStateMachine.init()"); // These are the only two states that need something special // to happen. states[GRAPHIC_UNDEFINED] = new ScalingRasterUndefinedState((EditableOMScalingRaster) graphic); states[GRAPHIC_SELECTED] = new ScalingRasterSelectedState((EditableOMScalingRaster) graphic); states[GRAPHIC_SETOFFSET] = new ScalingRasterSetOffsetState((EditableOMScalingRaster) graphic); return states; } }