1package com.example.graphics.render;
3import com.example.graphics.model.Circle;
4import com.example.graphics.model.Line;
5import com.example.graphics.model.Rectangle;
6import com.example.graphics.model.Triangle;
31 "<circle cx=\"%d\" cy=\"%d\" r=\"%d\" fill=\"none\" stroke=\"black\" stroke-width=\"1\" />\n",
39 "<rect x=\"%d\" y=\"%d\" width=\"%d\" height=\"%d\" fill=\"none\" stroke=\"black\" stroke-width=\"1\" />\n",
47 "<line x1=\"%d\" y1=\"%d\" x2=\"%d\" y2=\"%d\" stroke=\"black\" stroke-width=\"1\" />\n",
55 "<polygon points=\"%d,%d %d,%d %d,%d\" fill=\"none\" stroke=\"black\" stroke-width=\"1\" />\n",
66 "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
67 "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"%d\" height=\"%d\">\n",
75 System.out.println(
"SVG Output:");
void renderRectangle(Rectangle rectangle)
void renderCircle(Circle circle)
SvgRenderer(int width, int height)
void renderLine(Line line)
void renderTriangle(Triangle triangle)