Proposal 0: new / affected / figuresfe   (49.518)

newAffectedFigures

tmp/src-jhotdraw/CH/ifa/draw/util/UndoRedoActivity.java
     ...

   82:	
   83:	public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
   84:		getReversedActivity().setAffectedFigures(newAffectedFigures);
   85:	}
     ...

fe   ([1, '', ':assign_var:fe'])

tmp/src-jhotdraw/CH/ifa/draw/standard/FastBufferedUpdateStrategy.java
     ...

   72:			Drawing theDrawing = view.drawing();
   73:			FigureEnumeration fe = theDrawing.figures(viewClipRectangle2);
   74:
     ...

   77:			imageGraphics.fillRect(nX1, nY1, nX2-nX1, nY2-nY1);
   78:			view.draw(imageGraphics, fe);
   79:
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/NullDrawingView.java
     ...

  324:	 */
  325:	public void draw(Graphics g, FigureEnumeration fe) {
  326:		// ignore: do nothing
     ...

[+] Match

fe   ([1, '', '#arg0:call:affected'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AlignCommand.java
     ...

  213:
  214:		public void setAffectedFigures(FigureEnumeration fe) {
  215:			// first make copy of FigureEnumeration in superclass
  216:			super.setAffectedFigures(fe);
  217:			// then get new FigureEnumeration of copy to save aligment
     ...

[+] Match

fe   ([1, '', ':assign_var:figures'])

tmp/src-jhotdraw/CH/ifa/draw/standard/FigureTransferCommand.java
     ...

   48:	*/
   49:	protected void copyFigures(FigureEnumeration fe, int figureCount) {
   50:		Clipboard.getClipboard().setContents(new StandardFigureSelection(fe, figureCount));
   51:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardFigureSelection.java
     ...

   41:	 */
   42:	public StandardFigureSelection(FigureEnumeration figures, int figureCount) {
   43:		// a FigureSelection is represented as a flattened ByteStream
     ...

[+] Match

Proposal 1: ffigure / f   (46.385)

f

tmp/src-jhotdraw/CH/ifa/draw/standard/ChangeAttributeCommand.java
     ...

  102:			while (k.hasMoreElements()) {
  103:				Figure f = k.nextFigure();
  104:				if (getBackupValue() != null) {
  105:					f.setAttribute(getAttributeName(), getBackupValue());
  106:				}
     ...

figure   ([1, '', 'obj:assign_field:attributes'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

  133:	protected void handlePopupMenu(MouseEvent e, int x, int y) {
  134:		Figure figure = drawing().findFigure(e.getX(), e.getY());
  135:		if (figure != null) {
  136:			Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  137:			if (attribute == null) {
  138:				figure = drawing().findFigureInside(e.getX(), e.getY());
  139:			}
  140:			if (figure != null) {
  141:				showPopupMenu(figure, e.getX(), e.getY(), e.getComponent());
  142:			}
     ...

  155:	 */
  156:	protected void showPopupMenu(Figure figure, int x, int y, Component comp) {
  157:		Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  158:		if ((attribute != null) && (attribute instanceof JPopupMenu)) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/AttributeFigure.java
     ...

  112:	private static void initializeAttributes() {
  113:		fgDefaultAttributes = new FigureAttributes();
  114:		fgDefaultAttributes.set("FrameColor", Color.black);
     ...

[+] Match

figure   ([1, '', 'obj:ref_field:attributes'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

  133:	protected void handlePopupMenu(MouseEvent e, int x, int y) {
  134:		Figure figure = drawing().findFigure(e.getX(), e.getY());
  135:		if (figure != null) {
  136:			Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  137:			if (attribute == null) {
  138:				figure = drawing().findFigureInside(e.getX(), e.getY());
  139:			}
  140:			if (figure != null) {
  141:				showPopupMenu(figure, e.getX(), e.getY(), e.getComponent());
  142:			}
     ...

  155:	 */
  156:	protected void showPopupMenu(Figure figure, int x, int y, Component comp) {
  157:		Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  158:		if ((attribute != null) && (attribute instanceof JPopupMenu)) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/AttributeFigure.java
     ...

  119:		fgDefaultAttributes.set("FontSize",   new Integer(12));
  120:		fgDefaultAttributes.set("FontStyle",  new Integer(Font.PLAIN));
  121:	}
     ...

[+] Match

figure   ([1, '', 'obj:ref_field:font'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

  133:	protected void handlePopupMenu(MouseEvent e, int x, int y) {
  134:		Figure figure = drawing().findFigure(e.getX(), e.getY());
  135:		if (figure != null) {
  136:			Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  137:			if (attribute == null) {
  138:				figure = drawing().findFigureInside(e.getX(), e.getY());
  139:			}
  140:			if (figure != null) {
  141:				showPopupMenu(figure, e.getX(), e.getY(), e.getComponent());
  142:			}
     ...

  155:	 */
  156:	protected void showPopupMenu(Figure figure, int x, int y, Component comp) {
  157:		Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  158:		if ((attribute != null) && (attribute instanceof JPopupMenu)) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/TextFigure.java
     ...

  111:	public Font getFont() {
  112:		return fFont;
  113:	}
     ...

[+] Match

Proposal 2: text / ownerfigure / f   (29.996)

textOwner

tmp/src-jhotdraw/CH/ifa/draw/figures/FontSizeHandle.java
     ...

   36:	public void invokeStep (int x, int y, int anchorX, int anchorY, DrawingView view) {
   37:		TextFigure textOwner = (TextFigure) owner();
   38:
     ...

   40:		int newSize = activity.getFont().getSize() + y-anchorY;
   41:		textOwner.setFont(new Font(activity.getFont().getName(), activity.getFont().getStyle(), newSize));
   42:	}
     ...

figure   ([1, '', '#arg0:new:change'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  232:		else {
  233:			Figure figure = drawing().findFigure(e.getX(), e.getY());
  234:			if (figure != null) {
  235:				//fChild = createDragTracker(view(), figure);
  236:				if (e.isShiftDown()) {
  237:				   view().toggleSelection(figure);
  238:				} else if( !view().selection().contains(figure)) {
  239:					view().clearSelection();
  240:					view().addToSelection(figure);
  241:				}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  467:	 */
  468:	public void addToSelection(Figure figure) {
  469:		if (!isFigureSelected(figure) && drawing().includes(figure)) {
     ...

  471:			fSelectionHandles = null;
  472:			figure.invalidate();
  473:			fireSelectionChanged();
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

  245:			r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
  246:			fListener.figureInvalidated(new FigureChangeEvent(this, r));
  247:		}
     ...

[+] Match

figure   ([1, '', '#this:call:invalidate'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  232:		else {
  233:			Figure figure = drawing().findFigure(e.getX(), e.getY());
  234:			if (figure != null) {
  235:				//fChild = createDragTracker(view(), figure);
  236:				if (e.isShiftDown()) {
  237:				   view().toggleSelection(figure);
  238:				} else if( !view().selection().contains(figure)) {
  239:					view().clearSelection();
  240:					view().addToSelection(figure);
  241:				}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  467:	 */
  468:	public void addToSelection(Figure figure) {
  469:		if (!isFigureSelected(figure) && drawing().includes(figure)) {
     ...

  471:			fSelectionHandles = null;
  472:			figure.invalidate();
  473:			fireSelectionChanged();
     ...

[+] Match

figure   ([1, '', '#arg0:new:event'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  232:		else {
  233:			Figure figure = drawing().findFigure(e.getX(), e.getY());
  234:			if (figure != null) {
  235:				//fChild = createDragTracker(view(), figure);
  236:				if (e.isShiftDown()) {
  237:				   view().toggleSelection(figure);
  238:				} else if( !view().selection().contains(figure)) {
  239:					view().clearSelection();
  240:					view().addToSelection(figure);
  241:				}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  467:	 */
  468:	public void addToSelection(Figure figure) {
  469:		if (!isFigureSelected(figure) && drawing().includes(figure)) {
     ...

  471:			fSelectionHandles = null;
  472:			figure.invalidate();
  473:			fireSelectionChanged();
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

  245:			r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
  246:			fListener.figureInvalidated(new FigureChangeEvent(this, r));
  247:		}
     ...

[+] Match

Proposal 3: targetfigure   (25.052)

target

tmp/src-jhotdraw/CH/ifa/draw/standard/ChopBoxConnector.java
     ...

   70:
   71:	protected Point chop(Figure target, Point from) {
   72:		Rectangle r = target.displayBox();
   73:		return Geom.angleToPoint(r, (Geom.pointToAngle(r, from)));
     ...

figure   ([-1, '', ':ref_var:figure'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

  140:			if (figure != null) {
  141:				showPopupMenu(figure, e.getX(), e.getY(), e.getComponent());
  142:			}
     ...

  155:	 */
  156:	protected void showPopupMenu(Figure figure, int x, int y, Component comp) {
  157:		Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  158:		if ((attribute != null) && (attribute instanceof JPopupMenu)) {
     ...

  160:			if (popup instanceof PopupMenuFigureSelection) {
  161:				((PopupMenuFigureSelection)popup).setSelectedFigure(figure);
  162:			}
     ...

[+] Match

figure   ([1, '', '#this:call:decorated'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

  133:	protected void handlePopupMenu(MouseEvent e, int x, int y) {
  134:		Figure figure = drawing().findFigure(e.getX(), e.getY());
  135:		if (figure != null) {
  136:			Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  137:			if (attribute == null) {
  138:				figure = drawing().findFigureInside(e.getX(), e.getY());
  139:			}
  140:			if (figure != null) {
  141:				showPopupMenu(figure, e.getX(), e.getY(), e.getComponent());
  142:			}
     ...

  155:	 */
  156:	protected void showPopupMenu(Figure figure, int x, int y, Component comp) {
  157:		Object attribute = figure.getAttribute(Figure.POPUP_MENU);
  158:		if ((attribute != null) && (attribute instanceof JPopupMenu)) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  237:	public Object getAttribute(String name) {
  238:		return getDecoratedFigure().getAttribute(name);
  239:	}
     ...

[+] Match

endFigure   ([-1, '', ':call:owner'])

tmp/src-jhotdraw/CH/ifa/draw/figures/ElbowHandle.java
     ...

   88:		Figure startFigure = line.getStartConnector().owner();
   89:		Figure endFigure = line.getEndConnector().owner();
   90:		Rectangle start = startFigure.displayBox();
   91:		Rectangle end = endFigure.displayBox();
   92:		Insets i1 = startFigure.connectionInsets();
   93:		Insets i2 = endFigure.connectionInsets();
   94:
     ...

[+] Match

Proposal 4: f / scribblepolygon / f   (24.634)

fScribble

tmp/src-jhotdraw/CH/ifa/draw/figures/ScribbleTool.java
     ...

   48:		super.deactivate();
   49:		if (fScribble != null) {
   50:			if (fScribble.size().width < 4 || fScribble.size().height < 4) {
   51:				drawing().remove(fScribble);
   52:				// nothing to undo
     ...

   54:			}
   55:			fScribble = null;
   56:		}
     ...

   59:	private void point(int x, int y) {
   60:		if (fScribble == null) {
   61:			fScribble = new PolyLineFigure(x, y);
   62:			setAddedFigure(view().add(fScribble));
   63:		}
   64:		else if (fLastX != x || fLastY != y) {
   65:			fScribble.addPoint(x, y);
   66:		}
     ...

   90:	public void mouseDrag(MouseEvent e, int x, int y) {
   91:		if (fScribble != null) {
   92:			point(e.getX(), e.getY());
     ...

fPolygon   ([2, '#arg0:call:add', '#arg0:call:added'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonTool.java
     ...

   45:		super.activate();
   46:		fPolygon = null;
   47:	}
     ...

   49:	public void deactivate() {
   50:		if (fPolygon != null) {
   51:			fPolygon.smoothPoints();
   52:			if (fPolygon.pointCount() < 3 ||
   53:					fPolygon.size().width < 4 || fPolygon.size().height < 4) {
   54:				drawing().remove(fPolygon);
   55:				// nothing to undo
     ...

   58:		}
   59:		fPolygon = null;
   60:		super.deactivate();
     ...

   63:	private void addPoint(int x, int y) {
   64:		if (fPolygon == null) {
   65:			fPolygon = new PolygonFigure(x, y);
   66:			setAddedFigure(view().add(fPolygon));
   67:			fPolygon.addPoint(x, y);
   68:		}
   69:		else if (fLastX != x || fLastY != y) {
   70:			fPolygon.addPoint(x, y);
   71:		}
     ...

   82:		if (e.getClickCount() >= 2) {
   83:			if (fPolygon != null) {
   84:				fPolygon.smoothPoints();
   85:
     ...

   93:			}
   94:			fPolygon = null;
   95:
     ...

  105:	public void mouseMove(MouseEvent e, int x, int y) {
  106:		if (fPolygon != null) {
  107:			if (fPolygon.pointCount() > 1) {
  108:				fPolygon.setPointAt(new Point(x, y), fPolygon.pointCount()-1);
  109:				view().checkDamage();
     ...

[+] Match

fPolygon   ([2, '#arg0:call:add', '#arg0:call:set'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonTool.java
     ...

   45:		super.activate();
   46:		fPolygon = null;
   47:	}
     ...

   49:	public void deactivate() {
   50:		if (fPolygon != null) {
   51:			fPolygon.smoothPoints();
   52:			if (fPolygon.pointCount() < 3 ||
   53:					fPolygon.size().width < 4 || fPolygon.size().height < 4) {
   54:				drawing().remove(fPolygon);
   55:				// nothing to undo
     ...

   58:		}
   59:		fPolygon = null;
   60:		super.deactivate();
     ...

   63:	private void addPoint(int x, int y) {
   64:		if (fPolygon == null) {
   65:			fPolygon = new PolygonFigure(x, y);
   66:			setAddedFigure(view().add(fPolygon));
   67:			fPolygon.addPoint(x, y);
   68:		}
   69:		else if (fLastX != x || fLastY != y) {
   70:			fPolygon.addPoint(x, y);
   71:		}
     ...

   82:		if (e.getClickCount() >= 2) {
   83:			if (fPolygon != null) {
   84:				fPolygon.smoothPoints();
   85:
     ...

   93:			}
   94:			fPolygon = null;
   95:
     ...

  105:	public void mouseMove(MouseEvent e, int x, int y) {
  106:		if (fPolygon != null) {
  107:			if (fPolygon.pointCount() > 1) {
  108:				fPolygon.setPointAt(new Point(x, y), fPolygon.pointCount()-1);
  109:				view().checkDamage();
     ...

[+] Match

fPolygon   ([2, '#arg0:call:add', ':assign_var:added'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonTool.java
     ...

   45:		super.activate();
   46:		fPolygon = null;
   47:	}
     ...

   49:	public void deactivate() {
   50:		if (fPolygon != null) {
   51:			fPolygon.smoothPoints();
   52:			if (fPolygon.pointCount() < 3 ||
   53:					fPolygon.size().width < 4 || fPolygon.size().height < 4) {
   54:				drawing().remove(fPolygon);
   55:				// nothing to undo
     ...

   58:		}
   59:		fPolygon = null;
   60:		super.deactivate();
     ...

   63:	private void addPoint(int x, int y) {
   64:		if (fPolygon == null) {
   65:			fPolygon = new PolygonFigure(x, y);
   66:			setAddedFigure(view().add(fPolygon));
   67:			fPolygon.addPoint(x, y);
   68:		}
   69:		else if (fLastX != x || fLastY != y) {
   70:			fPolygon.addPoint(x, y);
   71:		}
     ...

   82:		if (e.getClickCount() >= 2) {
   83:			if (fPolygon != null) {
   84:				fPolygon.smoothPoints();
   85:
     ...

   93:			}
   94:			fPolygon = null;
   95:
     ...

  105:	public void mouseMove(MouseEvent e, int x, int y) {
  106:		if (fPolygon != null) {
  107:			if (fPolygon.pointCount() > 1) {
  108:				fPolygon.setPointAt(new Point(x, y), fPolygon.pointCount()-1);
  109:				view().checkDamage();
     ...

  131:
  132:	private void setAddedFigure(Figure newAddedFigure) {
  133:		myAddedFigure = newAddedFigure;
     ...

[+] Match

Proposal 5: kfe   (23.301)

k

tmp/src-jhotdraw/CH/ifa/draw/figures/GroupFigure.java
     ...

   78:		super.setAttribute(name, value);
   79:		FigureEnumeration k = figures();
   80:		while (k.hasMoreElements()) {
   81:			k.nextFigure().setAttribute(name, value);
   82:		}
     ...

fe   ([1, '', 'obj:assign_field:single'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/SingleFigureEnumerator.java
     ...

   57:		Figure returnFigure = (Figure)mySingleFigure;
   58:		mySingleFigure = null;
   59:		return returnFigure;
     ...

[+] Match

fe   ([1, '', 'obj:ref_field:enumeration'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/ReverseFigureEnumerator.java
     ...

   52:	public Figure nextFigure() {
   53:		return (Figure)fEnumeration.nextElement();
   54:	}
     ...

[+] Match

fe   ([1, '', 'obj:ref_field:single'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/SingleFigureEnumerator.java
     ...

   56:	public Figure nextFigure() {
   57:		Figure returnFigure = (Figure)mySingleFigure;
   58:		mySingleFigure = null;
     ...

[+] Match

Proposal 6: cconnector / end   (22.061)

c

tmp/src-jhotdraw/CH/ifa/draw/standard/ChangeConnectionEndHandle.java
     ...

   51:	 */
   52:	protected void connect(Connector c) {
   53:		getConnection().connectEnd(c);
   54:	}
     ...

newEndConnector   ([1, '', ':assign_var:connector'])

tmp/src-jhotdraw/CH/ifa/draw/figures/LineConnection.java
     ...

   81:	 */
   82:	public void connectEnd(Connector newEndConnector) {
   83:		setEndConnector(newEndConnector);
   84:		endFigure().addFigureChangeListener(this);
     ...

  156:
  157:	protected void setEndConnector(Connector newEndConnector) {
  158:		myEndConnector = newEndConnector;
     ...

[+] Match

fEndConnector   ([1, '', '#arg0:call:connect'])

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  332:					Connector fStartConnector = cf.startFigure().connectorAt(ep.x, ep.y);
  333:					Connector fEndConnector = cf.endFigure().connectorAt(sp.x, sp.y);
  334:		
  335:					if (fEndConnector != null && fStartConnector != null) {
  336:						cf.connectStart(fStartConnector);
  337:						cf.connectEnd(fEndConnector);
  338:						cf.updateConnection();
     ...

[+] Match

myEndConnector   ([2, '#arg0:call:end', ':call:attribute'])

tmp/src-jhotdraw/CH/ifa/draw/standard/ConnectionTool.java
     ...

  360:			myStartConnector = getConnection().getStartConnector();
  361:			myEndConnector = getConnection().getEndConnector();
  362:	        setUndoable(true);
     ...

  397:			getConnection().connectStart(myStartConnector);
  398:			getConnection().connectEnd(myEndConnector);
  399:			getConnection().updateConnection();
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  237:	public Object getAttribute(String name) {
  238:		return getDecoratedFigure().getAttribute(name);
  239:	}
     ...

[+] Match

Proposal 7: evte   (20.495)

evt

tmp/src-jhotdraw/CH/ifa/draw/util/UndoableTool.java
     ...

   88:	 */
   89:	public void mouseMove(MouseEvent evt, int x, int y) {
   90:		getWrappedTool().mouseMove(evt, x, y);
   91:	}
     ...

e   ([1, '', '#arg0:call:track'])

tmp/src-jhotdraw/CH/ifa/draw/standard/ConnectionTool.java
     ...

  127:	 */
  128:	public void mouseDrag(MouseEvent e, int x, int y) {
  129:		Point p = new Point(e.getX(), e.getY());
  130:		if (getConnection() != null) {
  131:			trackConnectors(e, x, y);
  132:			if (getTargetConnector() != null) {
     ...

[+] Match

e   ([1, '', ':assign_var:e'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

   51:	 */
   52:	public void mouseDown(MouseEvent e, int x, int y) {
   53:		// isPopupTrigger() at mouseDown() is only notified at UNIX systems
   54:		if (e.isPopupTrigger()) {
   55:			handlePopupMenu(e, x, y);
   56:		}
   57:		else {
   58:			super.mouseDown(e, x, y);
   59:			handleMouseDown(e, x, y);
   60:		}
     ...

  104:	 */
  105:	protected void handleMouseDown(MouseEvent e, int x, int y) {
  106:	}
     ...

[+] Match

e   ([1, '', '#arg0:call:mouse'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/CustomSelectionTool.java
     ...

   51:	 */
   52:	public void mouseDown(MouseEvent e, int x, int y) {
   53:		// isPopupTrigger() at mouseDown() is only notified at UNIX systems
   54:		if (e.isPopupTrigger()) {
   55:			handlePopupMenu(e, x, y);
   56:		}
   57:		else {
   58:			super.mouseDown(e, x, y);
   59:			handleMouseDown(e, x, y);
   60:		}
     ...

[+] Match

Proposal 8: redo / stackundo   (17.624)

redoStack

tmp/src-jhotdraw/CH/ifa/draw/util/UndoManager.java
     ...

   46:		undoStack = new Vector(maxStackCapacity);
   47:		redoStack = new Vector(maxStackCapacity);
   48:	}
     ...

   70:			if (getRedoSize() >= maxStackCapacity) {
   71:				redoStack.removeElementAt(0);
   72:			}
     ...

   76:			if ((getRedoSize() == 0) || (peekRedo() != redoActivity)) {
   77:				redoStack.addElement(redoActivity);
   78:			}
     ...

   83:			// last undo activity
   84:			redoStack = new Vector(maxStackCapacity);
   85:		}
     ...

   98:		if (getRedoSize() > 0) {
   99:			return ((Undoable)redoStack.lastElement()).isRedoable();
  100:		}
     ...

  116:		if (getRedoSize() > 0) {
  117:			return (Undoable) redoStack.lastElement();
  118:		}
     ...

  134:	public int getRedoSize() {
  135:		return redoStack.size();
  136:	}
     ...

  158:		// Remove it from undo collection
  159:		redoStack.removeElementAt(getRedoSize() - 1);
  160:
     ...

  168:	public void clearRedos() {
  169:		clearStack(redoStack);
  170:	}
     ...

undoStack   ([1, '', '#arg0:call:clear'])

tmp/src-jhotdraw/CH/ifa/draw/util/UndoManager.java
     ...

   45:		maxStackCapacity = newUndoStackSize;
   46:		undoStack = new Vector(maxStackCapacity);
   47:		redoStack = new Vector(maxStackCapacity);
     ...

   53:			if (getUndoSize() >= maxStackCapacity) {
   54:				undoStack.removeElementAt(0);
   55:			}
   56:		
   57:			undoStack.addElement(undoActivity);
   58:		}
     ...

   62:			// last undo activity
   63:			undoStack = new Vector(maxStackCapacity);
   64:		}
     ...

   89:		if (getUndoSize() > 0) {
   90:			return ((Undoable)undoStack.lastElement()).isUndoable();
   91:		}
     ...

  107:		if (getUndoSize() > 0) {
  108:			return (Undoable) undoStack.lastElement();
  109:		}
     ...

  127:	public int getUndoSize() {
  128:		return undoStack.size();
  129:	}
     ...

  145:		// Remove it from undo collection
  146:		undoStack.removeElementAt(getUndoSize() - 1);
  147:		
     ...

  164:	public void clearUndos() {
  165:		clearStack(undoStack);
  166:	}
     ...

[+] Match

undoStack   ([1, '', '#arg0:call:stack'])

tmp/src-jhotdraw/CH/ifa/draw/util/UndoManager.java
     ...

   45:		maxStackCapacity = newUndoStackSize;
   46:		undoStack = new Vector(maxStackCapacity);
   47:		redoStack = new Vector(maxStackCapacity);
     ...

   53:			if (getUndoSize() >= maxStackCapacity) {
   54:				undoStack.removeElementAt(0);
   55:			}
   56:		
   57:			undoStack.addElement(undoActivity);
   58:		}
     ...

   62:			// last undo activity
   63:			undoStack = new Vector(maxStackCapacity);
   64:		}
     ...

   89:		if (getUndoSize() > 0) {
   90:			return ((Undoable)undoStack.lastElement()).isUndoable();
   91:		}
     ...

  107:		if (getUndoSize() > 0) {
  108:			return (Undoable) undoStack.lastElement();
  109:		}
     ...

  127:	public int getUndoSize() {
  128:		return undoStack.size();
  129:	}
     ...

  145:		// Remove it from undo collection
  146:		undoStack.removeElementAt(getUndoSize() - 1);
  147:		
     ...

  164:	public void clearUndos() {
  165:		clearStack(undoStack);
  166:	}
     ...

[+] Match

undoStack   ([1, '', ':assign_var:clear'])

tmp/src-jhotdraw/CH/ifa/draw/util/UndoManager.java
     ...

   45:		maxStackCapacity = newUndoStackSize;
   46:		undoStack = new Vector(maxStackCapacity);
   47:		redoStack = new Vector(maxStackCapacity);
     ...

   53:			if (getUndoSize() >= maxStackCapacity) {
   54:				undoStack.removeElementAt(0);
   55:			}
   56:		
   57:			undoStack.addElement(undoActivity);
   58:		}
     ...

   62:			// last undo activity
   63:			undoStack = new Vector(maxStackCapacity);
   64:		}
     ...

   89:		if (getUndoSize() > 0) {
   90:			return ((Undoable)undoStack.lastElement()).isUndoable();
   91:		}
     ...

  107:		if (getUndoSize() > 0) {
  108:			return (Undoable) undoStack.lastElement();
  109:		}
     ...

  127:	public int getUndoSize() {
  128:		return undoStack.size();
  129:	}
     ...

  145:		// Remove it from undo collection
  146:		undoStack.removeElementAt(getUndoSize() - 1);
  147:		
     ...

  164:	public void clearUndos() {
  165:		clearStack(undoStack);
  166:	}
     ...

  171:	
  172:	protected void clearStack(Vector clearStack) {
  173:		clearStack.removeAllElements();
     ...

[+] Match

Proposal 9: an / objectf   (17.259)

anObject

tmp/src-jhotdraw/CH/ifa/draw/standard/QuadTree.java
     ...

   52:
   53:	public void add(Object anObject, Rectangle2D absoluteBoundingRectangle2D) {
   54:		if (_nMaxTreeDepth == 1) {
   55:			if (absoluteBoundingRectangle2D.intersects(_absoluteBoundingRectangle2D)) {
   56:				_theHashtable.put(anObject, absoluteBoundingRectangle2D);
   57:			}
   58:			else {
   59:				_outsideHashtable.put(anObject, absoluteBoundingRectangle2D);
   60:			}
     ...

   91:		if (nCount > 1) {
   92:			_theHashtable.put(anObject, absoluteBoundingRectangle2D);
   93:			return;
     ...

   95:		if (nCount == 0) {
   96:			_outsideHashtable.put(anObject, absoluteBoundingRectangle2D);
   97:			return;
     ...

  100:		if (bNW == true) {
  101:			_nwQuadTree.add(anObject, absoluteBoundingRectangle2D);
  102:		}
  103:		if (bNE == true) {
  104:			_neQuadTree.add(anObject, absoluteBoundingRectangle2D);
  105:		}
  106:		if (bSW == true) {
  107:			_swQuadTree.add(anObject, absoluteBoundingRectangle2D);
  108:		}
  109:		if (bSE == true) {
  110:			_seQuadTree.add(anObject, absoluteBoundingRectangle2D);
  111:		}
     ...

f   ([-1, '', ':ref_var:duration'])

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

   68:	 */
   69:	public Figure add(Figure figure) {
   70:		if (!fFigures.contains(figure)) {
     ...

   73:			figure.addToContainer(this);
   74:			_addToQuadTree(figure);
   75:		}
     ...

  669:
  670:	private void _addToQuadTree(Figure f) {
  671:		if (_theQuadTree != null) {
  672:			_theQuadTree.add(f, new Bounds(f.displayBox()).asRectangle2D());
  673:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

  170:		duration.setFont(fb);
  171:		add(duration);
  172:
     ...

[+] Match

f   ([-1, '', ':new:text'])

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

   68:	 */
   69:	public Figure add(Figure figure) {
   70:		if (!fFigures.contains(figure)) {
     ...

   73:			figure.addToContainer(this);
   74:			_addToQuadTree(figure);
   75:		}
     ...

  669:
  670:	private void _addToQuadTree(Figure f) {
  671:		if (_theQuadTree != null) {
  672:			_theQuadTree.add(f, new Bounds(f.displayBox()).asRectangle2D());
  673:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

  172:
  173:		NumberTextFigure end = new NumberTextFigure();
  174:		end.setValue(0);
     ...

  176:		end.setReadOnly(true);
  177:		add(end);
  178:	}
     ...

[+] Match

f   ([-2, ':new:figure', ':assign_field:f'])

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

  669:
  670:	private void _addToQuadTree(Figure f) {
  671:		if (_theQuadTree != null) {
  672:			_theQuadTree.add(f, new Bounds(f.displayBox()).asRectangle2D());
  673:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

  156:		fPreTasks = new Vector();
  157:		fDisplayBox = new Rectangle(0, 0, 0, 0);
  158:
     ...

[+] Match

Proposal 10: grouped / figuresfe   (16.725)

groupedFigures

tmp/src-jhotdraw/CH/ifa/draw/figures/GroupCommand.java
     ...

   83:	
   84:				FigureEnumeration groupedFigures = currentFigure.figures();
   85:				while (groupedFigures.hasMoreElements()) {
   86:					affectedFigures.addElement(groupedFigures.nextFigure());
   87:				}
     ...

fe   ([-2, ':call:figures', '#this:call:figure'])

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

  557:	protected void basicMoveBy(int x, int y) {
  558:		FigureEnumeration fe = figures();
  559:		while (fe.hasMoreElements()) {
  560:			fe.nextFigure().moveBy(x,y);
  561:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  157:	public void moveBy(int x, int y) {
  158:		getDecoratedFigure().moveBy(x, y);
  159:	}
     ...

[+] Match

fe   ([-2, ':call:figures', '#this:ref_var:figure'])

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

  557:	protected void basicMoveBy(int x, int y) {
  558:		FigureEnumeration fe = figures();
  559:		while (fe.hasMoreElements()) {
  560:			fe.nextFigure().moveBy(x,y);
  561:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  309:			else if (figure != null) {
  310:				figure.moveBy(dx, dy);
  311:				figure = add(figure);
     ...

[+] Match

fe   ([1, '', 'obj:assign_field:single'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/SingleFigureEnumerator.java
     ...

   57:		Figure returnFigure = (Figure)mySingleFigure;
   58:		mySingleFigure = null;
   59:		return returnFigure;
     ...

[+] Match

Proposal 11: namenew   (15.541)

name

tmp/src-jhotdraw/CH/ifa/draw/standard/ChangeAttributeCommand.java
     ...

   36:	 */
   37:	public ChangeAttributeCommand(String name, String attributeName,
   38:						   Object value, DrawingEditor newDrawingEditor) {
   39:		super(name, newDrawingEditor);
   40:		fAttribute = attributeName;
     ...

newName   ([-2, ':call:name', '#arg0:end'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractCommand.java
     ...

   44:
   45:	public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
   46:		setName(newName);
   47:		setDrawingEditor(newDrawingEditor);
     ...

tmp/src-jhotdraw/CH/ifa/draw/application/DrawApplication.java
     ...

  367:		CommandMenu menu = new CommandMenu(title);
  368:		for (int i=0; i<ColorMap.size(); i++)
  369:			menu.add(
  370:				new UndoableCommand(
  371:					new ChangeAttributeCommand(
  372:						ColorMap.name(i),
  373:						attribute,
  374:						ColorMap.color(i),
  375:						this
  376:					)
  377:				)
  378:			);
  379:		return menu;
     ...

[+] Match

newName   ([-2, ':call:name', '#arg0:ref_var:i'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractCommand.java
     ...

   44:
   45:	public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
   46:		setName(newName);
   47:		setDrawingEditor(newDrawingEditor);
     ...

tmp/src-jhotdraw/CH/ifa/draw/application/DrawApplication.java
     ...

  371:					new ChangeAttributeCommand(
  372:						ColorMap.name(i),
  373:						attribute,
     ...

[+] Match

newName   ([-2, ':call:string', '#arg0:ref_array:%I'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractCommand.java
     ...

   44:
   45:	public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
   46:		setName(newName);
   47:		setDrawingEditor(newDrawingEditor);
     ...

tmp/src-jhotdraw/CH/ifa/draw/application/DrawApplication.java
     ...

  435:					new ChangeAttributeCommand(
  436:						Integer.toString(sizes[i]),
  437:						"FontSize",
     ...

[+] Match

Proposal 12: in / figuresfe   (13.968)

inFigures

tmp/src-jhotdraw/CH/ifa/draw/standard/NullDrawingView.java
     ...

  403:	 */
  404:	public FigureEnumeration insertFigures(FigureEnumeration inFigures, int dx, int dy, boolean bCheck) {
  405:		return FigureEnumerator.getEmptyEnumeration();
     ...

fe   ([-1, '', ':call:affected'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

[+] Match

fe   ([-1, '', ':ref_var:fe'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AlignCommand.java
     ...

  213:
  214:		public void setAffectedFigures(FigureEnumeration fe) {
  215:			// first make copy of FigureEnumeration in superclass
  216:			super.setAffectedFigures(fe);
  217:			// then get new FigureEnumeration of copy to save aligment
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/PasteCommand.java
     ...

   55:			FigureEnumeration fe = insertFigures(getUndoActivity().getAffectedFigures(), lastClick.x-r.x, lastClick.y-r.y);
   56:			getUndoActivity().setAffectedFigures(fe);
   57:			
     ...

[+] Match

fe   ([-2, ':call:figures', '#this:call:reversed'])

tmp/src-jhotdraw/CH/ifa/draw/figures/ConnectedTextTool.java
     ...

  112:
  113:			FigureEnumeration fe = getAffectedFigures();
  114:			while (fe.hasMoreElements()) {
  115:				Figure currentFigure = fe.nextFigure();
  116:				if (currentFigure instanceof TextHolder) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/util/UndoRedoActivity.java
     ...

   36:		if (isRedoable()) {
   37:			return getReversedActivity().redo();
   38:		}
     ...

[+] Match

Proposal 13: kfe   (13.851)

k

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  267:	public void addAll(Vector figures) {
  268:		FigureEnumeration k = new FigureEnumerator(figures);
  269:		while (k.hasMoreElements()) {
  270:			add(k.nextFigure());
  271:		}
     ...

fe   ([1, '', 'obj:assign_field:single'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/SingleFigureEnumerator.java
     ...

   57:		Figure returnFigure = (Figure)mySingleFigure;
   58:		mySingleFigure = null;
   59:		return returnFigure;
     ...

[+] Match

fe   ([1, '', 'obj:ref_field:enumeration'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/ReverseFigureEnumerator.java
     ...

   52:	public Figure nextFigure() {
   53:		return (Figure)fEnumeration.nextElement();
   54:	}
     ...

[+] Match

fe   ([1, '', 'obj:ref_field:single'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   85:		protected boolean movePointToOldLocation() {
   86:			FigureEnumeration fe = getAffectedFigures();
   87:			if (!fe.hasMoreElements()) {
   88:				return false;
     ...

   90:
   91:			PolygonFigure figure = (PolygonFigure)fe.nextFigure();
   92:			Point backupPoint = figure.pointAt(getPointIndex());
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/SingleFigureEnumerator.java
     ...

   56:	public Figure nextFigure() {
   57:		Figure returnFigure = (Figure)mySingleFigure;
   58:		mySingleFigure = null;
     ...

[+] Match

Proposal 14: inffigure   (13.801)

inf

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  276:	 */
  277:	public boolean figureExists(Figure inf, FigureEnumeration e) {
  278:		while(e.hasMoreElements()) {
     ...

  280:
  281:			if(figure.includes(inf)) {
  282:				return true;
     ...

figure   ([-1, '', ':ref_var:ef'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

  168:	 */
  169:	public boolean includes(Figure figure) {
  170:		return figure == this;
  171:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  149:	 */
  150:	public boolean includes(Figure figure) {
  151:		return (super.includes(figure) || getDecoratedFigure().includes(figure));
  152:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  276:	 */
  277:	public boolean figureExists(Figure inf, FigureEnumeration e) {
  278:		while(e.hasMoreElements()) {
     ...

  280:
  281:			if(figure.includes(inf)) {
  282:				return true;
     ...

  325:			if (figureExists(sf, drawing().figures()) &&
  326:				figureExists(ef, drawing().figures()) &&
  327:				(!bCheck || cf.canConnect(sf, ef))) {
     ...

[+] Match

figure   ([-1, '', ':ref_var:sf'])

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

  168:	 */
  169:	public boolean includes(Figure figure) {
  170:		return figure == this;
  171:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  276:	 */
  277:	public boolean figureExists(Figure inf, FigureEnumeration e) {
  278:		while(e.hasMoreElements()) {
     ...

  280:
  281:			if(figure.includes(inf)) {
  282:				return true;
     ...

  324:
  325:			if (figureExists(sf, drawing().figures()) &&
  326:				figureExists(ef, drawing().figures()) &&
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  149:	 */
  150:	public boolean includes(Figure figure) {
  151:		return (super.includes(figure) || getDecoratedFigure().includes(figure));
  152:	}
     ...

[+] Match

figure   ([1, '', '#arg0:call:includes'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  232:		else {
  233:			Figure figure = drawing().findFigure(e.getX(), e.getY());
  234:			if (figure != null) {
  235:				//fChild = createDragTracker(view(), figure);
  236:				if (e.isShiftDown()) {
  237:				   view().toggleSelection(figure);
  238:				} else if( !view().selection().contains(figure)) {
  239:					view().clearSelection();
  240:					view().addToSelection(figure);
  241:				}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  467:	 */
  468:	public void addToSelection(Figure figure) {
  469:		if (!isFigureSelected(figure) && drawing().includes(figure)) {
  470:			fSelection.addElement(figure);
     ...

[+] Match

Proposal 15: ydy / y   (13.621)

y

tmp/src-jhotdraw/CH/ifa/draw/samples/javadraw/AnimationDecorator.java
     ...

   74:
   75:	public synchronized void basicMoveBy(int x, int y) {
   76:		super.basicMoveBy(x, y);
   77:	}
     ...

dy   ([-1, '', ':ref_var:dy'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  112:	 */
  113:	protected void basicMoveBy(int dx, int dy) {
  114:		super.basicMoveBy(dx, dy);
  115:		getPresentationFigure().moveBy(dx, dy);
  116:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

dy   ([1, '', '#arg1:call:by'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  438:					int dx = newP.x - origin.x;  /* distance the mouse has moved */
  439:					int dy = newP.y - origin.y;  /* distance the mouse has moved */
  440:					while ( itr.hasNext() ) {
  441:						Figure f = (Figure) itr.next();
  442:						f.moveBy( dx, dy );
  443:						lView.add( f );
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

   97:
   98:	protected void basicMoveBy(int x, int y) {
   99:		fDisplayBox.translate(x, y);
  100:		super.basicMoveBy(x, y);
  101:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  156:	 */
  157:	public void moveBy(int x, int y) {
  158:		getDecoratedFigure().moveBy(x, y);
  159:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

dy   ([1, '', '#arg1:call:move'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  438:					int dx = newP.x - origin.x;  /* distance the mouse has moved */
  439:					int dy = newP.y - origin.y;  /* distance the mouse has moved */
  440:					while ( itr.hasNext() ) {
  441:						Figure f = (Figure) itr.next();
  442:						f.moveBy( dx, dy );
  443:						lView.add( f );
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

   97:
   98:	protected void basicMoveBy(int x, int y) {
   99:		fDisplayBox.translate(x, y);
  100:		super.basicMoveBy(x, y);
  101:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  156:	 */
  157:	public void moveBy(int x, int y) {
  158:		getDecoratedFigure().moveBy(x, y);
  159:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

Proposal 16: f / indexi   (13.470)

fIndex

tmp/src-jhotdraw/CH/ifa/draw/figures/PolyLineHandle.java
     ...

   47:	public void invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view) {
   48:		int fIndex = ((PolyLineHandle.UndoActivity)getUndoActivity()).getPointIndex();
   49:		myOwner().setPointAt(new Point(x, y), fIndex);
   50:	}
     ...

i   ([-2, ':return', ':ref_field:index'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonFigure.java
     ...

  288:
  289:	public Point pointAt(int i) {
  290:		return new Point(getInternalPolygon().xpoints[i], 
  291:						 getInternalPolygon().ypoints[i]);
  292:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/PolyLineHandle.java
     ...

  122:		public int getPointIndex() {
  123:			return myPointIndex;
  124:		}
     ...

[+] Match

i   ([1, '', '#arg1:call:element'])

tmp/src-jhotdraw/CH/ifa/draw/figures/LineConnection.java
     ...

  244:	 */
  245:	public void insertPointAt(Point p, int i) {
  246:		super.insertPointAt(p, i);
  247:		layoutConnection();
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/PolyLineFigure.java
     ...

  120:	 */
  121:	public void insertPointAt(Point p, int i) {
  122:		fPoints.insertElementAt(p, i);
  123:		changed();
     ...

[+] Match

i   ([-2, ':call:index', '#this:op_typecast:Lactivity'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonFigure.java
     ...

  151:	 */
  152:	public void setPointAt(Point p, int i) {
  153:		willChange();
  154:		getInternalPolygon().xpoints[i] = p.x;
  155:		getInternalPolygon().ypoints[i] = p.y;
  156:		changed();
     ...

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonHandle.java
     ...

   52:	public void invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view) {
   53:		int index = ((PolyLineHandle.UndoActivity)getUndoActivity()).getPointIndex();
   54:		myOwner().setPointAt(new Point(x, y), index);
     ...

[+] Match

Proposal 17: xdx / x   (13.337)

x

tmp/src-jhotdraw/CH/ifa/draw/samples/javadraw/AnimationDecorator.java
     ...

   74:
   75:	public synchronized void basicMoveBy(int x, int y) {
   76:		super.basicMoveBy(x, y);
   77:	}
     ...

dx   ([-1, '', ':ref_var:dx'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  112:	 */
  113:	protected void basicMoveBy(int dx, int dy) {
  114:		super.basicMoveBy(dx, dy);
  115:		getPresentationFigure().moveBy(dx, dy);
  116:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

dx   ([1, '', '#arg0:call:by'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  437:
  438:					int dx = newP.x - origin.x;  /* distance the mouse has moved */
  439:					int dy = newP.y - origin.y;  /* distance the mouse has moved */
     ...

  441:						Figure f = (Figure) itr.next();
  442:						f.moveBy( dx, dy );
  443:						lView.add( f );
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

   97:
   98:	protected void basicMoveBy(int x, int y) {
   99:		fDisplayBox.translate(x, y);
  100:		super.basicMoveBy(x, y);
  101:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  156:	 */
  157:	public void moveBy(int x, int y) {
  158:		getDecoratedFigure().moveBy(x, y);
  159:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

dx   ([1, '', '#arg0:call:move'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DragNDropTool.java
     ...

  437:
  438:					int dx = newP.x - origin.x;  /* distance the mouse has moved */
  439:					int dy = newP.y - origin.y;  /* distance the mouse has moved */
     ...

  441:						Figure f = (Figure) itr.next();
  442:						f.moveBy( dx, dy );
  443:						lView.add( f );
     ...

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertFigure.java
     ...

   97:
   98:	protected void basicMoveBy(int x, int y) {
   99:		fDisplayBox.translate(x, y);
  100:		super.basicMoveBy(x, y);
  101:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  156:	 */
  157:	public void moveBy(int x, int y) {
  158:		getDecoratedFigure().moveBy(x, y);
  159:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/AbstractFigure.java
     ...

   59:	 */
   60:	public void moveBy(int dx, int dy) {
   61:		willChange();
   62:		basicMoveBy(dx, dy);
   63:		changed();
     ...

[+] Match

Proposal 18: image / graphicsg   (12.222)

imageGraphics

tmp/src-jhotdraw/CH/ifa/draw/standard/FastBufferedUpdateStrategy.java
     ...

  109:				d.height, BufferedImage.TYPE_INT_RGB);
  110:			Graphics imageGraphics = _scratchPadBufferedImage.getGraphics();
  111:			view.drawBackground(imageGraphics);
  112:			_bRedrawAll = true;
     ...

g   ([1, '', ':assign_var:g'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  130:	 */
  131:	public void draw(Graphics g) {
  132:		getPresentationFigure().draw(g);
  133:		super.draw(g);
  134:	}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/CompositeFigure.java
     ...

  339:	 */
  340:	public void draw(Graphics g) {
  341:		FigureEnumeration fe = figures();
     ...

[+] Match

g   ([1, '', '#this:call:fill'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/DiamondFigure.java
     ...

   50:
   51:	public void draw(Graphics g) {
   52:		Polygon p = getPolygon();
   53:		g.setColor(getFillColor());
   54:		g.fillPolygon(p);
   55:		g.setColor(getFrameColor());
   56:		g.drawPolygon(p);
   57:	}
     ...

[+] Match

g   ([-1, '', ':call:graphics'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/PolygonScaleHandle.java
     ...

  110:	
  111:	public void draw(Graphics g) {
  112:		Rectangle r = displayBox();
  113:	
  114:		g.setColor(Color.yellow);
  115:		g.fillOval(r.x, r.y, r.width, r.height);
  116:	
  117:		g.setColor(Color.black);
  118:		g.drawOval(r.x, r.y, r.width, r.height);
  119:	
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/StandardDrawingView.java
     ...

  743:	 */
  744:	public void drawAll(Graphics g) {
  745:		boolean isPrinting = g instanceof PrintGraphics;
     ...

  754:		if (!isPrinting) {
  755:			drawHandles(g);
  756:		}
     ...

  782:	 */
  783:	public void drawHandles(Graphics g) {
  784:		Enumeration k = selectionHandles();
  785:		while (k.hasMoreElements()) {
  786:			((Handle) k.nextElement()).draw(g);
  787:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/FastBufferedUpdateStrategy.java
     ...

   46:		if (_bRedrawAll == true) {
   47:			Graphics imageGraphics = _doubleBufferedImage.getGraphics();
   48:			view.drawAll(imageGraphics);
   49:		}
     ...

[+] Match

Proposal 19: redvalue / url   (11.934)

red

tmp/src-jhotdraw/CH/ifa/draw/samples/pert/PertDependency.java
     ...

   39:		if (source.hasCycle(target)) {
   40:			setAttribute("FrameColor", Color.red);
   41:		}
     ...

value   ([1, '', ':op_typecast:Lcolor'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  169:	 */
  170:	public void setAttribute(String name, Object value) {
  171:		if (getPresentationFigure() != null) {
  172:			getPresentationFigure().setAttribute(name, value);
  173:		}
  174:		else {
  175:			super.setAttribute(name, value);
  176:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/PolyLineFigure.java
     ...

  289:	 */
  290:	public void setAttribute(String name, Object value) {
  291:		if (name.equals("FrameColor")) {
  292:			setFrameColor((Color)value);
  293:			changed();
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  229:	 */
  230:	public void setAttribute(String name, Object value) {
  231:		getDecoratedFigure().setAttribute(name, value);
  232:	}
     ...

[+] Match

value   ([1, '', '#arg1:call:attribute'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  169:	 */
  170:	public void setAttribute(String name, Object value) {
  171:		if (getPresentationFigure() != null) {
  172:			getPresentationFigure().setAttribute(name, value);
  173:		}
  174:		else {
  175:			super.setAttribute(name, value);
  176:		}
     ...

[+] Match

value   ([1, '', ':op_typecast:Linteger'])

tmp/src-jhotdraw/CH/ifa/draw/contrib/GraphicalCompositeFigure.java
     ...

  169:	 */
  170:	public void setAttribute(String name, Object value) {
  171:		if (getPresentationFigure() != null) {
  172:			getPresentationFigure().setAttribute(name, value);
  173:		}
  174:		else {
  175:			super.setAttribute(name, value);
  176:		}
     ...

tmp/src-jhotdraw/CH/ifa/draw/figures/PolyLineFigure.java
     ...

  289:	 */
  290:	public void setAttribute(String name, Object value) {
  291:		if (name.equals("FrameColor")) {
     ...

  295:		else if (name.equals("ArrowMode")) {
  296:			Integer intObj = (Integer) value;
  297:			if (intObj != null) {
     ...

tmp/src-jhotdraw/CH/ifa/draw/standard/DecoratorFigure.java
     ...

  229:	 */
  230:	public void setAttribute(String name, Object value) {
  231:		getDecoratedFigure().setAttribute(name, value);
  232:	}
     ...

[+] Match