org.vectomatic.client.rep.view
Class PickVisitor
java.lang.Object
org.vectomatic.client.rep.view.PickVisitor
- All Implemented Interfaces:
- IShapeVisitor
public class PickVisitor
- extends Object
- implements IShapeVisitor
Shape visitor implementation to perform pick correlation
on the 2D model
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PickVisitor
public PickVisitor(DrawingView view)
pick
public Shape pick(Point p,
Iterator<Shape> shapes)
- Returns the picked shape
- Parameters:
p
- A picking point, in model coordinatesshapes
- A list of shapes to pick from
- Returns:
- The picked shape, or null if none is picked.
visitEllipse
public void visitEllipse(Ellipse ellipse)
- Specified by:
visitEllipse
in interface IShapeVisitor
visitPolyline
public void visitPolyline(Polyline polyline)
- Specified by:
visitPolyline
in interface IShapeVisitor
visitRect
public void visitRect(Rect rect)
- Specified by:
visitRect
in interface IShapeVisitor
visitShapeGroup
public void visitShapeGroup(ShapeGroup group)
- Specified by:
visitShapeGroup
in interface IShapeVisitor
visitPath
public void visitPath(Path path)
- Specified by:
visitPath
in interface IShapeVisitor
Copyright © 2010. All Rights Reserved.