new / affected / figures → fe (49.518)newAffectedFigures
...
82:
83: public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
84: getReversedActivity().setAffectedFigures(newAffectedFigures);
85: }
...
fe ([1, '', ':assign_var:fe'])
...
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:
...
...
324: */
325: public void draw(Graphics g, FigureEnumeration fe) {
326: // ignore: do nothing
...
...
83: public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
84: getReversedActivity().setAffectedFigures(newAffectedFigures);
85: }
...
...
213:
214: public void setAffectedFigures(FigureEnumeration fe) {
215: // first make copy of FigureEnumeration in superclass
...
fe ([1, '', '#arg0:call:affected'])
...
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
...
...
83: public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
84: getReversedActivity().setAffectedFigures(newAffectedFigures);
85: }
...
...
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
...
fe ([1, '', ':assign_var:figures'])
...
48: */
49: protected void copyFigures(FigureEnumeration fe, int figureCount) {
50: Clipboard.getClipboard().setContents(new StandardFigureSelection(fe, figureCount));
51: }
...
...
41: */
42: public StandardFigureSelection(FigureEnumeration figures, int figureCount) {
43: // a FigureSelection is represented as a flattened ByteStream
...
...
83: public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
84: getReversedActivity().setAffectedFigures(newAffectedFigures);
85: }
...
...
69:
70: public void setAffectedFigures(FigureEnumeration newAffectedFigures) {
71: // the enumeration is not reusable therefore a copy is made
...
...
140:
141: public void setAffectedFigures(FigureEnumeration fe) {
142: // first make copy of FigureEnumeration in superclass
143: super.setAffectedFigures(fe);
144: // then get new FigureEnumeration of copy to save attributes
...
f → figure / f (46.385)f
...
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'])
...
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)) {
...
...
112: private static void initializeAttributes() {
113: fgDefaultAttributes = new FigureAttributes();
114: fgDefaultAttributes.set("FrameColor", Color.black);
...
...
104: if (getBackupValue() != null) {
105: f.setAttribute(getAttributeName(), getBackupValue());
106: }
...
...
151: if (fAttributes == null)
152: fAttributes = new FigureAttributes();
153: fAttributes.set(name, value);
...
figure ([1, '', 'obj:ref_field:attributes'])
...
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)) {
...
...
119: fgDefaultAttributes.set("FontSize", new Integer(12));
120: fgDefaultAttributes.set("FontStyle", new Integer(Font.PLAIN));
121: }
...
...
104: if (getBackupValue() != null) {
105: f.setAttribute(getAttributeName(), getBackupValue());
106: }
...
...
152: fAttributes = new FigureAttributes();
153: fAttributes.set(name, value);
154: changed();
...
figure ([1, '', 'obj:ref_field:font'])
...
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)) {
...
...
111: public Font getFont() {
112: return fFont;
113: }
...
...
104: if (getBackupValue() != null) {
105: f.setAttribute(getAttributeName(), getBackupValue());
106: }
...
...
111: public Font getFont() {
112: return fFont;
113: }
...
text / owner → figure / f (29.996)textOwner
...
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'])
...
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: }
...
...
467: */
468: public void addToSelection(Figure figure) {
469: if (!isFigureSelected(figure) && drawing().includes(figure)) {
...
471: fSelectionHandles = null;
472: figure.invalidate();
473: fireSelectionChanged();
...
...
245: r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
246: fListener.figureInvalidated(new FigureChangeEvent(this, r));
247: }
...
...
245: r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
246: fListener.figureInvalidated(new FigureChangeEvent(this, r));
247: }
...
...
40: int newSize = activity.getFont().getSize() + y-anchorY;
41: textOwner.setFont(new Font(activity.getFont().getName(), activity.getFont().getStyle(), newSize));
42: }
...
figure ([1, '', '#this:call:invalidate'])
...
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: }
...
...
467: */
468: public void addToSelection(Figure figure) {
469: if (!isFigureSelected(figure) && drawing().includes(figure)) {
...
471: fSelectionHandles = null;
472: figure.invalidate();
473: fireSelectionChanged();
...
...
266: public void changed() {
267: invalidate();
268: if (fListener != null) {
...
...
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:event'])
...
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: }
...
...
467: */
468: public void addToSelection(Figure figure) {
469: if (!isFigureSelected(figure) && drawing().includes(figure)) {
...
471: fSelectionHandles = null;
472: figure.invalidate();
473: fireSelectionChanged();
...
...
245: r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
246: fListener.figureInvalidated(new FigureChangeEvent(this, r));
247: }
...
...
245: r.grow(Handle.HANDLESIZE, Handle.HANDLESIZE);
246: fListener.figureInvalidated(new FigureChangeEvent(this, r));
247: }
...
...
40: int newSize = activity.getFont().getSize() + y-anchorY;
41: textOwner.setFont(new Font(activity.getFont().getName(), activity.getFont().getStyle(), newSize));
42: }
...
target → figure (25.052)target
...
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'])
...
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: }
...
...
67:
68: return chop(endFigure, r1c);
69: }
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, '', '#this:call:decorated'])
...
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)) {
...
...
237: public Object getAttribute(String name) {
238: return getDecoratedFigure().getAttribute(name);
239: }
...
...
71: protected Point chop(Figure target, Point from) {
72: Rectangle r = target.displayBox();
73: return Geom.angleToPoint(r, (Geom.pointToAngle(r, from)));
...
...
83: public Rectangle displayBox() {
84: Rectangle r = getDecoratedFigure().displayBox();
85: r.grow(getBorderOffset().x, getBorderOffset().y);
...
endFigure ([-1, '', ':call:owner'])
...
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:
...
...
56: public Point findEnd(ConnectionFigure connection) {
57: Figure endFigure = connection.getEndConnector().owner();
58: Rectangle r1 = connection.getStartConnector().displayBox();
...
67:
68: return chop(endFigure, r1c);
69: }
70:
71: protected Point chop(Figure target, Point from) {
72: Rectangle r = target.displayBox();
73: return Geom.angleToPoint(r, (Geom.pointToAngle(r, from)));
...
f / scribble → polygon / f (24.634)fScribble
...
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'])
...
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();
...
...
61: fScribble = new PolyLineFigure(x, y);
62: setAddedFigure(view().add(fScribble));
63: }
...
fPolygon ([2, '#arg0:call:add', '#arg0:call:set'])
...
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();
...
...
61: fScribble = new PolyLineFigure(x, y);
62: setAddedFigure(view().add(fScribble));
63: }
...
fPolygon ([2, '#arg0:call:add', ':assign_var:added'])
...
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;
...
...
61: fScribble = new PolyLineFigure(x, y);
62: setAddedFigure(view().add(fScribble));
63: }
...
103:
104: private void setAddedFigure(Figure newAddedFigure) {
105: myAddedFigure = newAddedFigure;
...
k → fe (23.301)k
...
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'])
...
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());
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
...
78: super.setAttribute(name, value);
79: FigureEnumeration k = figures();
80: while (k.hasMoreElements()) {
81: k.nextFigure().setAttribute(name, value);
82: }
...
fe ([1, '', 'obj:ref_field:enumeration'])
...
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());
...
...
52: public Figure nextFigure() {
53: return (Figure)fEnumeration.nextElement();
54: }
...
...
78: super.setAttribute(name, value);
79: FigureEnumeration k = figures();
80: while (k.hasMoreElements()) {
81: k.nextFigure().setAttribute(name, value);
82: }
...
...
52: public Figure nextFigure() {
53: return (Figure)fEnumeration.nextElement();
54: }
...
fe ([1, '', 'obj:ref_field:single'])
...
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());
...
...
56: public Figure nextFigure() {
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
...
...
56: public Figure nextFigure() {
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
...
...
78: super.setAttribute(name, value);
79: FigureEnumeration k = figures();
80: while (k.hasMoreElements()) {
81: k.nextFigure().setAttribute(name, value);
82: }
...
c → connector / end (22.061)c
...
51: */
52: protected void connect(Connector c) {
53: getConnection().connectEnd(c);
54: }
...
newEndConnector ([1, '', ':assign_var:connector'])
...
81: */
82: public void connectEnd(Connector newEndConnector) {
83: setEndConnector(newEndConnector);
84: endFigure().addFigureChangeListener(this);
...
156:
157: protected void setEndConnector(Connector newEndConnector) {
158: myEndConnector = newEndConnector;
...
...
81: */
82: public void connectEnd(Connector newEndConnector) {
83: setEndConnector(newEndConnector);
84: endFigure().addFigureChangeListener(this);
...
156:
157: protected void setEndConnector(Connector newEndConnector) {
158: myEndConnector = newEndConnector;
...
...
52: protected void connect(Connector c) {
53: getConnection().connectEnd(c);
54: }
...
fEndConnector ([1, '', '#arg0:call:connect'])
...
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();
...
...
52: protected void connect(Connector c) {
53: getConnection().connectEnd(c);
54: }
...
myEndConnector ([2, '#arg0:call:end', ':call:attribute'])
...
360: myStartConnector = getConnection().getStartConnector();
361: myEndConnector = getConnection().getEndConnector();
362: setUndoable(true);
...
397: getConnection().connectStart(myStartConnector);
398: getConnection().connectEnd(myEndConnector);
399: getConnection().updateConnection();
...
...
237: public Object getAttribute(String name) {
238: return getDecoratedFigure().getAttribute(name);
239: }
...
...
123: setPoint(x, y);
124: connect(target);
125: getConnection().updateConnection();
...
...
52: protected void connect(Connector c) {
53: getConnection().connectEnd(c);
54: }
...
...
237: public Object getAttribute(String name) {
238: return getDecoratedFigure().getAttribute(name);
239: }
...
evt → e (20.495)evt
...
88: */
89: public void mouseMove(MouseEvent evt, int x, int y) {
90: getWrappedTool().mouseMove(evt, x, y);
91: }
...
e ([1, '', '#arg0:call:track'])
...
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) {
...
...
86: */
87: public void mouseMove(MouseEvent e, int x, int y) {
88: trackConnectors(e, x, y);
89: }
...
...
89: public void mouseMove(MouseEvent evt, int x, int y) {
90: getWrappedTool().mouseMove(evt, x, y);
91: }
...
e ([1, '', ':assign_var:e'])
...
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: }
...
...
86: */
87: public void mouseMove(MouseEvent e, int x, int y) {
88: trackConnectors(e, x, y);
89: }
...
240:
241: protected void trackConnectors(MouseEvent e, int x, int y) {
242: Figure c = null;
...
...
89: public void mouseMove(MouseEvent evt, int x, int y) {
90: getWrappedTool().mouseMove(evt, x, y);
91: }
...
e ([1, '', '#arg0:call:mouse'])
...
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: }
...
...
89: public void mouseMove(MouseEvent evt, int x, int y) {
90: getWrappedTool().mouseMove(evt, x, y);
91: }
...
redo / stack → undo (17.624)redoStack
...
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'])
...
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: }
...
...
168: public void clearRedos() {
169: clearStack(redoStack);
170: }
...
undoStack ([1, '', '#arg0:call:stack'])
...
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: }
...
...
168: public void clearRedos() {
169: clearStack(redoStack);
170: }
...
undoStack ([1, '', ':assign_var:clear'])
...
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();
...
...
168: public void clearRedos() {
169: clearStack(redoStack);
170: }
171:
172: protected void clearStack(Vector clearStack) {
173: clearStack.removeAllElements();
...
an / object → f (17.259)anObject
...
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'])
...
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: }
...
...
170: duration.setFont(fb);
171: add(duration);
172:
...
...
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: }
...
...
52:
53: public void add(Object anObject, Rectangle2D absoluteBoundingRectangle2D) {
54: if (_nMaxTreeDepth == 1) {
...
109: if (bSE == true) {
110: _seQuadTree.add(anObject, absoluteBoundingRectangle2D);
111: }
...
...
170: duration.setFont(fb);
171: add(duration);
172:
...
f ([-1, '', ':new:text'])
...
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: }
...
...
172:
173: NumberTextFigure end = new NumberTextFigure();
174: end.setValue(0);
...
176: end.setReadOnly(true);
177: add(end);
178: }
...
...
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: }
...
...
172:
173: NumberTextFigure end = new NumberTextFigure();
174: end.setValue(0);
...
176: end.setReadOnly(true);
177: add(end);
178: }
...
...
52:
53: public void add(Object anObject, Rectangle2D absoluteBoundingRectangle2D) {
54: if (_nMaxTreeDepth == 1) {
...
109: if (bSE == true) {
110: _seQuadTree.add(anObject, absoluteBoundingRectangle2D);
111: }
...
f ([-2, ':new:figure', ':assign_field:f'])
...
669:
670: private void _addToQuadTree(Figure f) {
671: if (_theQuadTree != null) {
672: _theQuadTree.add(f, new Bounds(f.displayBox()).asRectangle2D());
673: }
...
...
156: fPreTasks = new Vector();
157: fDisplayBox = new Rectangle(0, 0, 0, 0);
158:
...
...
156: fPreTasks = new Vector();
157: fDisplayBox = new Rectangle(0, 0, 0, 0);
158:
...
grouped / figures → fe (16.725)groupedFigures
...
83:
84: FigureEnumeration groupedFigures = currentFigure.figures();
85: while (groupedFigures.hasMoreElements()) {
86: affectedFigures.addElement(groupedFigures.nextFigure());
87: }
...
fe ([-2, ':call:figures', '#this:call:figure'])
...
557: protected void basicMoveBy(int x, int y) {
558: FigureEnumeration fe = figures();
559: while (fe.hasMoreElements()) {
560: fe.nextFigure().moveBy(x,y);
561: }
...
...
157: public void moveBy(int x, int y) {
158: getDecoratedFigure().moveBy(x, y);
159: }
...
...
78: while (fe.hasMoreElements()) {
79: Figure currentFigure = fe.nextFigure();
80: // add contained figures
...
83:
84: FigureEnumeration groupedFigures = currentFigure.figures();
85: while (groupedFigures.hasMoreElements()) {
...
fe ([-2, ':call:figures', '#this:ref_var:figure'])
...
557: protected void basicMoveBy(int x, int y) {
558: FigureEnumeration fe = figures();
559: while (fe.hasMoreElements()) {
560: fe.nextFigure().moveBy(x,y);
561: }
...
...
309: else if (figure != null) {
310: figure.moveBy(dx, dy);
311: figure = add(figure);
...
...
83:
84: FigureEnumeration groupedFigures = currentFigure.figures();
85: while (groupedFigures.hasMoreElements()) {
...
fe ([1, '', 'obj:assign_field:single'])
...
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());
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
...
85: while (groupedFigures.hasMoreElements()) {
86: affectedFigures.addElement(groupedFigures.nextFigure());
87: }
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
name → new (15.541)name
...
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'])
...
44:
45: public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
46: setName(newName);
47: setDrawingEditor(newDrawingEditor);
...
...
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;
...
...
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;
...
newName ([-2, ':call:name', '#arg0:ref_var:i'])
...
44:
45: public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
46: setName(newName);
47: setDrawingEditor(newDrawingEditor);
...
...
371: new ChangeAttributeCommand(
372: ColorMap.name(i),
373: attribute,
...
...
371: new ChangeAttributeCommand(
372: ColorMap.name(i),
373: attribute,
...
newName ([-2, ':call:string', '#arg0:ref_array:%I'])
...
44:
45: public AbstractCommand(String newName, DrawingEditor newDrawingEditor, boolean newIsViewRequired) {
46: setName(newName);
47: setDrawingEditor(newDrawingEditor);
...
...
435: new ChangeAttributeCommand(
436: Integer.toString(sizes[i]),
437: "FontSize",
...
...
435: new ChangeAttributeCommand(
436: Integer.toString(sizes[i]),
437: "FontSize",
...
in / figures → fe (13.968)inFigures
...
403: */
404: public FigureEnumeration insertFigures(FigureEnumeration inFigures, int dx, int dy, boolean bCheck) {
405: return FigureEnumerator.getEmptyEnumeration();
...
fe ([-1, '', ':call:affected'])
...
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());
...
...
400:
401: getDrawingView().insertFigures(getAffectedFigures(), 0, 0, false);
402:
...
...
403: */
404: public FigureEnumeration insertFigures(FigureEnumeration inFigures, int dx, int dy, boolean bCheck) {
405: return FigureEnumerator.getEmptyEnumeration();
...
fe ([-1, '', ':ref_var:fe'])
...
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
...
...
55: FigureEnumeration fe = insertFigures(getUndoActivity().getAffectedFigures(), lastClick.x-r.x, lastClick.y-r.y);
56: getUndoActivity().setAffectedFigures(fe);
57:
...
...
403: */
404: public FigureEnumeration insertFigures(FigureEnumeration inFigures, int dx, int dy, boolean bCheck) {
405: return FigureEnumerator.getEmptyEnumeration();
...
...
57: FigureEnumeration insertFigures(FigureEnumeration fe, int dx, int dy) {
58: return view().insertFigures(fe, dx, dy, false);
59: }
...
fe ([-2, ':call:figures', '#this:call:reversed'])
...
112:
113: FigureEnumeration fe = getAffectedFigures();
114: while (fe.hasMoreElements()) {
115: Figure currentFigure = fe.nextFigure();
116: if (currentFigure instanceof TextHolder) {
...
...
36: if (isRedoable()) {
37: return getReversedActivity().redo();
38: }
...
...
36: if (isRedoable()) {
37: return getReversedActivity().redo();
38: }
...
k → fe (13.851)k
...
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'])
...
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());
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
...
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
59: return returnFigure;
...
...
269: while (k.hasMoreElements()) {
270: add(k.nextFigure());
271: }
...
fe ([1, '', 'obj:ref_field:enumeration'])
...
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());
...
...
52: public Figure nextFigure() {
53: return (Figure)fEnumeration.nextElement();
54: }
...
...
269: while (k.hasMoreElements()) {
270: add(k.nextFigure());
271: }
...
...
52: public Figure nextFigure() {
53: return (Figure)fEnumeration.nextElement();
54: }
...
fe ([1, '', 'obj:ref_field:single'])
...
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());
...
...
56: public Figure nextFigure() {
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
...
...
56: public Figure nextFigure() {
57: Figure returnFigure = (Figure)mySingleFigure;
58: mySingleFigure = null;
...
...
269: while (k.hasMoreElements()) {
270: add(k.nextFigure());
271: }
...
inf → figure (13.801)inf
...
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'])
...
168: */
169: public boolean includes(Figure figure) {
170: return figure == this;
171: }
...
...
149: */
150: public boolean includes(Figure figure) {
151: return (super.includes(figure) || getDecoratedFigure().includes(figure));
152: }
...
...
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))) {
...
...
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))) {
...
figure ([-1, '', ':ref_var:sf'])
...
168: */
169: public boolean includes(Figure figure) {
170: return figure == this;
171: }
...
...
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()) &&
...
...
149: */
150: public boolean includes(Figure figure) {
151: return (super.includes(figure) || getDecoratedFigure().includes(figure));
152: }
...
...
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()) &&
...
figure ([1, '', '#arg0:call:includes'])
...
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: }
...
...
467: */
468: public void addToSelection(Figure figure) {
469: if (!isFigureSelected(figure) && drawing().includes(figure)) {
470: fSelection.addElement(figure);
...
...
149: */
150: public boolean includes(Figure figure) {
151: return (super.includes(figure) || getDecoratedFigure().includes(figure));
152: }
...
...
535: */
536: public boolean includes(Figure figure) {
537: if (super.includes(figure)) {
...
543: Figure f = fe.nextFigure();
544: if (f.includes(figure)) {
545: return true;
...
...
280:
281: if(figure.includes(inf)) {
282: return true;
...
y → dy / y (13.621)y
...
74:
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
dy ([-1, '', ':ref_var:dy'])
...
112: */
113: protected void basicMoveBy(int dx, int dy) {
114: super.basicMoveBy(dx, dy);
115: getPresentationFigure().moveBy(dx, dy);
116: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
74:
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
...
114: super.basicMoveBy(dx, dy);
115: getPresentationFigure().moveBy(dx, dy);
116: }
...
dy ([1, '', '#arg1:call:by'])
...
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 );
...
...
97:
98: protected void basicMoveBy(int x, int y) {
99: fDisplayBox.translate(x, y);
100: super.basicMoveBy(x, y);
101: }
...
...
156: */
157: public void moveBy(int x, int y) {
158: getDecoratedFigure().moveBy(x, y);
159: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
dy ([1, '', '#arg1:call:move'])
...
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 );
...
...
97:
98: protected void basicMoveBy(int x, int y) {
99: fDisplayBox.translate(x, y);
100: super.basicMoveBy(x, y);
101: }
...
...
156: */
157: public void moveBy(int x, int y) {
158: getDecoratedFigure().moveBy(x, y);
159: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
f / index → i (13.470)fIndex
...
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'])
...
288:
289: public Point pointAt(int i) {
290: return new Point(getInternalPolygon().xpoints[i],
291: getInternalPolygon().ypoints[i]);
292: }
...
...
122: public int getPointIndex() {
123: return myPointIndex;
124: }
...
...
122: public int getPointIndex() {
123: return myPointIndex;
124: }
...
i ([1, '', '#arg1:call:element'])
...
244: */
245: public void insertPointAt(Point p, int i) {
246: super.insertPointAt(p, i);
247: layoutConnection();
...
...
120: */
121: public void insertPointAt(Point p, int i) {
122: fPoints.insertElementAt(p, i);
123: changed();
...
...
48: int fIndex = ((PolyLineHandle.UndoActivity)getUndoActivity()).getPointIndex();
49: myOwner().setPointAt(new Point(x, y), fIndex);
50: }
...
...
236: */
237: public void setPointAt(Point p, int i) {
238: super.setPointAt(p, i);
239: layoutConnection();
...
...
111: */
112: public void setPointAt(Point p, int i) {
113: willChange();
114: fPoints.setElementAt(p, i);
115: changed();
...
i ([-2, ':call:index', '#this:op_typecast:Lactivity'])
...
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();
...
...
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);
...
...
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);
...
x → dx / x (13.337)x
...
74:
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
dx ([-1, '', ':ref_var:dx'])
...
112: */
113: protected void basicMoveBy(int dx, int dy) {
114: super.basicMoveBy(dx, dy);
115: getPresentationFigure().moveBy(dx, dy);
116: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
74:
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
114: super.basicMoveBy(dx, dy);
115: getPresentationFigure().moveBy(dx, dy);
116: }
...
dx ([1, '', '#arg0:call:by'])
...
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 );
...
...
97:
98: protected void basicMoveBy(int x, int y) {
99: fDisplayBox.translate(x, y);
100: super.basicMoveBy(x, y);
101: }
...
...
156: */
157: public void moveBy(int x, int y) {
158: getDecoratedFigure().moveBy(x, y);
159: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
dx ([1, '', '#arg0:call:move'])
...
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 );
...
...
97:
98: protected void basicMoveBy(int x, int y) {
99: fDisplayBox.translate(x, y);
100: super.basicMoveBy(x, y);
101: }
...
...
156: */
157: public void moveBy(int x, int y) {
158: getDecoratedFigure().moveBy(x, y);
159: }
...
...
59: */
60: public void moveBy(int dx, int dy) {
61: willChange();
62: basicMoveBy(dx, dy);
63: changed();
...
...
75: public synchronized void basicMoveBy(int x, int y) {
76: super.basicMoveBy(x, y);
77: }
...
image / graphics → g (12.222)imageGraphics
...
109: d.height, BufferedImage.TYPE_INT_RGB);
110: Graphics imageGraphics = _scratchPadBufferedImage.getGraphics();
111: view.drawBackground(imageGraphics);
112: _bRedrawAll = true;
...
g ([1, '', ':assign_var:g'])
...
130: */
131: public void draw(Graphics g) {
132: getPresentationFigure().draw(g);
133: super.draw(g);
134: }
...
...
339: */
340: public void draw(Graphics g) {
341: FigureEnumeration fe = figures();
...
...
347: */
348: public void drawBackground(Graphics g) {
349: // ignore: do nothing
...
...
110: Graphics imageGraphics = _scratchPadBufferedImage.getGraphics();
111: view.drawBackground(imageGraphics);
112: _bRedrawAll = true;
...
g ([1, '', '#this:call:fill'])
...
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: }
...
...
801: */
802: public void drawBackground(Graphics g) {
803: g.setColor(getBackground());
804: g.fillRect(0, 0, getBounds().width, getBounds().height);
805: }
...
...
110: Graphics imageGraphics = _scratchPadBufferedImage.getGraphics();
111: view.drawBackground(imageGraphics);
112: _bRedrawAll = true;
...
g ([-1, '', ':call:graphics'])
...
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:
...
...
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: }
...
...
46: if (_bRedrawAll == true) {
47: Graphics imageGraphics = _doubleBufferedImage.getGraphics();
48: view.drawAll(imageGraphics);
49: }
...
...
109: d.height, BufferedImage.TYPE_INT_RGB);
110: Graphics imageGraphics = _scratchPadBufferedImage.getGraphics();
111: view.drawBackground(imageGraphics);
112: _bRedrawAll = true;
...
red → value / url (11.934)red
...
39: if (source.hasCycle(target)) {
40: setAttribute("FrameColor", Color.red);
41: }
...
value ([1, '', ':op_typecast:Lcolor'])
...
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: }
...
...
289: */
290: public void setAttribute(String name, Object value) {
291: if (name.equals("FrameColor")) {
292: setFrameColor((Color)value);
293: changed();
...
...
229: */
230: public void setAttribute(String name, Object value) {
231: getDecoratedFigure().setAttribute(name, value);
232: }
...
...
289: */
290: public void setAttribute(String name, Object value) {
291: if (name.equals("FrameColor")) {
292: setFrameColor((Color)value);
293: changed();
...
...
39: if (source.hasCycle(target)) {
40: setAttribute("FrameColor", Color.red);
41: }
...
value ([1, '', '#arg1:call:attribute'])
...
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: }
...
...
289: */
290: public void setAttribute(String name, Object value) {
291: if (name.equals("FrameColor")) {
...
314: else {
315: super.setAttribute(name, value);
316: }
...
...
39: if (source.hasCycle(target)) {
40: setAttribute("FrameColor", Color.red);
41: }
...
value ([1, '', ':op_typecast:Linteger'])
...
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: }
...
...
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) {
...
...
229: */
230: public void setAttribute(String name, Object value) {
231: getDecoratedFigure().setAttribute(name, value);
232: }
...
...
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) {
...
...
39: if (source.hasCycle(target)) {
40: setAttribute("FrameColor", Color.red);
41: }
...