|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.electric.tool.user.waveform.WaveformWindow
public class WaveformWindow
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. |
static void |
clearSimulationData()
Method to clear all panels from the 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,
boolean starRCXTFormat)
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,
CodeExpression.Code codeRestr,
AbstractTextDescriptor.Unit unitRestr,
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 |
---|
public static final boolean USETABLES
public static com.sun.electric.tool.user.waveform.WaveformWindow.WaveFormDropTarget waveformDropTarget
Constructor Detail |
---|
public WaveformWindow(Stimuli sd, WindowFrame wf)
sd
- the Stimuli data to show in the window.wf
- the WindowFrame in which to place the window.Method Detail |
---|
public void stopEditing()
public void reloadTable()
public void finished()
finished
in interface WindowContent
public void fullRepaint()
fullRepaint
in interface WindowContent
public void repaint()
repaint
in interface WindowContent
public void initTextSearch(java.lang.String search, boolean caseSensitive, boolean regExp, java.util.Set<TextUtils.WhatToSearch> whatToSearch, CodeExpression.Code codeRestr, AbstractTextDescriptor.Unit unitRestr, boolean highlightedOnly)
initTextSearch
in interface WindowContent
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.codeRestr
- a restriction on types of Code to consider (null to consider all Code values).unitRestr
- a restriction on types of Units to consider (null to consider all Unit values).highlightedOnly
- true to search only in the highlighted area.public boolean findNextText(boolean reverse)
findNextText
in interface WindowContent
reverse
- true to find in the reverse direction.
public void replaceText(java.lang.String replace)
replaceText
in interface WindowContent
replace
- the new text to replace.public void replaceAllText(java.lang.String replace)
replaceAllText
in interface WindowContent
replace
- the new text to replace everywhere.public void writeImage(ElectricPrinter ep, java.lang.String filePath)
writeImage
in interface WindowContent
ep
- printable object.filePath
- public boolean initializePrinting(ElectricPrinter ep, java.awt.print.PageFormat pageFormat)
initializePrinting
in interface WindowContent
ep
- the ElectricPrinter object.pageFormat
- information about the print job.
public java.awt.image.BufferedImage getPrintImage(ElectricPrinter ep)
getPrintImage
in interface WindowContent
ep
- printable object.
public void panXOrY(int direction, double[] panningAmounts, int ticks)
panXOrY
in interface WindowContent
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).public void centerCursor()
centerCursor
in interface WindowContent
public void setWindowTitle()
setWindowTitle
in interface WindowContent
public javax.swing.JPanel getPanel()
getPanel
in interface WindowContent
public void setCursor(java.awt.Cursor cursor)
WindowContent
setCursor
in interface WindowContent
cursor
- the cursor to displaypublic void setCell(Cell cell, VarContext context, WindowFrame.DisplayAttributes displayAttributes)
setCell
in interface WindowContent
public Cell getCell()
getCell
in interface WindowContent
public Stimuli getSimData()
public void bottomScrollChanged(int e)
bottomScrollChanged
in interface WindowContent
public void rightScrollChanged(int e)
rightScrollChanged
in interface WindowContent
public static WaveformWindow findWaveformWindow(Cell cell)
cell
- the Cell whose waveform window is desired.
public WindowFrame getWindowFrame()
public int getScreenLowX()
public int getScreenHighX()
public void setScreenXSize(int lowX, int highX)
public javax.swing.JPanel getSignalNamesPanel()
public javax.swing.JPanel getSignalTracesPanel()
public javax.swing.JTable getWaveformTable()
public Panel makeNewPanel(Analysis analysis)
public int getNumPanels()
public Panel getPanel(int index)
index
- the panel number to get.
public int getPanelIndex(Panel panel)
panel
- the Panel to find.
public void addPanel(Panel panel)
public void addPanel(Panel panel, int index)
public void removePanel(Panel panel)
public java.util.Iterator<Panel> getPanels()
public int getPrintingMode()
public void validatePanel()
public void rebuildPanelList()
public void redrawAllPanels()
public void repaintAllPanels()
public void closePanel(Panel wp)
wp
- the Panel to close.public void hidePanel(Panel wp)
wp
- the Panel to hide.public void showPanel(Panel wp)
wp
- the Panel to show.public void growPanels(double scale)
public void deleteSignalFromPanel(Panel wp)
wp
- the Panel with the signal to be deleted.public void deleteAllSignalsFromPanel(Panel wp)
wp
- the Panel to clear.public HorizRuler getMainHorizRuler()
public Signal getXAxisSignalAll()
public void setXAxisSignalAll(Signal sig)
public int addSweep(SweepSignal ss)
public void setIncludeInAllSweeps(java.util.List<SweepSignal> sweeps, boolean include)
public boolean isSweepSignalIncluded(AnalogAnalysis an, int index)
public int getHighlightedSweep()
public void setHighlightedSweep(int sweep)
public void vcrClickStop()
public void clearHighlighting()
public java.util.List<Signal> getHighlightedNetworkNames()
public java.util.Set<Network> getHighlightedNetworks()
public Highlighter getHighlighter()
getHighlighter
in interface WindowContent
public java.util.List<PolyBase> getPolysForPrinting()
public java.util.List<javax.swing.tree.MutableTreeNode> loadExplorerTrees()
loadExplorerTrees
in interface WindowContent
public void showSignals(Highlighter h, VarContext context, boolean newPanel)
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.public void showSignals(java.util.List<Signal> found, boolean newPanel)
found
- the signals to add.newPanel
- true to create new panels for each signal.public void removeSignals(java.util.Set<Network> nets, VarContext context)
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).public static java.lang.String getSpiceNetName(Network net)
public static java.lang.String getSpiceNetName(VarContext context, Network net)
context
- the contextnet
- the network, or null
public static java.lang.String getSpiceNetName(VarContext context, Network net, boolean assuraRCXFormat, boolean starRCXTFormat)
context
- the contextnet
- the network, or nullassuraRCXFormat
- return net assuming Assura RCX flat netlist formatstarRCXTFormat
- return net assuming Star RCXT flat netlist format
public static Network getNetworkInParent(Network childNetwork, Nodable childNodable)
childNetwork
- the network in the childNodable
public WaveSignal findDisplayedSignal(Signal sSig)
sSig
- the Signal to locate.
public double getMainXPositionCursor()
public void setMainXPositionCursor(double value)
public double getExtensionXPositionCursor()
public void setExtensionXPositionCursor(double value)
public void setDefaultHorizontalRange(double minXPosition, double maxXPosition)
minXPosition
- the low X value.maxXPosition
- the high X value.public double getLowDefaultHorizontalRange()
public double getHighDefaultHorizontalRange()
public void setZoomExtents(double lowVert, double highVert, double lowHoriz, double highHoriz, Panel thePanel)
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.public void togglePanelXAxisLock()
public boolean isXAxisLocked()
public java.util.List<Signal> findAllSignals(Cell cell, VarContext context, boolean sort, boolean recurse)
public void crossProbeWaveformToEditWindow()
public void centerCursor(boolean main)
main
- true for the main cursor, false for the extension cursor.public void setSimData(Stimuli sd)
sd
- new simulation data for this window.public static void exportSimulationData()
public static void refreshSimulationData()
public static void clearSimulationData()
public static void saveConfiguration()
public static void restoreConfiguration()
public void saveSignalOrder()
public static void preserveSignalOrder()
public static java.lang.String[] getSignalOrder(Cell cell)
cell
- the Cell to query.
public java.awt.Font getFont()
public java.awt.font.FontRenderContext getFontRenderContext()
public java.awt.Color getOffStrengthColor()
public java.awt.Color getNodeStrengthColor()
public java.awt.Color getGateStrengthColor()
public java.awt.Color getPowerStrengthColor()
public int getLinePointMode()
public void toggleGridPoints()
public boolean isShowGrid()
public void addSignal(Signal sig)
sig
- the Signal to add to the displaypublic void deleteSelectedSignals()
public static void fillInX()
public static void fillInY()
public void fillScreen()
fillScreen
in interface WindowContent
public void zoomOutContents()
zoomOutContents
in interface WindowContent
public void zoomInContents()
zoomInContents
in interface WindowContent
public void focusOnHighlighted()
focusOnHighlighted
in interface WindowContent
public boolean isWaveWindowLogarithmic()
public void setWaveWindowLogarithmic(boolean logarithmic)
public void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |