edu.jhu.tmaj.client.frida.gui.shared
Class LimitedToolBar

java.lang.Object
  extended by edu.jhu.tmaj.client.frida.gui.shared.LimitedToolBar

public final class LimitedToolBar
extends java.lang.Object

This class is used to show only part of the imageJ tool bar; Part of the tool-bar that is made available in this class in the zoom tool, the freehand-selection tool, and the hand tool. We don't want to make the entire toolbar available because that would confuse the user with too many options. Important note: This class won't work unless you have used this line before using the class: ImageJ i = new ImageJ(); This last line "hooks" this class up with the current ImagePlus that is in focus.


Nested Class Summary
static class LimitedToolBar.ImageTool
          Represents all the tools from ImageJ that this class will support.
 
Constructor Summary
LimitedToolBar(LimitedToolBar.ImageTool... imageTools)
           
 
Method Summary
 void addKeyListener(java.awt.event.KeyListener keyListener)
           
 javax.swing.JComponent getComponent()
          Gets the Swing Component that this class represents.
 LimitedToolBar.ImageTool getSelectedTool()
          Gets the currently selected ImageTool.
 void setEnabled(boolean enabled)
          Sets buttons as enabled or disabled
 void setTool(LimitedToolBar.ImageTool imageTool)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimitedToolBar

public LimitedToolBar(LimitedToolBar.ImageTool... imageTools)
Method Detail

setTool

public void setTool(LimitedToolBar.ImageTool imageTool)

getSelectedTool

public LimitedToolBar.ImageTool getSelectedTool()
Gets the currently selected ImageTool.


setEnabled

public void setEnabled(boolean enabled)
Sets buttons as enabled or disabled


addKeyListener

public void addKeyListener(java.awt.event.KeyListener keyListener)

getComponent

public javax.swing.JComponent getComponent()
Gets the Swing Component that this class represents.