public class NetworkHighlighter extends HierarchyEnumerator.Visitor
Modifier and Type | Method and Description |
---|---|
boolean |
enterCell(HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is about to begin enumerating the
contents of a new Cell instance.
|
void |
exitCell(HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator has finished enumerating the
contents of the current Cell instance.
|
static java.util.List<Highlight2> |
getHighlights(Cell cell,
Netlist netlist,
java.util.Set<Network> nets,
int startDepth,
int endDepth)
Returns a list of Highlight objects that draw lines and boxes over
instances that denote the location of objects in that instance that
are connected to net.
|
boolean |
visitNodeInst(Nodable ni,
HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is visiting Nodable ni.
|
newCellInfo
public static java.util.List<Highlight2> getHighlights(Cell cell, Netlist netlist, java.util.Set<Network> nets, int startDepth, int endDepth)
cell
- the cell in which to highlight objectsnetlist
- the netlist for the cellnets
- objects connected to these networks will be highlightedstartDepth
- to start depth of the hierarchical searchpublic boolean enterCell(HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
enterCell
in class HierarchyEnumerator.Visitor
info
- information about the Cell instance being
enumeratedpublic void exitCell(HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
exitCell
in class HierarchyEnumerator.Visitor
info
- information about the Cell instance being
enumeratedpublic boolean visitNodeInst(Nodable ni, HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
visitNodeInst
in class HierarchyEnumerator.Visitor
ni
- the Nodable that HierarchyEnumerator is visiting.