/** Creates a new Drawing for this view. */ protected Drawing createDrawing() { DefaultDrawing drawing = new DefaultDrawing(); DOMStorableInputOutputFormat ioFormat = new DOMStorableInputOutputFormat(new NetFactory()); drawing.addInputFormat(ioFormat); drawing.addInputFormat(new TextInputFormat(new NodeFigure())); drawing.addOutputFormat(ioFormat); drawing.addOutputFormat(new ImageOutputFormat()); return drawing; }
/** Creates the drawing. */ protected Drawing createDrawing() { DefaultDrawing drawing = new DefaultDrawing(); drawing.addInputFormat(new SVGZInputFormat()); drawing.addInputFormat(new ImageInputFormat(new SVGImageFigure())); drawing.addOutputFormat(new SVGOutputFormat()); drawing.addOutputFormat(new SVGZOutputFormat()); drawing.addOutputFormat(new ImageOutputFormat()); drawing.addOutputFormat( new ImageOutputFormat( "JPG", "Joint Photographics Experts Group (JPEG)", "jpg", BufferedImage.TYPE_INT_RGB)); drawing.addOutputFormat( new ImageOutputFormat( "BMP", "Windows Bitmap (BMP)", "bmp", BufferedImage.TYPE_BYTE_INDEXED)); return drawing; }