public StandardDrawingView(DrawingEditor editor, int width, int height) { setAutoscrolls(true); counter++; fEditor = editor;   setPreferredSize(new Dimension(width, height)); fSelectionListeners = CollectionsFactory.current().createList(); addFigureSelectionListener(editor()); setLastClick(new Point(0, 0)); fConstrainer = null; fSelection = CollectionsFactory.current().createList();  setDisplayUpdate(createDisplayUpdate());   setBackground(Color.lightGray);  addMouseListener(createMouseListener()); addMouseMotionListener(createMouseMotionListener()); addKeyListener(createKeyListener());
public StandardDrawingView(DrawingEditor editor) { this(editor, MINIMUM_WIDTH, MINIMUM_HEIGHT);
	public StandardDrawingView(DrawingEditor editor, int width, int height) {		setAutoscrolls(true);		counter++;		fEditor = editor;		// ricardo_padilha: changed from setSize(int, int) because it is not		// JScrollPane-friendly. 		setPreferredSize(new Dimension(width, height));		fSelectionListeners = CollectionsFactory.current().createList();		addFigureSelectionListener(editor());		setLastClick(new Point(0, 0));		fConstrainer = null;		fSelection = CollectionsFactory.current().createList();		// JFC/Swing uses double buffering automatically as default		setDisplayUpdate(createDisplayUpdate());		// TODO: Test FastBufferedUpdateStrategy with JFC/Swing double buffering		//setDisplayUpdate(new FastBufferedUpdateStrategy());		setBackground(Color.lightGray);		addMouseListener(createMouseListener());		addMouseMotionListener(createMouseMotionListener());		addKeyListener(createKeyListener());	}