public class ArrowAttachmentPointVisitor extends java.lang.Object implements Shape.ShapeVisitor<java.lang.Void,java.util.Collection<Position>>
Constructor and Description |
---|
ArrowAttachmentPointVisitor() |
Modifier and Type | Method and Description |
---|---|
static Position |
getClosestPosition(java.util.Collection<Position> candidates,
Position from) |
void |
setFields(double x,
double y,
double width,
double height) |
java.util.Collection<Position> |
visitOval(Shape.Oval oval,
java.lang.Void arg) |
java.util.Collection<Position> |
visitPolygon(Shape.Polygon polygon,
java.lang.Void arg) |
java.util.Collection<Position> |
visitRectangle(Shape.Rectangle rectangle,
java.lang.Void arg) |
java.util.Collection<Position> |
visitRoundRectangle(Shape.RoundRectangle roundRectangle,
java.lang.Void arg) |
public void setFields(double x, double y, double width, double height)
public java.util.Collection<Position> visitRectangle(Shape.Rectangle rectangle, java.lang.Void arg)
visitRectangle
in interface Shape.ShapeVisitor<java.lang.Void,java.util.Collection<Position>>
public java.util.Collection<Position> visitOval(Shape.Oval oval, java.lang.Void arg)
visitOval
in interface Shape.ShapeVisitor<java.lang.Void,java.util.Collection<Position>>
public java.util.Collection<Position> visitRoundRectangle(Shape.RoundRectangle roundRectangle, java.lang.Void arg)
visitRoundRectangle
in interface Shape.ShapeVisitor<java.lang.Void,java.util.Collection<Position>>
public java.util.Collection<Position> visitPolygon(Shape.Polygon polygon, java.lang.Void arg)
visitPolygon
in interface Shape.ShapeVisitor<java.lang.Void,java.util.Collection<Position>>