net.officefloor.eclipse.tool.demo
Class MoveActiveShellMacro

java.lang.Object
  extended by net.officefloor.eclipse.tool.demo.MoveActiveShellMacro
All Implemented Interfaces:
Macro, MacroSource

public class MoveActiveShellMacro
extends Object
implements MacroSource, Macro

MacroSource to source a Macro to move the active window ( Shell).

Author:
Daniel Sagenschneider

Nested Class Summary
 class MoveActiveShellMacro.MoveShellToLocationMacroTask
          Moves the mouse (and subsequently the Shell) to the specified move location.
 
Field Summary
static int MENU_BAR_HEIGHT
          Height of the menu bar.
static int MOUSE_OFFSET_WIDTH
          Offset into width for mouse to move the Shell.
static int TITLE_BAR_HEIGHT
          Height of the title bar.
 
Constructor Summary
MoveActiveShellMacro()
           
 
Method Summary
 String getConfigurationMemento()
           
 String getDisplayLabel()
           
 String getDisplayName()
           
 MacroTask[] getMacroTasks()
           
 Point getStartingMouseLocation()
           
 void setConfigurationMemento(String memento)
           
 void sourceMacro(MacroSourceContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TITLE_BAR_HEIGHT

public static final int TITLE_BAR_HEIGHT
Height of the title bar.

See Also:
Constant Field Values

MENU_BAR_HEIGHT

public static final int MENU_BAR_HEIGHT
Height of the menu bar.

See Also:
Constant Field Values

MOUSE_OFFSET_WIDTH

public static final int MOUSE_OFFSET_WIDTH
Offset into width for mouse to move the Shell.

See Also:
Constant Field Values
Constructor Detail

MoveActiveShellMacro

public MoveActiveShellMacro()
Method Detail

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface MacroSource

sourceMacro

public void sourceMacro(MacroSourceContext context)
Specified by:
sourceMacro in interface MacroSource

getDisplayLabel

public String getDisplayLabel()
Specified by:
getDisplayLabel in interface Macro

getStartingMouseLocation

public Point getStartingMouseLocation()
Specified by:
getStartingMouseLocation in interface Macro

setConfigurationMemento

public void setConfigurationMemento(String memento)
Specified by:
setConfigurationMemento in interface Macro

getConfigurationMemento

public String getConfigurationMemento()
Specified by:
getConfigurationMemento in interface Macro

getMacroTasks

public MacroTask[] getMacroTasks()
Specified by:
getMacroTasks in interface Macro


Copyright © 2005-2012. All Rights Reserved.