protected Drawing createDrawing(){
  Drawing drawing=new ODGDrawing();
  LinkedList<InputFormat> inputFormats=new LinkedList<InputFormat>();
  inputFormats.add(new ODGInputFormat());
  inputFormats.add(new ImageInputFormat(new SVGImageFigure()));
  inputFormats.add(new TextInputFormat(new SVGTextFigure()));
  drawing.setInputFormats(inputFormats);
  LinkedList<OutputFormat> outputFormats=new LinkedList<OutputFormat>();
  outputFormats.add(new SVGOutputFormat());
  outputFormats.add(new SVGZOutputFormat());
  outputFormats.add(new ImageOutputFormat());
  outputFormats.add(new ImageOutputFormat("JPG","Joint Photographics Experts Group (JPEG)","jpg",BufferedImage.TYPE_INT_RGB));
  outputFormats.add(new ImageOutputFormat("BMP","Windows Bitmap (BMP)","bmp",BufferedImage.TYPE_BYTE_INDEXED));
  outputFormats.add(new ImageMapOutputFormat());
  drawing.setOutputFormats(outputFormats);
  return drawing;
}

protected Drawing createDrawing ( ) { Drawing drawing = new ODGDrawing ( ) ; LinkedList < InputFormat > inputFormats = new LinkedList < InputFormat > ( ) ; inputFormats . add ( new ODGInputFormat ( ) ) ; inputFormats . add ( new ImageInputFormat ( new SVGImageFigure ( ) ) ) ; inputFormats . add ( new TextInputFormat ( new SVGTextFigure ( ) ) ) ; drawing . setInputFormats ( inputFormats ) ; LinkedList < OutputFormat > outputFormats = new LinkedList < OutputFormat > ( ) ; outputFormats . add ( new SVGOutputFormat ( ) ) ; outputFormats . add ( new SVGZOutputFormat ( ) ) ; outputFormats . add ( new ImageOutputFormat ( ) ) ; outputFormats . add ( new ImageOutputFormat ( "JPG" , "Joint Photographics Experts Group (JPEG)" , "jpg" , BufferedImage . TYPE_INT_RGB ) ) ; outputFormats . add ( new ImageOutputFormat ( "BMP" , "Windows Bitmap (BMP)" , "bmp" , BufferedImage . TYPE_BYTE_INDEXED ) ) ; outputFormats . add ( new ImageMapOutputFormat ( ) ) ; drawing . setOutputFormats ( outputFormats ) ; return drawing ; }
creates a new drawing for this view .
