lawrancej / logisim

Git fork of Logisim code base
http://www.cburch.com/logisim/
GNU General Public License v3.0
211 stars 104 forks source link

SVG graphics #6

Open lawrancej opened 10 years ago

lawrancej commented 10 years ago

Logisim should use scalable vector graphics to draw shapes, rather than hardcode shapes in Java as is currently done through low-level graphics commands that are impossible to understand from reading the code.

Use Batik instead. Logisim ships with it's own half-hearted reader for SVG: com.cburch.draw.shapes.SvgReader, com.cburch.draw.shapes.SvgCreator. That should go away.

Any calls to draw gates should be revised to a preloaded SVG shape from memory (using flyweights, obviously).

With SVG support from Batik, we can get PDF generation for free, so logisim.gui.main.print shouldn’t be as necessary anymore.