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

java.lang.Object
  extended by com.sun.electric.tool.user.waveform.WaveformWindow
All Implemented Interfaces:
WindowContent, java.beans.PropertyChangeListener, java.util.EventListener

public class WaveformWindow
extends java.lang.Object
implements WindowContent, java.beans.PropertyChangeListener

This class defines the a screenful of Panels that make up a waveform display.


Nested Class Summary
static class WaveformWindow.Locator
          Class to find the WaveformWindow associated with the cell in a given EditWindow.
static class WaveformWindow.OnePanel
          This class extends JPanel so that components of the Waveform window can be identified by the Drag and Drop system.
 
Field Summary
static boolean USETABLES
           
static com.sun.electric.tool.user.waveform.WaveformWindow.WaveFormDropTarget waveformDropTarget
          drop target (for drag and drop)
 
Constructor Summary
WaveformWindow(Stimuli sd, WindowFrame wf)
          Constructor creates a Waveform window in a given WindowFrame with given Stimuli data.
 
Method Summary
 void addPanel(Panel panel)
          Method to add a Panel to this window.
 void addPanel(Panel panel, int index)
          Method to add a Panel to this window.
 void addSignal(Signal sig)
          Method to add a signal to the display.
 int addSweep(SweepSignal ss)
           
 void bottomScrollChanged(int e)
           
 void centerCursor()
          Method to shift the panels so that the current cursor location becomes the center.
 void centerCursor(boolean main)
          Method called when the main or extension cursors should be centered.
 void clearHighlighting()
          Method to remove all highlighting from waveform window.
 void closePanel(Panel wp)
          Method called when a Panel is to be closed.
 void crossProbeWaveformToEditWindow()
          Method called when signal waveforms change, and equivalent should be shown in the edit window.
 void deleteAllSignalsFromPanel(Panel wp)
          Method called to delete all signals from a Panel.
 void deleteSelectedSignals()
          Method called when "delete" command (or key) is given.
 void deleteSignalFromPanel(Panel wp)
          Method called to delete the highlighted signal from its Panel.
static void exportSimulationData()
          Method to write the simulation data as a tab-separated file.
static void fillInX()
          Method to make the waveform window/panel fill in X only.
static void fillInY()
          Method to make the waveform window/panel fill in Y only.
 void fillScreen()
          Method to make the waveform window/panel fill in X and Y.
 java.util.List<Signal> findAllSignals(Cell cell, VarContext context, boolean sort, boolean recurse)
          Test signal lookup
 WaveSignal findDisplayedSignal(Signal sSig)
          Method to locate a simulation signal in the waveform.
 boolean findNextText(boolean reverse)
          Method to find the next occurrence of a string.
static WaveformWindow findWaveformWindow(Cell cell)
          Method to return the waveform window associated with a Cell.
 void finished()
          Method to get rid of this WaveformWindow.
 void focusOnHighlighted()
           
 void fullRepaint()
           
 Cell getCell()
          Method to return the cell that is shown in this window.
 double getExtensionXPositionCursor()
           
 java.awt.Font getFont()
           
 java.awt.font.FontRenderContext getFontRenderContext()
           
 java.awt.Color getGateStrengthColor()
           
 double getHighDefaultHorizontalRange()
           
 java.util.List<Signal> getHighlightedNetworkNames()
          Method to return a List of highlighted simulation signals.
 java.util.Set<Network> getHighlightedNetworks()
          Method to get a Set of currently highlighted networks in this WaveformWindow.
 int getHighlightedSweep()
           
 Highlighter getHighlighter()
          Get the highlighter for this window content.
 int getLinePointMode()
          Method to return the drawing mode for analog waves.
 double getLowDefaultHorizontalRange()
           
 HorizRuler getMainHorizRuler()
           
 double getMainXPositionCursor()
           
static Network getNetworkInParent(Network childNetwork, Nodable childNodable)
          Get the Network in the childNodable's parent that corresponds to the Network inside the childNodable.
 java.awt.Color getNodeStrengthColor()
           
 int getNumPanels()
          Method to return the number of Panels in this WaveformWindow.
 java.awt.Color getOffStrengthColor()
           
 javax.swing.JPanel getPanel()
          Method to return the top-level JPanel for this WaveformWindow.
 Panel getPanel(int index)
          Method to return a Panel in this window.
 int getPanelIndex(Panel panel)
          Method to return the index of a Panel in this window.
 java.util.Iterator<Panel> getPanels()
          Method to return an Iterator over the Panel in this window.
 java.util.List<PolyBase> getPolysForPrinting()
          Method to get a list of polygons describing the waveform window.
 java.awt.Color getPowerStrengthColor()
           
 java.awt.image.BufferedImage getPrintImage(ElectricPrinter ep)
          Method to print window using offscreen canvas.
 int getPrintingMode()
          Method to return the current printing mode.
 int getScreenHighX()
           
 int getScreenLowX()
           
 javax.swing.JPanel getSignalNamesPanel()
           
static java.lang.String[] getSignalOrder(Cell cell)
          Method to get the saved signal information for a cell.
 javax.swing.JPanel getSignalTracesPanel()
           
 Stimuli getSimData()
          Method to return the stimulus information associated with this WaveformWindow.
static java.lang.String getSpiceNetName(Network net)
           
static java.lang.String getSpiceNetName(VarContext context, Network net)
          Get the spice net name associated with the network and the context.
static java.lang.String getSpiceNetName(VarContext context, Network net, boolean assuraRCXFormat)
          Get the spice net name associated with the network and the context.
 javax.swing.JTable getWaveformTable()
           
 WindowFrame getWindowFrame()
          Method to return the WindowFrame in which this WaveformWindow lives.
 Signal getXAxisSignalAll()
           
 void growPanels(double scale)
          Method called to grow or shrink the panels vertically.
 void hidePanel(Panel wp)
          Method called when a Panel is to be hidden.
 boolean initializePrinting(ElectricPrinter ep, java.awt.print.PageFormat pageFormat)
          Method to intialize for printing.
 void initTextSearch(java.lang.String search, boolean caseSensitive, boolean regExp, java.util.Set<TextUtils.WhatToSearch> whatToSearch, boolean highlightedOnly)
          Method to initialize for a new text search.
 boolean isShowGrid()
           
 boolean isSweepSignalIncluded(AnalogAnalysis an, int index)
          Method to check whether this particular sweep is included.
 boolean isWaveWindowLogarithmic()
           
 boolean isXAxisLocked()
           
 java.util.List<javax.swing.tree.MutableTreeNode> loadExplorerTrees()
           
 Panel makeNewPanel(Analysis analysis)
          Method to create a new panel with an X range similar to others on the display.
 void panXOrY(int direction, double[] panningAmounts, int ticks)
          Method to pan along X or Y according to fixed amount of ticks
static void preserveSignalOrder()
          Method called when the program exits to preserve signal ordering in cells.
 void propertyChange(java.beans.PropertyChangeEvent e)
           
 void rebuildPanelList()
           
 void redrawAllPanels()
           
static void refreshSimulationData()
          Method to refresh simulation data by menu in ToolMenu.
 void reloadTable()
           
 void removePanel(Panel panel)
          Method to remove a Panel from this window.
 void removeSignals(java.util.Set<Network> nets, VarContext context)
          Method to remove a set of Networks from the waveform display.
 void repaint()
           
 void repaintAllPanels()
           
 void replaceAllText(java.lang.String replace)
          Method to replace all selected text.
 void replaceText(java.lang.String replace)
          Method to replace the text that was just selected with findNextText().
static void restoreConfiguration()
          Method to restore the waveform window configuration from a disk file.
 void rightScrollChanged(int e)
           
static void saveConfiguration()
          Method to save the waveform window configuration to a disk file.
 void saveSignalOrder()
          Method to save the signal ordering on the cell.
 void setCell(Cell cell, VarContext context, WindowFrame.DisplayAttributes displayAttributes)
           
 void setCursor(java.awt.Cursor cursor)
          Method relevant for waveform windows where the drawing panel is not given by getPanel()
 void setDefaultHorizontalRange(double minXPosition, double maxXPosition)
          Method to set the X range in all panels.
 void setExtensionXPositionCursor(double value)
           
 void setHighlightedSweep(int sweep)
           
 void setIncludeInAllSweeps(java.util.List<SweepSignal> sweeps, boolean include)
           
 void setMainXPositionCursor(double value)
           
 void setScreenXSize(int lowX, int highX)
           
 void setSimData(Stimuli sd)
          Method to update the Simulation data for this waveform window.
 void setWaveWindowLogarithmic(boolean logarithmic)
           
 void setWindowTitle()
          Method to set the window title.
 void setXAxisSignalAll(Signal sig)
           
 void setZoomExtents(double lowVert, double highVert, double lowHoriz, double highHoriz, Panel thePanel)
          Method to set the zoom extents for this waveform window.
 void showPanel(Panel wp)
          Method called when a Panel is to be shown.
 void showSignals(Highlighter h, VarContext context, boolean newPanel)
          Method to add a selection to the waveform display.
 void showSignals(java.util.List<Signal> found, boolean newPanel)
          Method to add a list of signals to the waveform display.
 void stopEditing()
           
 void toggleGridPoints()
          Method called to toggle the display of a grid.
 void togglePanelXAxisLock()
          Method called to toggle the lock on the horizontal axes.
 void validatePanel()
           
 void vcrClickStop()
          Method to stop the auto-playing in the simulation window.
 void writeImage(ElectricPrinter ep, java.lang.String filePath)
          Method to export directly PNG file.
 void zoomInContents()
           
 void zoomOutContents()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USETABLES

public static final boolean USETABLES
See Also:
Constant Field Values

waveformDropTarget

public static com.sun.electric.tool.user.waveform.WaveformWindow.WaveFormDropTarget waveformDropTarget
drop target (for drag and drop)

Constructor Detail

WaveformWindow

public WaveformWindow(Stimuli sd,
                      WindowFrame wf)
Constructor creates a Waveform window in a given WindowFrame with given Stimuli data.

Parameters:
sd - the Stimuli data to show in the window.
wf - the WindowFrame in which to place the window.
Method Detail

stopEditing

public void stopEditing()

reloadTable

public void reloadTable()

finished

public void finished()
Method to get rid of this WaveformWindow. Called by WindowFrame when that windowFrame gets closed.

Specified by:
finished in interface WindowContent

fullRepaint

public void fullRepaint()
Specified by:
fullRepaint in interface WindowContent

repaint

public void repaint()
Specified by:
repaint in interface WindowContent

initTextSearch

public void initTextSearch(java.lang.String search,
                           boolean caseSensitive,
                           boolean regExp,
                           java.util.Set<TextUtils.WhatToSearch> whatToSearch,
                           boolean highlightedOnly)
Method to initialize for a new text search.

Specified by:
initTextSearch in interface WindowContent
Parameters:
search - the string to locate.
caseSensitive - true to match only where the case is the same.
regExp - true if the search string is a regular expression.
whatToSearch - a collection of text types to consider.
highlightedOnly - true to search only in the highlighted area.

findNextText

public boolean findNextText(boolean reverse)
Method to find the next occurrence of a string.

Specified by:
findNextText in interface WindowContent
Parameters:
reverse - true to find in the reverse direction.
Returns:
true if something was found.

replaceText

public void replaceText(java.lang.String replace)
Method to replace the text that was just selected with findNextText().

Specified by:
replaceText in interface WindowContent
Parameters:
replace - the new text to replace.

replaceAllText

public void replaceAllText(java.lang.String replace)
Method to replace all selected text.

Specified by:
replaceAllText in interface WindowContent
Parameters:
replace - the new text to replace everywhere.

writeImage

public void writeImage(ElectricPrinter ep,
                       java.lang.String filePath)
Method to export directly PNG file.

Specified by:
writeImage in interface WindowContent
Parameters:
ep - printable object.
filePath -

initializePrinting

public boolean initializePrinting(ElectricPrinter ep,
                                  java.awt.print.PageFormat pageFormat)
Method to intialize for printing.

Specified by:
initializePrinting in interface WindowContent
Parameters:
ep - the ElectricPrinter object.
pageFormat - information about the print job.
Returns:
true if no erros were found during initialization.

getPrintImage

public java.awt.image.BufferedImage getPrintImage(ElectricPrinter ep)
Method to print window using offscreen canvas.

Specified by:
getPrintImage in interface WindowContent
Parameters:
ep - printable object.
Returns:
the image to print (null on error).

panXOrY

public void panXOrY(int direction,
                    double[] panningAmounts,
                    int ticks)
Method to pan along X or Y according to fixed amount of ticks

Specified by:
panXOrY in interface WindowContent
Parameters:
direction - 0 for horizontal, 1 for vertical.
panningAmounts - an array of distances, indexed by the current panning distance index.
ticks - the number of steps to take (usually 1 or -1).

centerCursor

public void centerCursor()
Method to shift the panels so that the current cursor location becomes the center.

Specified by:
centerCursor in interface WindowContent

setWindowTitle

public void setWindowTitle()
Method to set the window title.

Specified by:
setWindowTitle in interface WindowContent

getPanel

public javax.swing.JPanel getPanel()
Method to return the top-level JPanel for this WaveformWindow. The actual WaveformWindow object is below the top level, surrounded by scroll bars and other display artifacts.

Specified by:
getPanel in interface WindowContent
Returns:
the top-level JPanel for this WaveformWindow.

setCursor

public void setCursor(java.awt.Cursor cursor)
Description copied from interface: WindowContent
Method relevant for waveform windows where the drawing panel is not given by getPanel()

Specified by:
setCursor in interface WindowContent
Parameters:
cursor - the cursor to display

setCell

public void setCell(Cell cell,
                    VarContext context,
                    WindowFrame.DisplayAttributes displayAttributes)
Specified by:
setCell in interface WindowContent

getCell

public Cell getCell()
Method to return the cell that is shown in this window.

Specified by:
getCell in interface WindowContent
Returns:
the cell that is shown in this window.

getSimData

public Stimuli getSimData()
Method to return the stimulus information associated with this WaveformWindow.

Returns:
the stimulus information associated with this WaveformWindow.

bottomScrollChanged

public void bottomScrollChanged(int e)
Specified by:
bottomScrollChanged in interface WindowContent

rightScrollChanged

public void rightScrollChanged(int e)
Specified by:
rightScrollChanged in interface WindowContent

findWaveformWindow

public static WaveformWindow findWaveformWindow(Cell cell)
Method to return the waveform window associated with a Cell. There may be multiple such windows, and the most recently used is returned.

Parameters:
cell - the Cell whose waveform window is desired.
Returns:
the waveform window that is linked to a cell. Returns null if none can be found.

getWindowFrame

public WindowFrame getWindowFrame()
Method to return the WindowFrame in which this WaveformWindow lives.

Returns:
the WindowFrame in which this WaveformWindow lives.

getScreenLowX

public int getScreenLowX()

getScreenHighX

public int getScreenHighX()

setScreenXSize

public void setScreenXSize(int lowX,
                           int highX)

getSignalNamesPanel

public javax.swing.JPanel getSignalNamesPanel()

getSignalTracesPanel

public javax.swing.JPanel getSignalTracesPanel()

getWaveformTable

public javax.swing.JTable getWaveformTable()

makeNewPanel

public Panel makeNewPanel(Analysis analysis)
Method to create a new panel with an X range similar to others on the display.

Returns:
the newly created Panel.

getNumPanels

public int getNumPanels()
Method to return the number of Panels in this WaveformWindow.

Returns:
the number of Panels in this WaveformWindow.

getPanel

public Panel getPanel(int index)
Method to return a Panel in this window.

Parameters:
index - the panel number to get.
Returns:
a Panel in this window.

getPanelIndex

public int getPanelIndex(Panel panel)
Method to return the index of a Panel in this window.

Parameters:
panel - the Panel to find.
Returns:
the index of that Panel in this window.

addPanel

public void addPanel(Panel panel)
Method to add a Panel to this window.


addPanel

public void addPanel(Panel panel,
                     int index)
Method to add a Panel to this window.


removePanel

public void removePanel(Panel panel)
Method to remove a Panel from this window.


getPanels

public java.util.Iterator<Panel> getPanels()
Method to return an Iterator over the Panel in this window.

Returns:
an Iterator over the Panel in this window.

getPrintingMode

public int getPrintingMode()
Method to return the current printing mode.

Returns:
0: color display (default), 1: color printing, 2: B&W printing

validatePanel

public void validatePanel()

rebuildPanelList

public void rebuildPanelList()

redrawAllPanels

public void redrawAllPanels()

repaintAllPanels

public void repaintAllPanels()

closePanel

public void closePanel(Panel wp)
Method called when a Panel is to be closed.

Parameters:
wp - the Panel to close.

hidePanel

public void hidePanel(Panel wp)
Method called when a Panel is to be hidden.

Parameters:
wp - the Panel to hide.

showPanel

public void showPanel(Panel wp)
Method called when a Panel is to be shown.

Parameters:
wp - the Panel to show.

growPanels

public void growPanels(double scale)
Method called to grow or shrink the panels vertically.


deleteSignalFromPanel

public void deleteSignalFromPanel(Panel wp)
Method called to delete the highlighted signal from its Panel.

Parameters:
wp - the Panel with the signal to be deleted.

deleteAllSignalsFromPanel

public void deleteAllSignalsFromPanel(Panel wp)
Method called to delete all signals from a Panel.

Parameters:
wp - the Panel to clear.

getMainHorizRuler

public HorizRuler getMainHorizRuler()

getXAxisSignalAll

public Signal getXAxisSignalAll()

setXAxisSignalAll

public void setXAxisSignalAll(Signal sig)

addSweep

public int addSweep(SweepSignal ss)

setIncludeInAllSweeps

public void setIncludeInAllSweeps(java.util.List<SweepSignal> sweeps,
                                  boolean include)

isSweepSignalIncluded

public boolean isSweepSignalIncluded(AnalogAnalysis an,
                                     int index)
Method to check whether this particular sweep is included.

Returns:
true if the sweep is included

getHighlightedSweep

public int getHighlightedSweep()

setHighlightedSweep

public void setHighlightedSweep(int sweep)

vcrClickStop

public void vcrClickStop()
Method to stop the auto-playing in the simulation window.


clearHighlighting

public void clearHighlighting()
Method to remove all highlighting from waveform window.


getHighlightedNetworkNames

public java.util.List<Signal> getHighlightedNetworkNames()
Method to return a List of highlighted simulation signals.

Returns:
a List of highlighted simulation signals.

getHighlightedNetworks

public java.util.Set<Network> getHighlightedNetworks()
Method to get a Set of currently highlighted networks in this WaveformWindow.


getHighlighter

public Highlighter getHighlighter()
Get the highlighter for this window content.

Specified by:
getHighlighter in interface WindowContent
Returns:
the highlighter

getPolysForPrinting

public java.util.List<PolyBase> getPolysForPrinting()
Method to get a list of polygons describing the waveform window.

Returns:
a List of PolyBase objects that describe this window.

loadExplorerTrees

public java.util.List<javax.swing.tree.MutableTreeNode> loadExplorerTrees()
Specified by:
loadExplorerTrees in interface WindowContent

showSignals

public void showSignals(Highlighter h,
                        VarContext context,
                        boolean newPanel)
Method to add a selection to the waveform display.

Parameters:
h - a Highlighter of what is selected.
context - the context of these networks (a string to prepend to them to get the actual simulation signal name).
newPanel - true to create new panels for each signal.

showSignals

public void showSignals(java.util.List<Signal> found,
                        boolean newPanel)
Method to add a list of signals to the waveform display.

Parameters:
found - the signals to add.
newPanel - true to create new panels for each signal.

removeSignals

public void removeSignals(java.util.Set<Network> nets,
                          VarContext context)
Method to remove a set of Networks from the waveform display.

Parameters:
nets - the Set of Networks to remove.
context - the context of these networks (a string to prepend to them to get the actual simulation signal name).

getSpiceNetName

public static java.lang.String getSpiceNetName(Network net)

getSpiceNetName

public static java.lang.String getSpiceNetName(VarContext context,
                                               Network net)
Get the spice net name associated with the network and the context. If the network is null, a String describing only the context is returned.

Parameters:
context - the context
net - the network, or null
Returns:
a String describing the unique, global spice name for the network, or a String describing the context if net is null

getSpiceNetName

public static java.lang.String getSpiceNetName(VarContext context,
                                               Network net,
                                               boolean assuraRCXFormat)
Get the spice net name associated with the network and the context. If the network is null, a String describing only the context is returned.

Parameters:
context - the context
net - the network, or null
assuraRCXFormat - return net assuming Assura RCX flat netlist format
Returns:
a String describing the unique, global spice name for the network, or a String describing the context if net is null

getNetworkInParent

public static Network getNetworkInParent(Network childNetwork,
                                         Nodable childNodable)
Get the Network in the childNodable's parent that corresponds to the Network inside the childNodable.

Parameters:
childNetwork - the network in the childNodable
Returns:
the network in the parent that connects to the specified network, or null if no such network. null on error.

findDisplayedSignal

public WaveSignal findDisplayedSignal(Signal sSig)
Method to locate a simulation signal in the waveform.

Parameters:
sSig - the Signal to locate.
Returns:
the displayed WaveSignal where it is in the waveform window. Returns null if the signal is not being displayed.

getMainXPositionCursor

public double getMainXPositionCursor()

setMainXPositionCursor

public void setMainXPositionCursor(double value)

getExtensionXPositionCursor

public double getExtensionXPositionCursor()

setExtensionXPositionCursor

public void setExtensionXPositionCursor(double value)

setDefaultHorizontalRange

public void setDefaultHorizontalRange(double minXPosition,
                                      double maxXPosition)
Method to set the X range in all panels.

Parameters:
minXPosition - the low X value.
maxXPosition - the high X value.

getLowDefaultHorizontalRange

public double getLowDefaultHorizontalRange()

getHighDefaultHorizontalRange

public double getHighDefaultHorizontalRange()

setZoomExtents

public void setZoomExtents(double lowVert,
                           double highVert,
                           double lowHoriz,
                           double highHoriz,
                           Panel thePanel)
Method to set the zoom extents for this waveform window.

Parameters:
lowVert - the low value of the vertical axis (for the given panel only).
highVert - the high value of the vertical axis (for the given panel only).
lowHoriz - the low value of the horizontal axis (for the given panel only unless X axes are locked).
highHoriz - the high value of the horizontal axis (for the given panel only unless X axes are locked).
thePanel - the panel being zoomed.

togglePanelXAxisLock

public void togglePanelXAxisLock()
Method called to toggle the lock on the horizontal axes.


isXAxisLocked

public boolean isXAxisLocked()

findAllSignals

public java.util.List<Signal> findAllSignals(Cell cell,
                                             VarContext context,
                                             boolean sort,
                                             boolean recurse)
Test signal lookup


crossProbeWaveformToEditWindow

public void crossProbeWaveformToEditWindow()
Method called when signal waveforms change, and equivalent should be shown in the edit window.


centerCursor

public void centerCursor(boolean main)
Method called when the main or extension cursors should be centered.

Parameters:
main - true for the main cursor, false for the extension cursor.

setSimData

public void setSimData(Stimuli sd)
Method to update the Simulation data for this waveform window. When new data is read from disk, this is used.

Parameters:
sd - new simulation data for this window.

exportSimulationData

public static void exportSimulationData()
Method to write the simulation data as a tab-separated file.


refreshSimulationData

public static void refreshSimulationData()
Method to refresh simulation data by menu in ToolMenu. This would allow to attach a KeyBinding


saveConfiguration

public static void saveConfiguration()
Method to save the waveform window configuration to a disk file.


restoreConfiguration

public static void restoreConfiguration()
Method to restore the waveform window configuration from a disk file.


saveSignalOrder

public void saveSignalOrder()
Method to save the signal ordering on the cell.


preserveSignalOrder

public static void preserveSignalOrder()
Method called when the program exits to preserve signal ordering in cells.


getSignalOrder

public static java.lang.String[] getSignalOrder(Cell cell)
Method to get the saved signal information for a cell.

Parameters:
cell - the Cell to query.
Returns:
a list of strings, one per waveform window panel, with tab-separated signal names in that panel. Returns an empty array if nothing is saved.

getFont

public java.awt.Font getFont()

getFontRenderContext

public java.awt.font.FontRenderContext getFontRenderContext()

getOffStrengthColor

public java.awt.Color getOffStrengthColor()

getNodeStrengthColor

public java.awt.Color getNodeStrengthColor()

getGateStrengthColor

public java.awt.Color getGateStrengthColor()

getPowerStrengthColor

public java.awt.Color getPowerStrengthColor()

getLinePointMode

public int getLinePointMode()
Method to return the drawing mode for analog waves.

Returns:
the drawing mode for analog waves. 0 means draw lines only; 1 means draw lines and points; 2 means draw points only.

toggleGridPoints

public void toggleGridPoints()
Method called to toggle the display of a grid.


isShowGrid

public boolean isShowGrid()

addSignal

public void addSignal(Signal sig)
Method to add a signal to the display. Called when the user double-clicks on the signal in the explorer tree.

Parameters:
sig - the Signal to add to the display

deleteSelectedSignals

public void deleteSelectedSignals()
Method called when "delete" command (or key) is given. If a control point is selected, delete it. If a single signal of an analog window is selected, remove it.


fillInX

public static void fillInX()
Method to make the waveform window/panel fill in X only.


fillInY

public static void fillInY()
Method to make the waveform window/panel fill in Y only.


fillScreen

public void fillScreen()
Method to make the waveform window/panel fill in X and Y.

Specified by:
fillScreen in interface WindowContent

zoomOutContents

public void zoomOutContents()
Specified by:
zoomOutContents in interface WindowContent

zoomInContents

public void zoomInContents()
Specified by:
zoomInContents in interface WindowContent

focusOnHighlighted

public void focusOnHighlighted()
Specified by:
focusOnHighlighted in interface WindowContent

isWaveWindowLogarithmic

public boolean isWaveWindowLogarithmic()

setWaveWindowLogarithmic

public void setWaveWindowLogarithmic(boolean logarithmic)

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
Specified by:
propertyChange in interface java.beans.PropertyChangeListener