com.sun.electric.tool.user.waveform
Class WaveformWindow.Locator

java.lang.Object
  extended by com.sun.electric.tool.user.waveform.WaveformWindow.Locator
Enclosing class:
WaveformWindow

public static class WaveformWindow.Locator
extends java.lang.Object

Class to find the WaveformWindow associated with the cell in a given EditWindow. May have to climb the hierarchy to find the top-level cell that is being simulated.


Constructor Summary
WaveformWindow.Locator(EditWindow wnd)
          The constructor takes an EditWindow and locates the associated WaveformWindow.
WaveformWindow.Locator(EditWindow wnd, WaveformWindow wantWW)
          The constructor takes an EditWindow and a WaveformWindow and determines whether they are associated.
 
Method Summary
 VarContext getContext()
          Method to return the context of all signals in the EditWindow given to the constructor.
 WaveformWindow getWaveformWindow()
          Method to return the WaveformWindow found by this locator class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaveformWindow.Locator

public WaveformWindow.Locator(EditWindow wnd)
The constructor takes an EditWindow and locates the associated WaveformWindow. It may have to climb the hierarchy to find it.

Parameters:
wnd - the EditWindow that is being simulated.

WaveformWindow.Locator

public WaveformWindow.Locator(EditWindow wnd,
                              WaveformWindow wantWW)
The constructor takes an EditWindow and a WaveformWindow and determines whether they are associated. It may have to climb the hierarchy to find out.

Parameters:
wnd - the EditWindow that is being simulated.
wantWW - the WaveformWindow that is being associated.
Method Detail

getWaveformWindow

public WaveformWindow getWaveformWindow()
Method to return the WaveformWindow found by this locator class.

Returns:
the WaveformWindow associated with the EditWindow given to the contructor. Returns null if no WaveformWindow could be found.

getContext

public VarContext getContext()
Method to return the context of all signals in the EditWindow given to the constructor.

Returns:
the context to prepend to all signals in the EditWindow. If the EditWindow is directly associated with a WaveformWindow, returns "".