// ********************************************************************** // // <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/gui/Tool.java,v $ // $RCSfile: Tool.java,v $ // $Revision: 1.5 $ // $Date: 2006/03/06 15:41:48 $ // $Author: dietrick $ // // ********************************************************************** package com.bbn.openmap.gui; import java.awt.Container; /** * Represents an item on the ToolPanel. If the Tool is a PropertyConsumer and a * property prefix is used, the prefix should be used as the key as it is * supposed to be unique and can be used as a known discriminator. * * @author john gash contributed to this notion of a Tool. */ public interface Tool { /** * The retrieval tool's interface. This is added to the tool bar. * * @return String The key for this tool. */ public Container getFace(); /** * The retrieval key for this tool. * * @return String The key for this tool. */ public String getKey(); /** * Set the retrieval key for this tool. * * @param aKey The key for this tool. */ public void setKey(String aKey); /** * Set the orientation for the GUI of the Tool, SwingConstants.HORIZONTAL or * SwingConstants.VERTICAL. * * @param orientation that should be set on tool. */ public void setOrientation(int orientation); /** * Set the orientation for the GUI of the Tool, SwingConstants.HORIZONTAL or * SwingConstants.VERTICAL. * * @return orientation that is set on tool */ public int getOrientation(); }