Package org.evolizer.daforjava.commands.selection

Examples of org.evolizer.daforjava.commands.selection.AbstractSelectionStrategy


     */
    private void openFolder(Node folderNode) {
        fireGraphPreEvent();
        getEdgeGrouper().handleOpenFolder(folderNode);

        AbstractSelectionStrategy preProcessSelection = new SelectNodeAndInnerNodes(this, folderNode);
        preProcessSelection.initSelection();
        setPreLayoutSelectionStrategy(preProcessSelection);

        AbstractSelectionStrategy postProcessSelection = new SelectNode(this, folderNode);
        postProcessSelection.initSelection();
        setPostLayoutSelectionStrategy(postProcessSelection);

        fireGraphPostEvent();
    }
View Full Code Here


     */
    private void closeGroup(Node folderNode) {
        fireGraphPreEvent();
        getEdgeGrouper().handleCloseFolder(folderNode);

        AbstractSelectionStrategy preLayoutSelection = new SelectNodeAndItsEdges(this, folderNode);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        AbstractSelectionStrategy postLayoutSelection = new SelectNode(this, folderNode);
        postLayoutSelection.initSelection();
        setPostLayoutSelectionStrategy(postLayoutSelection);

        fireGraphPostEvent();
    }
View Full Code Here

     *
     * @see org.evolizer.daforjava.commands.AbstractGraphEditCommand#initExecutionSelectionStrategy()
     */
    @Override
    protected void initExecutionSelectionStrategy() {
        AbstractSelectionStrategy preLayoutSelection = new SelectEditedEntities(this);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        setPostLayoutSelectionStrategy(new NopSelectionStrategy(this));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initExecutionSelectionStrategy() {
        AbstractSelectionStrategy preLayoutSelection = new SelectEditedEntities(this);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        AbstractSelectionStrategy postLayoutSelectionStrategy = new SelectNode(this, fSelectedNode);
        postLayoutSelectionStrategy.initSelection();
        setPostLayoutSelectionStrategy(postLayoutSelectionStrategy);
    }
View Full Code Here

     */
    @Override
    protected void initExecutionSelectionStrategy() {
        expandToEntities();

        AbstractSelectionStrategy preLayoutSelection = new SelectFamixEntities(this, fEntities);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);


        setPostLayoutSelectionStrategy(new NopSelectionStrategy(this));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initExecutionSelectionStrategy() {
        AbstractSelectionStrategy preLayoutSelection = new SelectEditedEntities(this);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        AbstractSelectionStrategy postLayoutSelectionStrategy = new SelectNode(this, fSelectedNode);
        postLayoutSelectionStrategy.initSelection();
        setPostLayoutSelectionStrategy(postLayoutSelectionStrategy);
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initExecutionSelectionStrategy() {
        AbstractSelectionStrategy preLayoutSelection = new SelectEditedEntities(this);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        AbstractSelectionStrategy postLayoutSelectionStrategy = new SelectNode(this, fSelectedNode);
        postLayoutSelectionStrategy.initSelection();
        setPostLayoutSelectionStrategy(postLayoutSelectionStrategy);
    }
View Full Code Here

            fEventLevel--;
            if (isGraphChanged()) {
                sLogger.info("Graph will be re-layout");
                boolean doLayout = true;

                AbstractSelectionStrategy preLayout = null;
                AbstractSelectionStrategy postLayout = null;
                if (graphEvent.getData() != null
                        && graphEvent.getData() instanceof AbstractGraphEditCommand) {
                    AbstractGraphEditCommand command = (AbstractGraphEditCommand) graphEvent.getData();
                    preLayout = command.getPreLayoutSelectionStrategy();
                    postLayout = command.getPostLayoutSelectionStrategy();
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initExecutionSelectionStrategy() {
        AbstractSelectionStrategy preProcessSelection = new SelectNodesAffectedByRemove(this, fSelection);
        preProcessSelection.initSelection();
        setPreLayoutSelectionStrategy(preProcessSelection);

        setPostLayoutSelectionStrategy(new UnselectAllStrategy(this));
    }
View Full Code Here

    /**
     * {@inheritDoc}
     */
    @Override
    protected void initUndoSelectionStrategy() {
        AbstractSelectionStrategy preLayoutSelection = new SelectEditedEntities(this);
        preLayoutSelection.initSelection();
        setPreLayoutSelectionStrategy(preLayoutSelection);

        AbstractSelectionStrategy postLayoutSelection = new SelectNode(this, fSelectedNode);
        postLayoutSelection.initSelection();
        setPostLayoutSelectionStrategy(postLayoutSelection);
    }
View Full Code Here

TOP

Related Classes of org.evolizer.daforjava.commands.selection.AbstractSelectionStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.