com.sun.electric.tool.user.menus
Class WindowMenu

java.lang.Object
  extended by com.sun.electric.tool.user.menus.WindowMenu

public class WindowMenu
extends java.lang.Object

Class to handle the commands in the "Window" pulldown menu.


Constructor Summary
WindowMenu()
           
 
Method Summary
static void blackBackgroundCommand()
          This method implements the command to set colors so that there is a black background.
static void cascadeWindowsCommand()
          This method implements the command to tile the windows cascaded.
static void defaultBackgroundCommand()
          This method implements the command to set default background colors.
static void focusOnHighlighted()
           
static void fullDisplay()
           
static javax.swing.KeyStroke getCloseWindowAccelerator()
           
static void goToNextSavedFocus()
          Go to the previous saved view for the current Edit Window
static void goToPreviousSavedFocus()
          Go to the previous saved view for the current Edit Window
static void makeGridJustVisibleCommand()
          Method to make the current window's grid be just visible.
static void matchOtherWindowCommand(int how)
          Method to adjust the current window so that it matches that of the "other" window.
static void moveToOtherDisplayCommand()
           
static void rememberDisplayLocation()
           
static void setDynamicMenus()
           
static void tileHorizontallyCommand()
          This method implements the command to tile the windows horizontally.
static void tileVerticallyCommand()
          This method implements the command to tile the windows vertically.
static void toggleGridCommand()
          This method implements the command to toggle the display of the grid.
static void whiteBackgroundCommand()
          This method implements the command to set colors so that there is a white background.
static void zoomBoxCommand()
           
static void zoomInDisplay()
           
static void zoomOutDisplay()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowMenu

public WindowMenu()
Method Detail

getCloseWindowAccelerator

public static javax.swing.KeyStroke getCloseWindowAccelerator()

setDynamicMenus

public static void setDynamicMenus()

fullDisplay

public static void fullDisplay()

zoomOutDisplay

public static void zoomOutDisplay()

zoomInDisplay

public static void zoomInDisplay()

zoomBoxCommand

public static void zoomBoxCommand()

makeGridJustVisibleCommand

public static void makeGridJustVisibleCommand()
Method to make the current window's grid be just visible. If it is zoomed-out beyond grid visibility, it is zoomed-in so that the grid is shown. If it is zoomed-in such that the grid is not at minimum pitch, it is zoomed-out so that the grid is barely able to fit.


matchOtherWindowCommand

public static void matchOtherWindowCommand(int how)
Method to adjust the current window so that it matches that of the "other" window. For this to work, there must be exactly one other window shown.

Parameters:
how - 0 to match scale; 1 to match in X; 2 to match in Y; 3 to match all.

focusOnHighlighted

public static void focusOnHighlighted()

toggleGridCommand

public static void toggleGridCommand()
This method implements the command to toggle the display of the grid.


tileHorizontallyCommand

public static void tileHorizontallyCommand()
This method implements the command to tile the windows horizontally.


tileVerticallyCommand

public static void tileVerticallyCommand()
This method implements the command to tile the windows vertically.


cascadeWindowsCommand

public static void cascadeWindowsCommand()
This method implements the command to tile the windows cascaded.


defaultBackgroundCommand

public static void defaultBackgroundCommand()
This method implements the command to set default background colors. This function resets colors set by blackBackgroundCommand or whiteBackgroundCommand.


blackBackgroundCommand

public static void blackBackgroundCommand()
This method implements the command to set colors so that there is a black background.


whiteBackgroundCommand

public static void whiteBackgroundCommand()
This method implements the command to set colors so that there is a white background.


moveToOtherDisplayCommand

public static void moveToOtherDisplayCommand()

rememberDisplayLocation

public static void rememberDisplayLocation()

goToPreviousSavedFocus

public static void goToPreviousSavedFocus()
Go to the previous saved view for the current Edit Window


goToNextSavedFocus

public static void goToNextSavedFocus()
Go to the previous saved view for the current Edit Window