org-netbeans-api-visual

16:39:28.863 INFO  jd.cli.Main - Decompiling org-netbeans-api-visual.jar
package org.netbeans.api.visual.action;

import java.awt.Point;
import java.awt.datatransfer.Transferable;
import org.netbeans.api.visual.widget.Widget;

public abstract interface AcceptProvider
{
  public abstract ConnectorState isAcceptable(Widget paramWidget, Point paramPoint, Transferable paramTransferable);
  
  public abstract void accept(Widget paramWidget, Point paramPoint, Transferable paramTransferable);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.AcceptProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$1
  implements MoveStrategy
{
  public Point locationSuggested(Widget paramWidget, Point paramPoint1, Point paramPoint2)
  {
    return paramPoint2;
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.1
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$2
  implements MoveProvider
{
  public void movementStarted(Widget paramWidget) {}
  
  public void movementFinished(Widget paramWidget) {}
  
  public Point getOriginalLocation(Widget paramWidget)
  {
    return paramWidget.getPreferredLocation();
  }
  
  public void setNewLocation(Widget paramWidget, Point paramPoint)
  {
    paramWidget.setPreferredLocation(paramPoint);
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.2
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Color;
import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.Scene;

final class ActionFactory$3
  implements AlignWithMoveDecorator
{
  public ConnectionWidget createLineWidget(Scene paramScene)
  {
    ConnectionWidget localConnectionWidget = new ConnectionWidget(paramScene);
    localConnectionWidget.setStroke(ActionFactory.access$000());
    localConnectionWidget.setForeground(Color.BLUE);
    return localConnectionWidget;
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.3
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.anchor.AnchorFactory;
import org.netbeans.api.visual.anchor.AnchorShape;
import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.Scene;
import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$4
  implements ConnectDecorator
{
  public ConnectionWidget createConnectionWidget(Scene paramScene)
  {
    ConnectionWidget localConnectionWidget = new ConnectionWidget(paramScene);
    localConnectionWidget.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
    return localConnectionWidget;
  }
  
  public Anchor createSourceAnchor(Widget paramWidget)
  {
    return AnchorFactory.createCenterAnchor(paramWidget);
  }
  
  public Anchor createTargetAnchor(Widget paramWidget)
  {
    return AnchorFactory.createCenterAnchor(paramWidget);
  }
  
  public Anchor createFloatAnchor(Point paramPoint)
  {
    return AnchorFactory.createFixedAnchor(paramPoint);
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.4
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.anchor.AnchorFactory;
import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$5
  implements ReconnectDecorator
{
  public Anchor createReplacementWidgetAnchor(Widget paramWidget)
  {
    return AnchorFactory.createCenterAnchor(paramWidget);
  }
  
  public Anchor createFloatAnchor(Point paramPoint)
  {
    return AnchorFactory.createFixedAnchor(paramPoint);
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.5
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$6
  implements ResizeProvider
{
  public void resizingStarted(Widget paramWidget) {}
  
  public void resizingFinished(Widget paramWidget) {}
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.6
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Rectangle;
import org.netbeans.api.visual.widget.Widget;

final class ActionFactory$7
  implements ResizeStrategy
{
  public Rectangle boundsSuggested(Widget paramWidget, Rectangle paramRectangle1, Rectangle paramRectangle2, ResizeProvider.ControlPoint paramControlPoint)
  {
    return paramRectangle2;
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory.7
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.EnumSet;
import javax.swing.ActionMap;
import javax.swing.InputMap;
import javax.swing.JComponent;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.anchor.AnchorFactory;
import org.netbeans.api.visual.anchor.AnchorShape;
import org.netbeans.api.visual.model.ObjectScene;
import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.ConnectionWidget.RoutingPolicy;
import org.netbeans.api.visual.widget.LayerWidget;
import org.netbeans.api.visual.widget.Scene;
import org.netbeans.api.visual.widget.Widget;
import org.netbeans.modules.visual.action.AcceptAction;
import org.netbeans.modules.visual.action.ActionMapAction;
import org.netbeans.modules.visual.action.AddRemoveControlPointAction;
import org.netbeans.modules.visual.action.AlignWithMoveStrategyProvider;
import org.netbeans.modules.visual.action.AlignWithResizeStrategyProvider;
import org.netbeans.modules.visual.action.CenteredZoomAction;
import org.netbeans.modules.visual.action.ConnectAction;
import org.netbeans.modules.visual.action.ContiguousSelectAction;
import org.netbeans.modules.visual.action.CycleFocusAction;
import org.netbeans.modules.visual.action.CycleObjectSceneFocusProvider;
import org.netbeans.modules.visual.action.DefaultRectangularSelectDecorator;
import org.netbeans.modules.visual.action.EditAction;
import org.netbeans.modules.visual.action.ExtendedConnectAction;
import org.netbeans.modules.visual.action.ForwardKeyEventsAction;
import org.netbeans.modules.visual.action.FreeMoveControlPointProvider;
import org.netbeans.modules.visual.action.InplaceEditorAction;
import org.netbeans.modules.visual.action.MouseCenteredZoomAction;
import org.netbeans.modules.visual.action.MouseHoverAction;
import org.netbeans.modules.visual.action.MoveAction;
import org.netbeans.modules.visual.action.MoveControlPointAction;
import org.netbeans.modules.visual.action.ObjectSceneRectangularSelectProvider;
import org.netbeans.modules.visual.action.OrthogonalMoveControlPointProvider;
import org.netbeans.modules.visual.action.PanAction;
import org.netbeans.modules.visual.action.PopupMenuAction;
import org.netbeans.modules.visual.action.ReconnectAction;
import org.netbeans.modules.visual.action.RectangularSelectAction;
import org.netbeans.modules.visual.action.ResizeAction;
import org.netbeans.modules.visual.action.ResizeCornersControlPointResolver;
import org.netbeans.modules.visual.action.SelectAction;
import org.netbeans.modules.visual.action.SingleLayerAlignWithWidgetCollector;
import org.netbeans.modules.visual.action.SnapToGridMoveStrategy;
import org.netbeans.modules.visual.action.SwitchCardProvider;
import org.netbeans.modules.visual.action.TextFieldInplaceEditorProvider;
import org.netbeans.modules.visual.action.TwoStatedMouseHoverAction;
import org.netbeans.modules.visual.action.WheelPanAction;
import org.netbeans.modules.visual.action.ZoomAction;

public final class ActionFactory
{
  private static final BasicStroke STROKE = new BasicStroke(1.0F, 2, 0, 5.0F, new float[] { 6.0F, 3.0F }, 0.0F);
  private static final MoveStrategy MOVE_STRATEGY_FREE = new MoveStrategy()
  {
    public Point locationSuggested(Widget paramAnonymousWidget, Point paramAnonymousPoint1, Point paramAnonymousPoint2)
    {
      return paramAnonymousPoint2;
    }
  };
  private static final MoveProvider MOVE_PROVIDER_DEFAULT = new MoveProvider()
  {
    public void movementStarted(Widget paramAnonymousWidget) {}
    
    public void movementFinished(Widget paramAnonymousWidget) {}
    
    public Point getOriginalLocation(Widget paramAnonymousWidget)
    {
      return paramAnonymousWidget.getPreferredLocation();
    }
    
    public void setNewLocation(Widget paramAnonymousWidget, Point paramAnonymousPoint)
    {
      paramAnonymousWidget.setPreferredLocation(paramAnonymousPoint);
    }
  };
  private static final AlignWithMoveDecorator ALIGN_WITH_MOVE_DECORATOR_DEFAULT = new AlignWithMoveDecorator()
  {
    public ConnectionWidget createLineWidget(Scene paramAnonymousScene)
    {
      ConnectionWidget localConnectionWidget = new ConnectionWidget(paramAnonymousScene);
      localConnectionWidget.setStroke(ActionFactory.STROKE);
      localConnectionWidget.setForeground(Color.BLUE);
      return localConnectionWidget;
    }
  };
  private static final MoveControlPointProvider MOVE_CONTROL_POINT_PROVIDER_FREE = new FreeMoveControlPointProvider();
  private static final MoveControlPointProvider MOVE_CONTROL_POINT_PROVIDER_ORTHOGONAL = new OrthogonalMoveControlPointProvider();
  private static final ConnectDecorator CONNECT_DECORATOR_DEFAULT = new ConnectDecorator()
  {
    public ConnectionWidget createConnectionWidget(Scene paramAnonymousScene)
    {
      ConnectionWidget localConnectionWidget = new ConnectionWidget(paramAnonymousScene);
      localConnectionWidget.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
      return localConnectionWidget;
    }
    
    public Anchor createSourceAnchor(Widget paramAnonymousWidget)
    {
      return AnchorFactory.createCenterAnchor(paramAnonymousWidget);
    }
    
    public Anchor createTargetAnchor(Widget paramAnonymousWidget)
    {
      return AnchorFactory.createCenterAnchor(paramAnonymousWidget);
    }
    
    public Anchor createFloatAnchor(Point paramAnonymousPoint)
    {
      return AnchorFactory.createFixedAnchor(paramAnonymousPoint);
    }
  };
  private static final ReconnectDecorator RECONNECT_DECORATOR_DEFAULT = new ReconnectDecorator()
  {
    public Anchor createReplacementWidgetAnchor(Widget paramAnonymousWidget)
    {
      return AnchorFactory.createCenterAnchor(paramAnonymousWidget);
    }
    
    public Anchor createFloatAnchor(Point paramAnonymousPoint)
    {
      return AnchorFactory.createFixedAnchor(paramAnonymousPoint);
    }
  };
  private static final ResizeProvider RESIZE_PROVIDER_DEFAULT = new ResizeProvider()
  {
    public void resizingStarted(Widget paramAnonymousWidget) {}
    
    public void resizingFinished(Widget paramAnonymousWidget) {}
  };
  private static final ResizeStrategy RESIZE_STRATEGY_FREE = new ResizeStrategy()
  {
    public Rectangle boundsSuggested(Widget paramAnonymousWidget, Rectangle paramAnonymousRectangle1, Rectangle paramAnonymousRectangle2, ResizeProvider.ControlPoint paramAnonymousControlPoint)
    {
      return paramAnonymousRectangle2;
    }
  };
  private static final ResizeControlPointResolver RESIZE_CONTROL_POINT_RESOLVER_DEFAULT = new ResizeCornersControlPointResolver();
  private static final ActionMapAction ACTION_MAP_ACTION = new ActionMapAction(null, null);
  private static final WidgetAction MOVE_CONTROL_POINT_ACTION_FREE = createMoveControlPointAction(createFreeMoveControlPointProvider());
  private static final WidgetAction MOVE_CONTROL_POINT_ACTION_ORTHOGONAL = createMoveControlPointAction(createOrthogonalMoveControlPointProvider());
  private static final WidgetAction MOVE_ACTION = createMoveAction(null, null);
  private static final WidgetAction RESIZE_ACTION = createResizeAction(null, null);
  private static final WidgetAction CYCLE_FOCUS_OBJECT_SCENE = createCycleFocusAction(new CycleObjectSceneFocusProvider());
  private static final PanAction PAN_ACTION = new PanAction();
  private static final WheelPanAction WHEEL_PAN_ACTION = new WheelPanAction();
  
  public static WidgetAction createAcceptAction(AcceptProvider paramAcceptProvider)
  {
    assert (paramAcceptProvider != null);
    return new AcceptAction(paramAcceptProvider);
  }
  
  public static WidgetAction createActionMapAction()
  {
    return ACTION_MAP_ACTION;
  }
  
  public static WidgetAction createActionMapAction(InputMap paramInputMap, ActionMap paramActionMap)
  {
    assert ((paramInputMap != null) && (paramActionMap != null));
    return new ActionMapAction(paramInputMap, paramActionMap);
  }
  
  public static WidgetAction createAddRemoveControlPointAction()
  {
    return createAddRemoveControlPointAction(3.0D, 5.0D);
  }
  
  public static WidgetAction createAddRemoveControlPointAction(double paramDouble1, double paramDouble2)
  {
    return createAddRemoveControlPointAction(paramDouble1, paramDouble2, null);
  }
  
  public static WidgetAction createAddRemoveControlPointAction(double paramDouble1, double paramDouble2, ConnectionWidget.RoutingPolicy paramRoutingPolicy)
  {
    return new AddRemoveControlPointAction(paramDouble1, paramDouble2, paramRoutingPolicy);
  }
  
  public static WidgetAction createAlignWithMoveAction(LayerWidget paramLayerWidget1, LayerWidget paramLayerWidget2, AlignWithMoveDecorator paramAlignWithMoveDecorator)
  {
    return createAlignWithMoveAction(paramLayerWidget1, paramLayerWidget2, paramAlignWithMoveDecorator, true);
  }
  
  public static WidgetAction createAlignWithMoveAction(LayerWidget paramLayerWidget1, LayerWidget paramLayerWidget2, AlignWithMoveDecorator paramAlignWithMoveDecorator, boolean paramBoolean)
  {
    assert (paramLayerWidget1 != null);
    return createAlignWithMoveAction(new SingleLayerAlignWithWidgetCollector(paramLayerWidget1, paramBoolean), paramLayerWidget2, paramAlignWithMoveDecorator != null ? paramAlignWithMoveDecorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, paramBoolean);
  }
  
  public static WidgetAction createAlignWithMoveAction(AlignWithWidgetCollector paramAlignWithWidgetCollector, LayerWidget paramLayerWidget, AlignWithMoveDecorator paramAlignWithMoveDecorator)
  {
    return createAlignWithMoveAction(paramAlignWithWidgetCollector, paramLayerWidget, paramAlignWithMoveDecorator, true);
  }
  
  public static WidgetAction createAlignWithMoveAction(AlignWithWidgetCollector paramAlignWithWidgetCollector, LayerWidget paramLayerWidget, AlignWithMoveDecorator paramAlignWithMoveDecorator, boolean paramBoolean)
  {
    assert ((paramAlignWithWidgetCollector != null) && (paramLayerWidget != null) && (paramAlignWithMoveDecorator != null));
    AlignWithMoveStrategyProvider localAlignWithMoveStrategyProvider = new AlignWithMoveStrategyProvider(paramAlignWithWidgetCollector, paramLayerWidget, paramAlignWithMoveDecorator, paramBoolean);
    return createMoveAction(localAlignWithMoveStrategyProvider, localAlignWithMoveStrategyProvider);
  }
  
  public static WidgetAction createAlignWithResizeAction(LayerWidget paramLayerWidget1, LayerWidget paramLayerWidget2, AlignWithMoveDecorator paramAlignWithMoveDecorator)
  {
    return createAlignWithResizeAction(paramLayerWidget1, paramLayerWidget2, paramAlignWithMoveDecorator, true);
  }
  
  public static WidgetAction createAlignWithResizeAction(LayerWidget paramLayerWidget1, LayerWidget paramLayerWidget2, AlignWithMoveDecorator paramAlignWithMoveDecorator, boolean paramBoolean)
  {
    assert (paramLayerWidget1 != null);
    return createAlignWithResizeAction(new SingleLayerAlignWithWidgetCollector(paramLayerWidget1, paramBoolean), paramLayerWidget2, paramAlignWithMoveDecorator != null ? paramAlignWithMoveDecorator : ALIGN_WITH_MOVE_DECORATOR_DEFAULT, paramBoolean);
  }
  
  public static WidgetAction createAlignWithResizeAction(AlignWithWidgetCollector paramAlignWithWidgetCollector, LayerWidget paramLayerWidget, AlignWithMoveDecorator paramAlignWithMoveDecorator)
  {
    return createAlignWithResizeAction(paramAlignWithWidgetCollector, paramLayerWidget, paramAlignWithMoveDecorator, true);
  }
  
  public static WidgetAction createAlignWithResizeAction(AlignWithWidgetCollector paramAlignWithWidgetCollector, LayerWidget paramLayerWidget, AlignWithMoveDecorator paramAlignWithMoveDecorator, boolean paramBoolean)
  {
    assert ((paramAlignWithWidgetCollector != null) && (paramLayerWidget != null) && (paramAlignWithMoveDecorator != null));
    AlignWithResizeStrategyProvider localAlignWithResizeStrategyProvider = new AlignWithResizeStrategyProvider(paramAlignWithWidgetCollector, paramLayerWidget, paramAlignWithMoveDecorator, paramBoolean);
    return createResizeAction(localAlignWithResizeStrategyProvider, localAlignWithResizeStrategyProvider);
  }
  
  public static WidgetAction createConnectAction(LayerWidget paramLayerWidget, ConnectProvider paramConnectProvider)
  {
    return createConnectAction(null, paramLayerWidget, paramConnectProvider);
  }
  
  public static WidgetAction createConnectAction(ConnectDecorator paramConnectDecorator, LayerWidget paramLayerWidget, ConnectProvider paramConnectProvider)
  {
    assert ((paramLayerWidget != null) && (paramConnectProvider != null));
    return new ConnectAction(paramConnectDecorator != null ? paramConnectDecorator : createDefaultConnectDecorator(), paramLayerWidget, paramConnectProvider);
  }
  
  public static WidgetAction createExtendedConnectAction(LayerWidget paramLayerWidget, ConnectProvider paramConnectProvider)
  {
    return createExtendedConnectAction(null, paramLayerWidget, paramConnectProvider);
  }
  
  public static WidgetAction createExtendedConnectAction(ConnectDecorator paramConnectDecorator, LayerWidget paramLayerWidget, ConnectProvider paramConnectProvider)
  {
    assert ((paramLayerWidget != null) && (paramConnectProvider != null));
    return new ExtendedConnectAction(paramConnectDecorator != null ? paramConnectDecorator : createDefaultConnectDecorator(), paramLayerWidget, paramConnectProvider, 2L);
  }
  
  public static WidgetAction createExtendedConnectAction(ConnectDecorator paramConnectDecorator, LayerWidget paramLayerWidget, ConnectProvider paramConnectProvider, int paramInt)
  {
    assert ((paramLayerWidget != null) && (paramConnectProvider != null) && (paramInt != 0));
    return new ExtendedConnectAction(paramConnectDecorator != null ? paramConnectDecorator : createDefaultConnectDecorator(), paramLayerWidget, paramConnectProvider, paramInt);
  }
  
  public static WidgetAction createEditAction(EditProvider paramEditProvider)
  {
    assert (paramEditProvider != null);
    return new EditAction(paramEditProvider);
  }
  
  public static WidgetAction createHoverAction(HoverProvider paramHoverProvider)
  {
    assert (paramHoverProvider != null);
    return new MouseHoverAction(paramHoverProvider);
  }
  
  public static WidgetAction createHoverAction(TwoStateHoverProvider paramTwoStateHoverProvider)
  {
    assert (paramTwoStateHoverProvider != null);
    return new TwoStatedMouseHoverAction(paramTwoStateHoverProvider);
  }
  
  public static WidgetAction createInplaceEditorAction(TextFieldInplaceEditor paramTextFieldInplaceEditor)
  {
    return createInplaceEditorAction(paramTextFieldInplaceEditor, null);
  }
  
  public static WidgetAction createInplaceEditorAction(TextFieldInplaceEditor paramTextFieldInplaceEditor, EnumSet<InplaceEditorProvider.ExpansionDirection> paramEnumSet)
  {
    return createInplaceEditorAction(new TextFieldInplaceEditorProvider(paramTextFieldInplaceEditor, paramEnumSet));
  }
  
  public static <C extends JComponent> WidgetAction createInplaceEditorAction(InplaceEditorProvider<C> paramInplaceEditorProvider)
  {
    return new InplaceEditorAction(paramInplaceEditorProvider);
  }
  
  public static WidgetAction createMoveAction()
  {
    return MOVE_ACTION;
  }
  
  public static WidgetAction createMoveAction(MoveStrategy paramMoveStrategy, MoveProvider paramMoveProvider)
  {
    return new MoveAction(paramMoveStrategy != null ? paramMoveStrategy : createFreeMoveStrategy(), paramMoveProvider != null ? paramMoveProvider : createDefaultMoveProvider());
  }
  
  public static WidgetAction createFreeMoveControlPointAction()
  {
    return MOVE_CONTROL_POINT_ACTION_FREE;
  }
  
  public static WidgetAction createOrthogonalMoveControlPointAction()
  {
    return MOVE_CONTROL_POINT_ACTION_ORTHOGONAL;
  }
  
  public static WidgetAction createMoveControlPointAction(MoveControlPointProvider paramMoveControlPointProvider)
  {
    return createMoveControlPointAction(paramMoveControlPointProvider, null);
  }
  
  public static WidgetAction createMoveControlPointAction(MoveControlPointProvider paramMoveControlPointProvider, ConnectionWidget.RoutingPolicy paramRoutingPolicy)
  {
    assert (paramMoveControlPointProvider != null);
    return new MoveControlPointAction(paramMoveControlPointProvider, paramRoutingPolicy);
  }
  
  public static WidgetAction createPanAction()
  {
    return PAN_ACTION;
  }
  
  public static WidgetAction createWheelPanAction()
  {
    return WHEEL_PAN_ACTION;
  }
  
  public static WidgetAction createPopupMenuAction(PopupMenuProvider paramPopupMenuProvider)
  {
    assert (paramPopupMenuProvider != null);
    return new PopupMenuAction(paramPopupMenuProvider);
  }
  
  public static WidgetAction createReconnectAction(ReconnectProvider paramReconnectProvider)
  {
    return createReconnectAction(null, paramReconnectProvider);
  }
  
  public static WidgetAction createReconnectAction(ReconnectDecorator paramReconnectDecorator, ReconnectProvider paramReconnectProvider)
  {
    return new ReconnectAction(paramReconnectDecorator != null ? paramReconnectDecorator : createDefaultReconnectDecorator(), paramReconnectProvider);
  }
  
  public static WidgetAction createRectangularSelectAction(ObjectScene paramObjectScene, LayerWidget paramLayerWidget)
  {
    assert (paramObjectScene != null);
    return createRectangularSelectAction(createDefaultRectangularSelectDecorator(paramObjectScene), paramLayerWidget, createObjectSceneRectangularSelectProvider(paramObjectScene));
  }
  
  public static WidgetAction createRectangularSelectAction(RectangularSelectDecorator paramRectangularSelectDecorator, LayerWidget paramLayerWidget, RectangularSelectProvider paramRectangularSelectProvider)
  {
    assert ((paramRectangularSelectDecorator != null) && (paramLayerWidget != null) && (paramRectangularSelectProvider != null));
    return new RectangularSelectAction(paramRectangularSelectDecorator, paramLayerWidget, paramRectangularSelectProvider);
  }
  
  public static WidgetAction createResizeAction()
  {
    return RESIZE_ACTION;
  }
  
  public static WidgetAction createResizeAction(ResizeStrategy paramResizeStrategy, ResizeProvider paramResizeProvider)
  {
    return createResizeAction(paramResizeStrategy, null, paramResizeProvider);
  }
  
  public static WidgetAction createResizeAction(ResizeStrategy paramResizeStrategy, ResizeControlPointResolver paramResizeControlPointResolver, ResizeProvider paramResizeProvider)
  {
    return new ResizeAction(paramResizeStrategy != null ? paramResizeStrategy : createFreeResizeStategy(), paramResizeControlPointResolver != null ? paramResizeControlPointResolver : createDefaultResizeControlPointResolver(), paramResizeProvider != null ? paramResizeProvider : createDefaultResizeProvider());
  }
  
  public static WidgetAction createSelectAction(SelectProvider paramSelectProvider, boolean paramBoolean)
  {
    assert (paramSelectProvider != null);
    return new SelectAction(paramSelectProvider, paramBoolean);
  }
  
  public static WidgetAction createSelectAction(SelectProvider paramSelectProvider)
  {
    assert (paramSelectProvider != null);
    return new SelectAction(paramSelectProvider);
  }
  
  public static WidgetAction createContiguousSelectAction(ContiguousSelectProvider paramContiguousSelectProvider)
  {
    assert (paramContiguousSelectProvider != null);
    return new ContiguousSelectAction(paramContiguousSelectProvider);
  }
  
  public static WidgetAction createSwitchCardAction(Widget paramWidget)
  {
    assert (paramWidget != null);
    return new SelectAction(new SwitchCardProvider(paramWidget));
  }
  
  public static WidgetAction createZoomAction()
  {
    return createZoomAction(1.2D, true);
  }
  
  public static WidgetAction createZoomAction(double paramDouble, boolean paramBoolean)
  {
    return new ZoomAction(paramDouble, paramBoolean);
  }
  
  public static MoveStrategy createFreeMoveStrategy()
  {
    return MOVE_STRATEGY_FREE;
  }
  
  public static MoveStrategy createSnapToGridMoveStrategy(int paramInt1, int paramInt2)
  {
    assert ((paramInt1 > 0) && (paramInt2 > 0));
    return new SnapToGridMoveStrategy(paramInt1, paramInt2);
  }
  
  public static MoveProvider createDefaultMoveProvider()
  {
    return MOVE_PROVIDER_DEFAULT;
  }
  
  public static AlignWithMoveDecorator createDefaultAlignWithMoveDecorator()
  {
    return ALIGN_WITH_MOVE_DECORATOR_DEFAULT;
  }
  
  public static MoveControlPointProvider createFreeMoveControlPointProvider()
  {
    return MOVE_CONTROL_POINT_PROVIDER_FREE;
  }
  
  public static MoveControlPointProvider createOrthogonalMoveControlPointProvider()
  {
    return MOVE_CONTROL_POINT_PROVIDER_ORTHOGONAL;
  }
  
  public static RectangularSelectDecorator createDefaultRectangularSelectDecorator(Scene paramScene)
  {
    assert (paramScene != null);
    return new DefaultRectangularSelectDecorator(paramScene);
  }
  
  public static RectangularSelectProvider createObjectSceneRectangularSelectProvider(ObjectScene paramObjectScene)
  {
    assert (paramObjectScene != null);
    return new ObjectSceneRectangularSelectProvider(paramObjectScene);
  }
  
  public static ConnectDecorator createDefaultConnectDecorator()
  {
    return CONNECT_DECORATOR_DEFAULT;
  }
  
  public static ReconnectDecorator createDefaultReconnectDecorator()
  {
    return RECONNECT_DECORATOR_DEFAULT;
  }
  
  public static ResizeStrategy createFreeResizeStategy()
  {
    return RESIZE_STRATEGY_FREE;
  }
  
  public static ResizeProvider createDefaultResizeProvider()
  {
    return RESIZE_PROVIDER_DEFAULT;
  }
  
  public static ResizeControlPointResolver createDefaultResizeControlPointResolver()
  {
    return RESIZE_CONTROL_POINT_RESOLVER_DEFAULT;
  }
  
  public static WidgetAction createCycleObjectSceneFocusAction()
  {
    return CYCLE_FOCUS_OBJECT_SCENE;
  }
  
  public static WidgetAction createCycleFocusAction(CycleFocusProvider paramCycleFocusProvider)
  {
    assert (paramCycleFocusProvider != null);
    return new CycleFocusAction(paramCycleFocusProvider);
  }
  
  public static WidgetAction createForwardKeyEventsAction(Widget paramWidget, String paramString)
  {
    assert (paramWidget != null);
    return new ForwardKeyEventsAction(paramWidget, paramString);
  }
  
  public static InplaceEditorProvider.EditorController getInplaceEditorController(WidgetAction paramWidgetAction)
  {
    return (InplaceEditorProvider.EditorController)paramWidgetAction;
  }
  
  public static WidgetAction createCenteredZoomAction(double paramDouble)
  {
    return new CenteredZoomAction(paramDouble);
  }
  
  public static WidgetAction createMouseCenteredZoomAction(double paramDouble)
  {
    return new MouseCenteredZoomAction(paramDouble);
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ActionFactory
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.Scene;

public abstract interface AlignWithMoveDecorator
{
  public abstract ConnectionWidget createLineWidget(Scene paramScene);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.AlignWithMoveDecorator
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Rectangle;
import java.util.Collection;
import org.netbeans.api.visual.widget.Widget;

public abstract interface AlignWithWidgetCollector
{
  public abstract Collection<Rectangle> getRegions(Widget paramWidget);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.AlignWithWidgetCollector
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.anchor.Anchor;
import org.netbeans.api.visual.widget.ConnectionWidget;
import org.netbeans.api.visual.widget.Scene;
import org.netbeans.api.visual.widget.Widget;

public abstract interface ConnectDecorator
{
  public abstract ConnectionWidget createConnectionWidget(Scene paramScene);
  
  public abstract Anchor createSourceAnchor(Widget paramWidget);
  
  public abstract Anchor createTargetAnchor(Widget paramWidget);
  
  public abstract Anchor createFloatAnchor(Point paramPoint);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ConnectDecorator
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Scene;
import org.netbeans.api.visual.widget.Widget;

public abstract interface ConnectProvider
{
  public abstract boolean isSourceWidget(Widget paramWidget);
  
  public abstract ConnectorState isTargetWidget(Widget paramWidget1, Widget paramWidget2);
  
  public abstract boolean hasCustomTargetWidgetResolver(Scene paramScene);
  
  public abstract Widget resolveTargetWidget(Scene paramScene, Point paramPoint);
  
  public abstract void createConnection(Widget paramWidget1, Widget paramWidget2);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ConnectProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public enum ConnectorState
{
  ACCEPT,  REJECT,  REJECT_AND_STOP;
  
  private ConnectorState() {}
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ConnectorState
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public enum ContiguousSelectEvent$SelectionType
{
  REPLACE_NON_CONTIGUOUS,  REPLACE_CONTIGUOUS,  ADDITIVE_NON_CONTIGUOUS,  ADDITIVE_CONTIGUOUS;
  
  private ContiguousSelectEvent$SelectionType() {}
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ContiguousSelectEvent.SelectionType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;

public final class ContiguousSelectEvent
{
  private final Widget previouslyChoosenWidget;
  private final Point previouslyChoosenLocalLocation;
  private final Widget choosenWidget;
  private final Point choosenLocalLocation;
  private final SelectionType selectionType;
  
  private ContiguousSelectEvent(Widget paramWidget1, Point paramPoint1, Widget paramWidget2, Point paramPoint2, SelectionType paramSelectionType)
  {
    previouslyChoosenWidget = paramWidget1;
    previouslyChoosenLocalLocation = paramPoint1;
    choosenWidget = paramWidget2;
    choosenLocalLocation = paramPoint2;
    selectionType = paramSelectionType;
  }
  
  public Widget getPreviouslyChoosenWidget()
  {
    return previouslyChoosenWidget;
  }
  
  public Point getPreviouslyChoosenLocalLocation()
  {
    return previouslyChoosenLocalLocation != null ? new Point(previouslyChoosenLocalLocation) : null;
  }
  
  public Widget getChoosenWidget()
  {
    return choosenWidget;
  }
  
  public Point getChoosenLocalLocation()
  {
    return choosenLocalLocation != null ? new Point(choosenLocalLocation) : null;
  }
  
  public SelectionType getSelectionType()
  {
    return selectionType;
  }
  
  public static ContiguousSelectEvent create(Widget paramWidget1, Point paramPoint1, Widget paramWidget2, Point paramPoint2, SelectionType paramSelectionType)
  {
    assert (paramSelectionType != null);
    return new ContiguousSelectEvent(paramWidget1, paramPoint1, paramWidget2, paramPoint2, paramSelectionType);
  }
  
  public static enum SelectionType
  {
    REPLACE_NON_CONTIGUOUS,  REPLACE_CONTIGUOUS,  ADDITIVE_NON_CONTIGUOUS,  ADDITIVE_CONTIGUOUS;
    
    private SelectionType() {}
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ContiguousSelectEvent
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public abstract interface ContiguousSelectProvider
{
  public abstract boolean isSelectionAllowed(ContiguousSelectEvent paramContiguousSelectEvent);
  
  public abstract void select(ContiguousSelectEvent paramContiguousSelectEvent);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.ContiguousSelectProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.Widget;

public abstract interface CycleFocusProvider
{
  public abstract boolean switchPreviousFocus(Widget paramWidget);
  
  public abstract boolean switchNextFocus(Widget paramWidget);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.CycleFocusProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.Widget;

public abstract interface EditProvider
{
  public abstract void edit(Widget paramWidget);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.EditProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.Widget;

public abstract interface HoverProvider
{
  public abstract void widgetHovered(Widget paramWidget);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.HoverProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import org.netbeans.api.visual.widget.Widget;

public abstract interface InplaceEditorProvider$EditorController
{
  public abstract boolean isEditorVisible();
  
  public abstract boolean openEditor(Widget paramWidget);
  
  public abstract void closeEditor(boolean paramBoolean);
  
  public abstract void notifyEditorComponentBoundsChanged();
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.InplaceEditorProvider.EditorController
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public enum InplaceEditorProvider$EditorInvocationType
{
  MOUSE,  KEY,  CODE;
  
  private InplaceEditorProvider$EditorInvocationType() {}
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.InplaceEditorProvider.EditorInvocationType
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public enum InplaceEditorProvider$ExpansionDirection
{
  LEFT,  RIGHT,  TOP,  BOTTOM;
  
  private InplaceEditorProvider$ExpansionDirection() {}
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.InplaceEditorProvider.ExpansionDirection
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

public abstract interface InplaceEditorProvider$TypedEditorController
  extends InplaceEditorProvider.EditorController
{
  public abstract InplaceEditorProvider.EditorInvocationType getEditorInvocationType();
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.InplaceEditorProvider.TypedEditorController
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Rectangle;
import java.util.EnumSet;
import javax.swing.JComponent;
import org.netbeans.api.visual.widget.Widget;

public abstract interface InplaceEditorProvider<C extends JComponent>
{
  public abstract void notifyOpened(EditorController paramEditorController, Widget paramWidget, C paramC);
  
  public abstract void notifyClosing(EditorController paramEditorController, Widget paramWidget, C paramC, boolean paramBoolean);
  
  public abstract C createEditorComponent(EditorController paramEditorController, Widget paramWidget);
  
  public abstract Rectangle getInitialEditorComponentBounds(EditorController paramEditorController, Widget paramWidget, C paramC, Rectangle paramRectangle);
  
  public abstract EnumSet<ExpansionDirection> getExpansionDirections(EditorController paramEditorController, Widget paramWidget, C paramC);
  
  public static enum ExpansionDirection
  {
    LEFT,  RIGHT,  TOP,  BOTTOM;
    
    private ExpansionDirection() {}
  }
  
  public static abstract interface EditorController
  {
    public abstract boolean isEditorVisible();
    
    public abstract boolean openEditor(Widget paramWidget);
    
    public abstract void closeEditor(boolean paramBoolean);
    
    public abstract void notifyEditorComponentBoundsChanged();
  }
  
  public static abstract interface TypedEditorController
    extends InplaceEditorProvider.EditorController
  {
    public abstract InplaceEditorProvider.EditorInvocationType getEditorInvocationType();
  }
  
  public static enum EditorInvocationType
  {
    MOUSE,  KEY,  CODE;
    
    private EditorInvocationType() {}
  }
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.InplaceEditorProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import java.util.List;
import org.netbeans.api.visual.widget.ConnectionWidget;

public abstract interface MoveControlPointProvider
{
  public abstract List<Point> locationSuggested(ConnectionWidget paramConnectionWidget, int paramInt, Point paramPoint);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.MoveControlPointProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;

public abstract interface MoveProvider
{
  public abstract void movementStarted(Widget paramWidget);
  
  public abstract void movementFinished(Widget paramWidget);
  
  public abstract Point getOriginalLocation(Widget paramWidget);
  
  public abstract void setNewLocation(Widget paramWidget, Point paramPoint);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.MoveProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import org.netbeans.api.visual.widget.Widget;

public abstract interface MoveStrategy
{
  public abstract Point locationSuggested(Widget paramWidget, Point paramPoint1, Point paramPoint2);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.MoveStrategy
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
package org.netbeans.api.visual.action;

import java.awt.Point;
import javax.swing.JPopupMenu;
import org.netbeans.api.visual.widget.Widget;

public abstract interface PopupMenuProvider
{
  public abstract JPopupMenu getPopupMenu(Widget paramWidget, Point paramPoint);
}

/* Location:
 * Qualified Name:     org.netbeans.api.visual.action.PopupMenuProvider
 * Java Class Version: 6 (50.0)
 * JD-Core Version:    0.7.1
 */
packa
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd