/* ********************************************************************** * * Use, duplication, or disclosure by the Government is subject to * restricted rights as set forth in the DFARS. * * BBNT Solutions LLC * A Part of * GTE * 10 Moulton Street * Cambridge, MA 02138 * (617) 873-3000 * * Copyright 1998, 2000 by BBNT Solutions LLC, * A part of GTE, all rights reserved. * * ********************************************************************** * * $Source: /net/bitburg/u4/distapps/rcs/submissions/layerEnabledNotification/LayerEnabledEvent.java,v $ * $Revision: 1.1 $ * $Date: 2000/12/22 01:51:11 $ * $Author: dietrick $ * * ********************************************************************** */ package com.bbn.openmap.event; import com.bbn.openmap.Layer; /** * An event which enables or disables the layer. */ public class LayerEnabledEvent extends java.util.EventObject { public final static transient int LAYER_ENABLED = 8360; public final static transient int LAYER_DISABLED = 8361; protected int status = -1; /** * Construct a LayerEnabledEvent. * @param source Source Object * @param LAYER_ENABLED or LAYER_DISABLED * */ public LayerEnabledEvent (Layer source, int status) { super(source); this.status = status; } /** * Get the status of the layer. * @return int status */ public int getStatus () { return status; } /** * Get the associated Layer. * @return Layer */ public Layer getLayer () { return (Layer)getSource(); } }