public class MeasureListener.GeometrySearch extends HierarchyEnumerator.Visitor
Constructor and Description |
---|
MeasureListener.GeometrySearch(EditWindow wnd,
double snapDistance) |
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.
|
void |
searchGeometries(Cell cell,
java.awt.geom.Point2D point,
java.util.List<java.awt.geom.Line2D> lines,
java.util.List<java.awt.geom.Point2D> points)
Find a Primitive Node or Arc at a point in a cell.
|
boolean |
visitNodeInst(Nodable no,
HierarchyEnumerator.CellInfo info)
The HierarchyEnumerator is visiting Nodable ni.
|
newCellInfo, visitIcons
public MeasureListener.GeometrySearch(EditWindow wnd, double snapDistance)
public void searchGeometries(Cell cell, java.awt.geom.Point2D point, java.util.List<java.awt.geom.Line2D> lines, java.util.List<java.awt.geom.Point2D> points)
cell
- the cell in which the point residespoint
- a point to search underlines
- a List of lines that are in the vicinitypoints
- a List of points that are in the vicinitypublic 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 no, HierarchyEnumerator.CellInfo info)
HierarchyEnumerator.Visitor
visitNodeInst
in class HierarchyEnumerator.Visitor
no
- the Nodable that HierarchyEnumerator is visiting.