comparing with http://hg.netbeans.org/main/ searching for changes changeset: 83089:0eb545fa1275 tag: tip user: derbeth@netbeans.org date: Wed Jun 25 12:54:19 2008 +0200 summary: fixed spelling error: "interraction" instead of "interaction" diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/api/visual/action/ActionFactory.java --- a/api.visual/src/org/netbeans/api/visual/action/ActionFactory.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/api/visual/action/ActionFactory.java Wed Jun 25 12:54:19 2008 +0200 @@ -225,165 +225,165 @@ /** * Creates a align-with move action. * @param collectionLayer the layer with objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @return the align-with move action */ - public static WidgetAction createAlignWithMoveAction (LayerWidget collectionLayer, LayerWidget interractionLayer, AlignWithMoveDecorator decorator) { - return createAlignWithMoveAction (collectionLayer, interractionLayer, decorator, true); + public static WidgetAction createAlignWithMoveAction (LayerWidget collectionLayer, LayerWidget interactionLayer, AlignWithMoveDecorator decorator) { + return createAlignWithMoveAction (collectionLayer, interactionLayer, decorator, true); } /** * Creates a align-with move action. * @param collectionLayer the layer with objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @param outerBounds if true, then the align-with is check against whole bounds of widgets in collection layer; * if false, then the align-with is check against client area (widget bounds without border insets * @return the align-with move action * @since 2.7 */ - public static WidgetAction createAlignWithMoveAction (LayerWidget collectionLayer, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + public static WidgetAction createAlignWithMoveAction (LayerWidget collectionLayer, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { assert collectionLayer != null; - return createAlignWithMoveAction (new SingleLayerAlignWithWidgetCollector (collectionLayer, outerBounds), interractionLayer, decorator != null ? decorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, outerBounds); + return createAlignWithMoveAction (new SingleLayerAlignWithWidgetCollector (collectionLayer, outerBounds), interactionLayer, decorator != null ? decorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, outerBounds); } /** * Creates a align-with move action. * @param collector the collector of objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @return the align-with move action */ - public static WidgetAction createAlignWithMoveAction (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator) { - return createAlignWithMoveAction (collector, interractionLayer, decorator, true); + public static WidgetAction createAlignWithMoveAction (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator) { + return createAlignWithMoveAction (collector, interactionLayer, decorator, true); } /** * Creates a align-with move action. * @param collector the collector of objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @param outerBounds if true, then the align-with is check against whole bounds of widgets in collection layer; * if false, then the align-with is check against client area (widget bounds without border insets * @return the align-with move action * @since 2.7 */ - public static WidgetAction createAlignWithMoveAction (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { - assert collector != null && interractionLayer != null && decorator != null; - AlignWithMoveStrategyProvider sp = new AlignWithMoveStrategyProvider (collector, interractionLayer, decorator, outerBounds); + public static WidgetAction createAlignWithMoveAction (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + assert collector != null && interactionLayer != null && decorator != null; + AlignWithMoveStrategyProvider sp = new AlignWithMoveStrategyProvider (collector, interactionLayer, decorator, outerBounds); return createMoveAction (sp, sp); } /** * Creates a align-with resize action. * @param collectionLayer the layer with objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @return the align-with resize action */ - public static WidgetAction createAlignWithResizeAction (LayerWidget collectionLayer, LayerWidget interractionLayer, AlignWithMoveDecorator decorator) { - return createAlignWithResizeAction (collectionLayer, interractionLayer, decorator, true); + public static WidgetAction createAlignWithResizeAction (LayerWidget collectionLayer, LayerWidget interactionLayer, AlignWithMoveDecorator decorator) { + return createAlignWithResizeAction (collectionLayer, interactionLayer, decorator, true); } /** * Creates a align-with resize action. * @param collectionLayer the layer with objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @param outerBounds if true, then the align-with is check against whole bounds of widgets in collection layer; * if false, then the align-with is check against client area (widget bounds without border insets * @return the align-with resize action * @since 2.7 */ - public static WidgetAction createAlignWithResizeAction (LayerWidget collectionLayer, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + public static WidgetAction createAlignWithResizeAction (LayerWidget collectionLayer, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { assert collectionLayer != null; - return createAlignWithResizeAction (new SingleLayerAlignWithWidgetCollector (collectionLayer, outerBounds), interractionLayer, decorator != null ? decorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, outerBounds); + return createAlignWithResizeAction (new SingleLayerAlignWithWidgetCollector (collectionLayer, outerBounds), interactionLayer, decorator != null ? decorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, outerBounds); } /** * Creates a align-with resize action. * @param collector the collector of objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @return the align-with resize action */ - public static WidgetAction createAlignWithResizeAction (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator) { - return createAlignWithResizeAction (collector, interractionLayer, decorator, true); + public static WidgetAction createAlignWithResizeAction (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator) { + return createAlignWithResizeAction (collector, interactionLayer, decorator, true); } /** * Creates a align-with resize action. * @param collector the collector of objects that the alignment is checked against. - * @param interractionLayer the interraction layer where the align-with hint lines are placed + * @param interactionLayer the interaction layer where the align-with hint lines are placed * @param decorator the align-with move decorator * @param outerBounds if true, then the align-with is check against whole bounds of widgets in collection layer; * if false, then the align-with is check against client area (widget bounds without border insets * @return the align-with resize action * @since 2.7 */ - public static WidgetAction createAlignWithResizeAction (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { - assert collector != null && interractionLayer != null && decorator != null; - AlignWithResizeStrategyProvider sp = new AlignWithResizeStrategyProvider (collector, interractionLayer, decorator, outerBounds); + public static WidgetAction createAlignWithResizeAction (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + assert collector != null && interactionLayer != null && decorator != null; + AlignWithResizeStrategyProvider sp = new AlignWithResizeStrategyProvider (collector, interactionLayer, decorator, outerBounds); return createResizeAction (sp, sp); } /** * Creates a connect action with a default decorator. - * @param interractionLayer the interraction layer where the temporary connection is visualization placed. + * @param interactionLayer the interaction layer where the temporary connection is visualization placed. * @param provider the connect logic provider * @return the connect action */ - public static WidgetAction createConnectAction (LayerWidget interractionLayer, ConnectProvider provider) { - return createConnectAction (null, interractionLayer, provider); + public static WidgetAction createConnectAction (LayerWidget interactionLayer, ConnectProvider provider) { + return createConnectAction (null, interactionLayer, provider); } /** * Creates a connect action with a specific decorator. * @param decorator the connect decorator; if null, then the default decorator is used - * @param interractionLayer the interraction layer where the temporary connection is visualization placed. + * @param interactionLayer the interaction layer where the temporary connection is visualization placed. * @param provider the connect logic provider * @return the connect action */ - public static WidgetAction createConnectAction (ConnectDecorator decorator, LayerWidget interractionLayer, ConnectProvider provider) { - assert interractionLayer != null && provider != null; - return new ConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interractionLayer, provider); + public static WidgetAction createConnectAction (ConnectDecorator decorator, LayerWidget interactionLayer, ConnectProvider provider) { + assert interactionLayer != null && provider != null; + return new ConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interactionLayer, provider); } /** * Creates an extended connect action with a default decorator. User can invoke the action only with pressed CTRL key. - * @param interractionLayer the interraction layer where the temporary connection is visualization placed. + * @param interactionLayer the interaction layer where the temporary connection is visualization placed. * @param provider the connect logic provider * @return the extended connect action */ - public static WidgetAction createExtendedConnectAction (LayerWidget interractionLayer, ConnectProvider provider) { - return createExtendedConnectAction (null, interractionLayer, provider); + public static WidgetAction createExtendedConnectAction (LayerWidget interactionLayer, ConnectProvider provider) { + return createExtendedConnectAction (null, interactionLayer, provider); } /** * Creates an extended connect action with a specific decorator. User can invoke the action only with pressed CTRL key. * @param decorator the connect decorator; if null, then the default decorator is used - * @param interractionLayer the interraction layer where the temporary connection is visualization placed. + * @param interactionLayer the interaction layer where the temporary connection is visualization placed. * @param provider the connect logic provider * @return the extended connect action */ - public static WidgetAction createExtendedConnectAction (ConnectDecorator decorator, LayerWidget interractionLayer, ConnectProvider provider) { - assert interractionLayer != null && provider != null; - return new ExtendedConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interractionLayer, provider, MouseEvent.CTRL_MASK); + public static WidgetAction createExtendedConnectAction (ConnectDecorator decorator, LayerWidget interactionLayer, ConnectProvider provider) { + assert interactionLayer != null && provider != null; + return new ExtendedConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interactionLayer, provider, MouseEvent.CTRL_MASK); } /** * Creates an extended connect action with a specific decorator which can be invoked only with specified modifiers (usually it is MouseEvent.CTRL_MASK). * @param decorator the connect decorator; if null, then the default decorator is used - * @param interractionLayer the interraction layer where the temporary connection is visualization placed. + * @param interactionLayer the interaction layer where the temporary connection is visualization placed. * @param provider the connect logic provider * @param modifiers the invocation modifiers * @return the extended connect action * @since 2.3 */ - public static WidgetAction createExtendedConnectAction (ConnectDecorator decorator, LayerWidget interractionLayer, ConnectProvider provider, int modifiers) { - assert interractionLayer != null && provider != null && modifiers != 0; - return new ExtendedConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interractionLayer, provider, modifiers); + public static WidgetAction createExtendedConnectAction (ConnectDecorator decorator, LayerWidget interactionLayer, ConnectProvider provider, int modifiers) { + assert interactionLayer != null && provider != null && modifiers != 0; + return new ExtendedConnectAction (decorator != null ? decorator : createDefaultConnectDecorator (), interactionLayer, provider, modifiers); } /** @@ -552,24 +552,24 @@ /** * Creates a rectangular select action for a specified object scene with a default decorator. * @param scene the object scene which the selection will be controlled by the action - * @param interractionLayer the interraction layer where the selection rectangle will be visualized + * @param interactionLayer the interaction layer where the selection rectangle will be visualized * @return the rectangular select action */ - public static WidgetAction createRectangularSelectAction (ObjectScene scene, LayerWidget interractionLayer) { + public static WidgetAction createRectangularSelectAction (ObjectScene scene, LayerWidget interactionLayer) { assert scene != null; - return createRectangularSelectAction (ActionFactory.createDefaultRectangularSelectDecorator (scene), interractionLayer, ActionFactory.createObjectSceneRectangularSelectProvider (scene)); + return createRectangularSelectAction (ActionFactory.createDefaultRectangularSelectDecorator (scene), interactionLayer, ActionFactory.createObjectSceneRectangularSelectProvider (scene)); } /** * Creates a rectangular select action with a specified decorator and logic provider. * @param decorator the rectangular select decorator - * @param interractionLayer the interraction layer where the selection rectangle will be visualized + * @param interactionLayer the interaction layer where the selection rectangle will be visualized * @param provider the rectangular select logic provider * @return the rectangular select action */ - public static WidgetAction createRectangularSelectAction (RectangularSelectDecorator decorator, LayerWidget interractionLayer, RectangularSelectProvider provider) { - assert decorator != null && interractionLayer != null && provider != null; - return new RectangularSelectAction (decorator, interractionLayer, provider); + public static WidgetAction createRectangularSelectAction (RectangularSelectDecorator decorator, LayerWidget interactionLayer, RectangularSelectProvider provider) { + assert decorator != null && interactionLayer != null && provider != null; + return new RectangularSelectAction (decorator, interactionLayer, provider); } /** diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/api/visual/widget/LayerWidget.java --- a/api.visual/src/org/netbeans/api/visual/widget/LayerWidget.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/api/visual/widget/LayerWidget.java Wed Jun 25 12:54:19 2008 +0200 @@ -51,7 +51,7 @@ * background for widgets on background, * main layer for node widgets, * connection layer for edge widgets, - * interraction layer for temporary widgets created/used by actions. + * interaction layer for temporary widgets created/used by actions. * * @author David Kaspar */ diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/AlignWithMoveStrategyProvider.java --- a/api.visual/src/org/netbeans/modules/visual/action/AlignWithMoveStrategyProvider.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/AlignWithMoveStrategyProvider.java Wed Jun 25 12:54:19 2008 +0200 @@ -53,8 +53,8 @@ private boolean outerBounds; - public AlignWithMoveStrategyProvider (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { - super (collector, interractionLayer, decorator); + public AlignWithMoveStrategyProvider (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + super (collector, interactionLayer, decorator); this.outerBounds = outerBounds; } diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/AlignWithResizeStrategyProvider.java --- a/api.visual/src/org/netbeans/modules/visual/action/AlignWithResizeStrategyProvider.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/AlignWithResizeStrategyProvider.java Wed Jun 25 12:54:19 2008 +0200 @@ -56,8 +56,8 @@ private boolean outerBounds; - public AlignWithResizeStrategyProvider (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { - super (collector, interractionLayer, decorator); + public AlignWithResizeStrategyProvider (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator, boolean outerBounds) { + super (collector, interactionLayer, decorator); this.outerBounds = outerBounds; } diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/AlignWithSupport.java --- a/api.visual/src/org/netbeans/modules/visual/action/AlignWithSupport.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/AlignWithSupport.java Wed Jun 25 12:54:19 2008 +0200 @@ -59,14 +59,14 @@ private static final int GRAVITY = 10; private AlignWithWidgetCollector collector; - private LayerWidget interractionLayer; + private LayerWidget interactionLayer; private AlignWithMoveDecorator decorator; private ConnectionWidget lineWidget1, lineWidget2; - public AlignWithSupport (AlignWithWidgetCollector collector, LayerWidget interractionLayer, AlignWithMoveDecorator decorator) { + public AlignWithSupport (AlignWithWidgetCollector collector, LayerWidget interactionLayer, AlignWithMoveDecorator decorator) { this.collector = collector; - this.interractionLayer = interractionLayer; + this.interactionLayer = interactionLayer; this.decorator = decorator; } @@ -135,7 +135,7 @@ } - if (interractionLayer != null) + if (interactionLayer != null) lineWidget1.setControlPoints (snap ? Arrays.asList ( new Point (x, Math.min (sceneWidgetBounds.y, y1)), new Point (x, Math.max (sceneWidgetBounds.y + sceneWidgetBounds.height, y2)) @@ -197,7 +197,7 @@ point.y -= widget.getBounds ().y; } - if (interractionLayer != null) + if (interactionLayer != null) lineWidget2.setControlPoints (snap ? Arrays.asList ( new Point (Math.min (sceneWidgetBounds.x, x1), y), new Point (Math.max (sceneWidgetBounds.x + sceneWidgetBounds.width, x2), y) @@ -208,22 +208,22 @@ } public void show () { - if (interractionLayer != null) { + if (interactionLayer != null) { if (lineWidget1 == null) - lineWidget1 = decorator.createLineWidget (interractionLayer.getScene ()); + lineWidget1 = decorator.createLineWidget (interactionLayer.getScene ()); if (lineWidget2 == null) - lineWidget2 = decorator.createLineWidget (interractionLayer.getScene ()); - interractionLayer.addChild (lineWidget1); - interractionLayer.addChild (lineWidget2); + lineWidget2 = decorator.createLineWidget (interactionLayer.getScene ()); + interactionLayer.addChild (lineWidget1); + interactionLayer.addChild (lineWidget2); lineWidget1.setControlPoints (Collections.emptySet (), true); lineWidget2.setControlPoints (Collections.emptySet (), true); } } public void hide () { - if (interractionLayer != null) { - interractionLayer.removeChild (lineWidget1); - interractionLayer.removeChild (lineWidget2); + if (interactionLayer != null) { + interactionLayer.removeChild (lineWidget1); + interactionLayer.removeChild (lineWidget2); } } diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/ConnectAction.java --- a/api.visual/src/org/netbeans/modules/visual/action/ConnectAction.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/ConnectAction.java Wed Jun 25 12:54:19 2008 +0200 @@ -63,7 +63,7 @@ private static final int MIN_DIFFERENCE = 5; private ConnectDecorator decorator; - private Widget interractionLayer; + private Widget interactionLayer; private ConnectProvider provider; private ConnectionWidget connectionWidget = null; @@ -71,9 +71,9 @@ private Widget targetWidget = null; private Point startingPoint = null; - public ConnectAction (ConnectDecorator decorator, Widget interractionLayer, ConnectProvider provider) { + public ConnectAction (ConnectDecorator decorator, Widget interactionLayer, ConnectProvider provider) { this.decorator = decorator; - this.interractionLayer = interractionLayer; + this.interactionLayer = interactionLayer; this.provider = provider; } @@ -93,10 +93,10 @@ sourceWidget = widget; targetWidget = null; startingPoint = new Point (event.getPoint ()); - connectionWidget = decorator.createConnectionWidget (interractionLayer.getScene ()); + connectionWidget = decorator.createConnectionWidget (interactionLayer.getScene ()); assert connectionWidget != null; connectionWidget.setSourceAnchor (decorator.createSourceAnchor (widget)); - interractionLayer.addChild (connectionWidget); + interactionLayer.addChild (connectionWidget); return State.createLocked (widget, this); } } @@ -121,7 +121,7 @@ startingPoint = null; connectionWidget.setSourceAnchor (null); connectionWidget.setTargetAnchor (null); - interractionLayer.removeChild (connectionWidget); + interactionLayer.removeChild (connectionWidget); connectionWidget = null; } @@ -134,7 +134,7 @@ return false; Point targetSceneLocation = widget.convertLocalToScene (point); - targetWidget = resolveTargetWidgetCore (interractionLayer.getScene (), targetSceneLocation); + targetWidget = resolveTargetWidgetCore (interactionLayer.getScene (), targetSceneLocation); Anchor targetAnchor = null; if (targetWidget != null) targetAnchor = decorator.createTargetAnchor (targetWidget); @@ -157,7 +157,7 @@ } private boolean resolveTargetWidgetCoreDive (Widget[] result, Widget widget, Point parentLocation) { - if (interractionLayer.equals (widget)) + if (interactionLayer.equals (widget)) return false; Point widgetLocation = widget.getLocation (); Point location = new Point (parentLocation.x - widgetLocation.x, parentLocation.y - widgetLocation.y); diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/ExtendedConnectAction.java --- a/api.visual/src/org/netbeans/modules/visual/action/ExtendedConnectAction.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/ExtendedConnectAction.java Wed Jun 25 12:54:19 2008 +0200 @@ -55,8 +55,8 @@ private long modifiers; private boolean macLocking; - public ExtendedConnectAction(ConnectDecorator decorator, Widget interractionLayer, ConnectProvider provider, long modifiers) { - super(decorator, interractionLayer, provider); + public ExtendedConnectAction(ConnectDecorator decorator, Widget interactionLayer, ConnectProvider provider, long modifiers) { + super(decorator, interactionLayer, provider); this.modifiers = modifiers; } diff -r 0b7c0c5357db -r 0eb545fa1275 api.visual/src/org/netbeans/modules/visual/action/RectangularSelectAction.java --- a/api.visual/src/org/netbeans/modules/visual/action/RectangularSelectAction.java Mon Jun 16 23:04:37 2008 +0200 +++ b/api.visual/src/org/netbeans/modules/visual/action/RectangularSelectAction.java Wed Jun 25 12:54:19 2008 +0200 @@ -55,15 +55,15 @@ public final class RectangularSelectAction extends WidgetAction.LockedAdapter { private RectangularSelectDecorator decorator; - private LayerWidget interractionLayer; + private LayerWidget interactionLayer; private RectangularSelectProvider provider; private Widget selectionWidget; private Rectangle selectionSceneRectangle; - public RectangularSelectAction (RectangularSelectDecorator decorator, LayerWidget interractionLayer, RectangularSelectProvider provider) { + public RectangularSelectAction (RectangularSelectDecorator decorator, LayerWidget interactionLayer, RectangularSelectProvider provider) { this.decorator = decorator; - this.interractionLayer = interractionLayer; + this.interactionLayer = interactionLayer; this.provider = provider; } @@ -77,7 +77,7 @@ if (event.getButton () == MouseEvent.BUTTON1 && event.getClickCount () == 1) { selectionWidget = decorator.createSelectionWidget (); assert selectionWidget != null; - interractionLayer.addChild (selectionWidget); + interactionLayer.addChild (selectionWidget); selectionSceneRectangle = new Rectangle (widget.convertLocalToScene (event.getPoint ())); move (widget, event.getPoint ()); return State.createLocked (widget, this);