public CircleArtifact getCopy() { CircleArtifact cirlceCopy = new CircleArtifact(this.getID(), x, y, diameter, fill); cirlceCopy.setColor(this.getColor()); return cirlceCopy; }
public CircleArtifact(String string, double x2, double y2, double d, boolean b, Color color) { this(string, x2, y2, d, b); this.setColor(color); }
public TextArtifact getCopy() { TextArtifact cirlceCopy = new TextArtifact(this.getID(), this.text, x1, y1); cirlceCopy.setColor(this.getColor()); return cirlceCopy; }
public PolygonArtifact(String id, boolean fill) { super(id); setLevel(2); FILL_POLYGON = fill; }
public ArcArtifact(String string, double x2, double y2, double diameter, double startAngle, double arcAngle, Color color) { this(string, x2, y2, diameter, startAngle, arcAngle); this.setColor(color); }
public PointListArtifact(String id, Point2D point) { this(id, 1); setPoint(point); }
public ArcArtifact(String id, double x, double y, double diameter, double startAngle, double arcAngle) { super(id); setLevel(1); this.x = x; this.y = y; this.diameter = diameter; this.startAngle = startAngle; this.arcAngle = arcAngle; }
public TextArtifact(String id, String text, double x1, double y1) { super(id); setLevel(1); this.text = text; this.x1 = x1; this.y1 = y1; }
/** * Set to normalized line. Length = 1. */ public LineArtifact(String id, Line2D line) { super(id); setLine(line); }
public CircleArtifact getCopy() { CircleArtifact cirlceCopy = new CircleArtifact(this.getID(), x, y, diameter, fill); cirlceCopy.setColor(this.getColor()); return cirlceCopy; }
public PolygonArtifact(String id) { super(id); setLevel(2); }
public ArcArtifact(String string, double x2, double y2, double diameter, double startAngle, double arcAngle, Color color) { this(string, x2, y2, diameter, startAngle, arcAngle); this.setColor(color); }
public PolygonArtifact(String id, boolean fill, Color color) { super(id); setLevel(2); FILL_POLYGON = fill; this.color = color; }