|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
com.sun.electric.tool.user.ui.WindowFrame
public class WindowFrame
This class defines an edit window, with a cell explorer on the left side.
Nested Class Summary | |
---|---|
static class |
WindowFrame.CellHistory
Class to track CellHistory and associated values. |
static class |
WindowFrame.CurTechControlListener
Class to handle changes the "Technology" selection of either the Layer tab or the Component tab of the side bar. |
static class |
WindowFrame.DisplayAttributes
|
Field Summary | |
---|---|
static java.awt.event.KeyListener |
curKeyListener
current key listener |
static java.awt.event.MouseListener |
curMouseListener
current mouse listener |
static java.awt.event.MouseMotionListener |
curMouseMotionListener
current mouse motion listener |
static java.awt.event.MouseWheelListener |
curMouseWheelListener
current mouse wheel listener |
Constructor Summary | |
---|---|
WindowFrame()
|
Method Summary | |
---|---|
void |
addToHistory(Cell cell,
VarContext context,
WindowFrame.DisplayAttributes da)
Adds to cellHistory record list. |
static void |
autoTechnologySwitch(Cell cell,
WindowFrame wf)
Method to automatically switch to the proper technology for a Cell. |
boolean |
cellHistoryCanGoBack()
Returns true if we can go back in history list, false otherwise |
boolean |
cellHistoryCanGoForward()
Returns true if we can go forward in history list, false otherwise |
void |
cellHistoryGoBack()
Go back in history list. |
void |
cellHistoryGoForward()
Go forward in history list. |
java.lang.String |
composeTitle(Cell cell,
java.lang.String prefix,
int pageNo)
Centralized version of naming windows. |
static WindowFrame |
createEditWindow(Cell cell)
Method to create a new circuit-editing window on the screen that displays a Cell. |
static WindowFrame |
createWaveformWindow(Stimuli sd)
Method to create a new waveform window on the screen given the simulation data. |
int |
findCellHistoryIndex(Cell cell,
VarContext context)
Method to find a CellHistory index that shows a given cell and context. |
static WindowFrame |
findFromIndex(int index)
Method to find the WindowFrame associated with an index number. |
void |
finished()
Method to record that this WindowFrame has been closed. |
void |
finishWindowFrameInformation(WindowContent wnd,
Cell cell)
Method to finish with frame pointers. |
void |
fireCellHistoryStatus()
Method to updates back/forward button states. |
boolean |
generatedEvent(java.awt.AWTEvent e)
Returns true if this window frame or it's components generated this event. |
java.util.List<WindowFrame.CellHistory> |
getCellHistoryList()
Method to return the list of cell histories associated with this WindowFrame. |
int |
getCellHistoryLocation()
Method to return the current position in the cell history list. |
java.awt.Component |
getComponent()
|
WindowContent |
getContent()
Method to get the content of this window. |
static Cell |
getCurrentCell()
Method to return the current Cell. |
static WindowFrame |
getCurrentWindowFrame()
Method to get the current WindowFrame. |
static WindowFrame |
getCurrentWindowFrame(boolean makeNewFrame)
Method to get the current WindowFrame. |
javax.swing.JMenu |
getDynamicMenu()
|
ExplorerTree |
getExplorerTab()
Method to return the Explorer tab associated with this WindowFrame. |
TopLevel |
getFrame()
Method to return the TopLevel associated with this WindowFrame. |
int |
getIndex()
Method to get the unique index number of this WindowFrame. |
javax.swing.JInternalFrame |
getInternalFrame()
Method to return the JInternalFrame associated with this WindowFrame. |
LayerTab |
getLayersTab()
Method to return the layer visibility tab associated with this WindowFrame. |
static java.util.EventListener |
getListener()
Method to get the current listener that responds to clicks in any window. |
static int |
getNumWindows()
Method to return the number of WindowFrames. |
PaletteFrame |
getPaletteTab()
Method to return the component palette associated with this WindowFrame. |
java.lang.String |
getTitle()
Method to get the description on the window frame |
ToolBar |
getToolBar()
Method to return the ToolBar associated with this WindowFrame. |
int |
getUsageClock()
Method to return the usage clock of this WindowFrame. |
WaveformWindow |
getWaveformWindow()
Method to return the WaveformWindow associated with this frame. |
static java.util.Iterator<WindowFrame> |
getWindows()
Method to return an Iterator over all WindowFrames. |
boolean |
isFocusOwner()
|
void |
loadComponentMenuForTechnology()
Set the Technology popup in the component tab and the layers tab to the current technology. |
java.util.List<javax.swing.tree.MutableTreeNode> |
loadDefaultExplorerTree()
|
void |
moveEditWindow(java.awt.GraphicsConfiguration gc)
|
static Cell |
needCurCell()
Method to insist on a current Cell. |
static void |
redrawNewColors()
|
static void |
removeLibraryReferences(Library lib)
|
void |
requestFocus()
Method to request focus on this window |
void |
saveCurrentCellHistoryState()
Records current cell state into history Assumes record pointed to by cellHistoryLocation is history record for the current cell/context. |
void |
setCellByHistory(int location)
Restores cell state from history record |
void |
setCellWindow(Cell cell,
WindowFrame.CellHistory history)
Method to show a cell in the right-part of this WindowFrame. |
void |
setCursor(java.awt.Cursor cursor)
Method to set the cursor that is displayed in the WindowFrame. |
void |
setDynamicMenu(javax.swing.JMenu menu)
Method to set the dynamic menu where |
static void |
setListener(java.util.EventListener listener)
Method to set the current listener that responds to clicks in any window. |
static void |
setSideBarLocation(boolean onLeft)
|
void |
setTitle(java.lang.String title)
Method to set the description on the window frame |
void |
setWindowSize(java.awt.Rectangle frameRect)
|
static void |
show3DHighlight()
Method to access 3D view and highligh elements if view is available |
static void |
updateTechnologyLists()
Method to update all technology popup selectors. |
static void |
wantToOpenCurrentLibrary(boolean openLib,
Cell cell)
Method to force the explorer tree to show the current library or signals list. |
static void |
wantToRedoLibraryTree()
Method to request that the library tree be reloaded. |
void |
wantToRedoSignalTree()
|
static void |
wantToRedoTitleNames()
|
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.awt.event.MouseListener curMouseListener
public static java.awt.event.MouseMotionListener curMouseMotionListener
public static java.awt.event.MouseWheelListener curMouseWheelListener
public static java.awt.event.KeyListener curKeyListener
Constructor Detail |
---|
public WindowFrame()
Method Detail |
---|
public static void redrawNewColors()
public void setDynamicMenu(javax.swing.JMenu menu)
menu
- public javax.swing.JMenu getDynamicMenu()
public static WindowFrame createEditWindow(Cell cell)
cell
- the cell to display.
public int getIndex()
public static WindowFrame findFromIndex(int index)
index
- the index number.
public void finishWindowFrameInformation(WindowContent wnd, Cell cell)
public static void show3DHighlight()
public static WindowFrame createWaveformWindow(Stimuli sd)
sd
- the simulation data to use in the waveform window.
public static void updateTechnologyLists()
public java.util.List<javax.swing.tree.MutableTreeNode> loadDefaultExplorerTree()
public void loadComponentMenuForTechnology()
public java.awt.Component getComponent()
public int getUsageClock()
public void setCellWindow(Cell cell, WindowFrame.CellHistory history)
cell
- the Cell to display.public void moveEditWindow(java.awt.GraphicsConfiguration gc)
public static void wantToOpenCurrentLibrary(boolean openLib, Cell cell)
openLib
- true to open the current library, false to open the signals list.cell
- cell to select in ExplorerTreepublic static void wantToRedoLibraryTree()
public void wantToRedoSignalTree()
public static void setSideBarLocation(boolean onLeft)
public WindowContent getContent()
public static WindowFrame getCurrentWindowFrame()
public static WindowFrame getCurrentWindowFrame(boolean makeNewFrame)
makeNewFrame
- whether or not to make a new WindowFrame if no current frame
public static void setListener(java.util.EventListener listener)
listener
- the new lister to be in effect.public static java.util.EventListener getListener()
public static Cell getCurrentCell()
public static Cell needCurCell()
public void setCursor(java.awt.Cursor cursor)
cursor
- the cursor to display here.public static void removeLibraryReferences(Library lib)
public void requestFocus()
public boolean isFocusOwner()
public static void wantToRedoTitleNames()
public void setWindowSize(java.awt.Rectangle frameRect)
public void finished()
public WaveformWindow getWaveformWindow()
public ExplorerTree getExplorerTab()
public PaletteFrame getPaletteTab()
public LayerTab getLayersTab()
public TopLevel getFrame()
public ToolBar getToolBar()
public javax.swing.JInternalFrame getInternalFrame()
public boolean generatedEvent(java.awt.AWTEvent e)
e
- the event generated
public static int getNumWindows()
public static java.util.Iterator<WindowFrame> getWindows()
public java.lang.String composeTitle(Cell cell, java.lang.String prefix, int pageNo)
cell
- the cell in the window.prefix
- a prefix for the title.public void setTitle(java.lang.String title)
public java.lang.String getTitle()
public static void autoTechnologySwitch(Cell cell, WindowFrame wf)
cell
- the cell being displayed.
If technology auto-switching is on, make sure the right technology is displayed
for the Cell.public java.util.List<WindowFrame.CellHistory> getCellHistoryList()
public int getCellHistoryLocation()
public void cellHistoryGoBack()
public void cellHistoryGoForward()
public boolean cellHistoryCanGoBack()
public boolean cellHistoryCanGoForward()
public void fireCellHistoryStatus()
public void addToHistory(Cell cell, VarContext context, WindowFrame.DisplayAttributes da)
public void saveCurrentCellHistoryState()
public void setCellByHistory(int location)
public int findCellHistoryIndex(Cell cell, VarContext context)
cell
- the cell to find.context
- the cell context to find.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |