public PolygonArtifact(String id, boolean fill, Color color, List<Point2d> points) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; setPoints(points); }
public PolygonArtifact(String id, boolean fill, Color color, ConvexPolygon2D convexPolygon2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; setPoints(convexPolygon2d); }
public PolygonArtifact(String id, boolean fill, Color color, int level, ConvexPolygon2D convexPolygon2d) { super(id); setLevel(level); FILL_POLYGON = fill; this.color = color; setPoints(convexPolygon2d); }
public PolygonArtifact(String id, boolean fill, Color color, List<Point2D> points) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; setPoints(points); }
public PolygonArtifact(String id, boolean fill, Color color, ConvexPolygon2d convexPolygon2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; setPoints(convexPolygon2d); }
public PolygonArtifact(String id, boolean fill, Color color, int level, ConvexPolygon2d convexPolygon2d) { super(id); setLevel(level); FILL_POLYGON = fill; this.color = color; setPoints(convexPolygon2d); }
public PolygonArtifact(String id, boolean fill, Color color, BoundingBox2d boundingBox2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; Point2d minPoint = new Point2d(); boundingBox2d.getMinPoint(minPoint); Point2d maxPoint = new Point2d(); boundingBox2d.getMaxPoint(maxPoint); Point2d leftUpper = new Point2d(minPoint.getX(), maxPoint.getY()); Point2d rightLower = new Point2d(maxPoint.getX(), minPoint.getY()); ArrayList<Point2d> points = new ArrayList<Point2d>(); points.add(minPoint); points.add(leftUpper); points.add(maxPoint); points.add(rightLower); setPoints(points); }
public PolygonArtifact(String id, boolean fill, Color color, BoundingBox2D boundingBox2d) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; Point2D minPoint = new Point2D(); boundingBox2d.getMinPoint(minPoint); Point2D maxPoint = new Point2D(); boundingBox2d.getMaxPoint(maxPoint); Point2D leftUpper = new Point2D(minPoint.getX(), maxPoint.getY()); Point2D rightLower = new Point2D(maxPoint.getX(), minPoint.getY()); ArrayList<Point2D> points = new ArrayList<Point2D>(); points.add(minPoint); points.add(leftUpper); points.add(maxPoint); points.add(rightLower); setPoints(points); }