public void save(PrintWriter printWriter) { printWriter.println(pose.getX() + " " + pose.getY() + " " + width + " " + height + " " + getType() + " " + id); }
public void save(PrintWriter printWriter) { printWriter.println(pose.getX() + " " + pose.getY() + " " + width + " " + height + " " + getType() + " " + id); }
@Override public void drawLegend(Plotter2DAdapter graphics, Point2D origin) { graphics.setColor(color); tempCenter.set(origin); tempRadii.set(LEGEND_RADIUS, LEGEND_RADIUS); if (getType().equals("fillcircle")) { graphics.drawOvalFilled(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("circle")) { graphics.drawOval(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("fillrectangle")) { graphics.drawSquareFilled(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("rectangle")) { graphics.drawRectangle(graphics.getScreenFrame(), tempCenter, tempRadii); } }
@Override public void drawLegend(Plotter2DAdapter graphics, Point2d origin) { graphics.setColor(color); tempCenter.set(origin); tempRadii.set(LEGEND_RADIUS, LEGEND_RADIUS); if (getType().equals("fillcircle")) { graphics.drawOvalFilled(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("circle")) { graphics.drawOval(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("fillrectangle")) { graphics.drawSquareFilled(graphics.getScreenFrame(), tempCenter, tempRadii); } else if (getType().equals("rectangle")) { graphics.drawRectangle(graphics.getScreenFrame(), tempCenter, tempRadii); } }
public ShapeArtifact getCopy() { ShapeArtifact shapeCopy = new ShapeArtifact(this.getID(), this.getType(), height, width, this.getPose()); shapeCopy.setColor(this.getColor()); return shapeCopy; }
public ShapeArtifact getCopy() { ShapeArtifact shapeCopy = new ShapeArtifact(this.getID(), this.getType(), height, width, this.getPose()); shapeCopy.setColor(this.getColor()); return shapeCopy; }