modelcontainer.getGraphComponent().getGraphControl().addMouseListener(new MouseAdapter()
graphComponent.getGraphControl().scrollRectToVisible( new Rectangle(e.getPoint()));
int bottom = rect.y + rect.height; Dimension d = new Dimension(getPreferredSize()); Dimension sp = getScaledPreferredSizeForGraph(); mxRectangle min = graph.getMinimumGraphSize(); update = true; else if (right > getWidth()) d.width = Math.max(right, getWidth()); update = true; update = true; else if (bottom > getHeight()) d.height = Math.max(bottom, getHeight()); update = true; setPreferredSize(d); setMinimumSize(d); revalidate();
graphControl.addMouseListener(this); graphControl.addMouseMotionListener(this);
graphControl.addMouseListener(this); graphControl.addMouseMotionListener(this);
graphComponent.getGraphControl().repaint(dirty);
graphComponent.getGraphControl().scrollRectToVisible( new Rectangle(e.getPoint()));
graphComponent.getGraphControl().repaint(dirty);
graphComponent.getGraphControl().repaint(dirty);
graphComponent.getGraphControl().scrollRectToVisible( new Rectangle(right, bottom, 0, 0), extend);
gc.getGraphControl().addMouseListener( new MouseAdapter()
placeholder.y = initialPlaceholder.x + (int) dy; tmp.add(placeholder); graphComponent.getGraphControl().repaint(tmp);
gc.getGraphControl().addMouseListener( new MouseAdapter()
placeholder.y = initialPlaceholder.x + (int) dy; tmp.add(placeholder); graphComponent.getGraphControl().repaint(tmp);
Rectangle tmp = new Rectangle(union.x - 1, union.y, maxleft - union.x + 2, union.height); control.repaint(tmp); Rectangle tmp = new Rectangle(minright - 1, union.y, union.x + union.width - minright + 1, union.height); control.repaint(tmp); Rectangle tmp = new Rectangle(union.x, union.y - 1, union.width, maxtop - union.y + 2); control.repaint(tmp); Rectangle tmp = new Rectangle(union.x, minbottom - 1, union.width, union.y + union.height - minbottom + 1); control.repaint(tmp);
Rectangle tmp = new Rectangle(union.x - 1, union.y, maxleft - union.x + 2, union.height); control.repaint(tmp); Rectangle tmp = new Rectangle(minright - 1, union.y, union.x + union.width - minright + 1, union.height); control.repaint(tmp); Rectangle tmp = new Rectangle(union.x, union.y - 1, union.width, maxtop - union.y + 2); control.repaint(tmp); Rectangle tmp = new Rectangle(union.x, minbottom - 1, union.width, union.y + union.height - minbottom + 1); control.repaint(tmp);
graphComponent.getGraphControl().repaint(dirty);
graphComponent.getGraphControl().repaint(dirty);
int bottom = rect.y + rect.height; Dimension d = new Dimension(getPreferredSize()); Dimension sp = getScaledPreferredSizeForGraph(); mxRectangle min = graph.getMinimumGraphSize(); update = true; else if (right > getWidth()) d.width = Math.max(right, getWidth()); update = true; update = true; else if (bottom > getHeight()) d.height = Math.max(bottom, getHeight()); update = true; setPreferredSize(d); setMinimumSize(d); revalidate();
graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this);