mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 08:25:09 -04:00
removed grouping from SVG template
This commit is contained in:
parent
39e6196156
commit
15f35228a9
@ -69,8 +69,7 @@ public class SvgTemplate implements Closeable {
|
|||||||
+ " empspacing=\"4\"\n"
|
+ " empspacing=\"4\"\n"
|
||||||
+ " spacingx=\"5\"\n"
|
+ " spacingx=\"5\"\n"
|
||||||
+ " spacingy=\"5\" />\n"
|
+ " spacingy=\"5\" />\n"
|
||||||
+ " </sodipodi:namedview>\n"
|
+ " </sodipodi:namedview>\n");
|
||||||
+ " <g>\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -79,23 +78,22 @@ public class SvgTemplate implements Closeable {
|
|||||||
* @throws Exception Exception
|
* @throws Exception Exception
|
||||||
*/
|
*/
|
||||||
public void create() throws Exception {
|
public void create() throws Exception {
|
||||||
w.write(" <rect fill=\"none\" stroke=\"black\" stroke-width=\"3\" x=\"0\" y=\"-10\" width=\"" + width + "\" height=\"" + height + "\"/>\n");
|
w.write(" <rect fill=\"none\" stroke=\"black\" stroke-width=\"3\" x=\"0\" y=\"-10\" width=\"" + width + "\" height=\"" + height + "\"/>\n");
|
||||||
|
|
||||||
int y = 0;
|
int y = 0;
|
||||||
for (PinDescription i : inputs) {
|
for (PinDescription i : inputs) {
|
||||||
w.write(" <circle fill=\"blue\" id=\"pin+:" + i.getName() + "\" cx=\"0\" cy=\"" + y + "\" r=\"3\"/>\n");
|
w.write(" <circle fill=\"blue\" id=\"pin+:" + i.getName() + "\" cx=\"0\" cy=\"" + y + "\" r=\"3\"/>\n");
|
||||||
y += 20;
|
y += 20;
|
||||||
}
|
}
|
||||||
y = 0;
|
y = 0;
|
||||||
for (PinDescription o : outputs) {
|
for (PinDescription o : outputs) {
|
||||||
w.write(" <circle fill=\"red\" id=\"pin+:" + o.getName() + "\" cx=\"" + width + "\" cy=\"" + y + "\" r=\"3\"/>\n");
|
w.write(" <circle fill=\"red\" id=\"pin+:" + o.getName() + "\" cx=\"" + width + "\" cy=\"" + y + "\" r=\"3\"/>\n");
|
||||||
y += 20;
|
y += 20;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
w.write("</g>\n");
|
|
||||||
w.write("</svg>\n");
|
w.write("</svg>\n");
|
||||||
w.close();
|
w.close();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user