Package oxygenoffice.extensions.smart.diagram.processes

Examples of oxygenoffice.extensions.smart.diagram.processes.ProcessDiagramItem


                        getController().setSelectedShape(item.getMainShape());
                        setNextColorOnControlDialog();
                    }
                }
                if(getController().getGroupType() == Controller.PROCESSGROUP){
                    ProcessDiagramItem item = ((ProcessDiagram)getController().getDiagram()).getFirstItem();
                    if(item != null){
                        if(getController().getDiagramType() == Controller.UPWARDARROWPROCESS)
                            getController().setSelectedShape(item.getSecondShape());
                        else
                            getController().setSelectedShape(item.getMainShape());
                        setNextColorOnControlDialog();
                    }
                }
                getController().addSelectionListener();
                getController().setTextFieldOfControlDialog();
            }
            return true;
        }

        //m shortcut key
        if(methodName.equals("mainShape")){
            if(getController().isOnlySimpleItemIsSelected()){
                if(getController().getDiagram() != null) {
                    getController().removeSelectionListener();
                    if(getController().getGroupType() == Controller.RELATIONGROUP){
                        RelationDiagramItem item = ((RelationDiagram)getController().getDiagram()).getItem(getController().getSelectedShape());
                        if(item != null){
                            getController().setSelectedShape(item.getMainShape());
                            setNextColorOnControlDialog();
                        }
                    }
                    getController().addSelectionListener();
                }
            }
            getController().setTextFieldOfControlDialog();
            return true;
        }

        //t shortcut key
        if(methodName.equals("textShape")){
            if(getController().isOnlySimpleItemIsSelected()){
                if(getController().getDiagram() != null) {
                    getController().removeSelectionListener();
                    if(getController().getGroupType() == Controller.RELATIONGROUP){
                        RelationDiagramItem item = ((RelationDiagram)getController().getDiagram()).getItem(getController().getSelectedShape());
                        if(item != null){
                            XShape xShape = item.getTextShape();
                            if(xShape != null && getController().getDiagram().isInGruopShapes(xShape))
                                getController().setSelectedShape(xShape);
                        }
                    }
                    getController().addSelectionListener();
View Full Code Here


                            }else
                                setTextFieldValueOfControlDialog("");
                        }
                    }
                    if(getController().getGroupType() == Controller.PROCESSGROUP){
                        ProcessDiagramItem item = ((ProcessDiagram)getController().getDiagram()).getItem(getController().getSelectedShape());
                        if(item != null){
                            XShape xTextShape = item.getTextShape();
                            if(xTextShape != null && getController().getDiagram().isInGruopShapes(xTextShape)){
                                xText = (XText)UnoRuntime.queryInterface(XText.class, xTextShape);
                                setTextFieldValueOfControlDialog(xText.getString());
                            }else
                                setTextFieldValueOfControlDialog("");
View Full Code Here

    @Override
    public void removeShape() {
        int selectedShapeID = getSelectedShapeID();
        if(selectedShapeID > 0){
            XShape xSelectedShape = getController().getSelectedShape();
            ProcessDiagramItem selectedItem = getItem(xSelectedShape);
            if(selectedItem != null){
                String selectedShapeName = getShapeName(xSelectedShape);
                XShape xNextSelectedShape = getPreviousShape();
       
                if(!selectedShapeName.endsWith("RectangleShape0")){
                    if(selectedShapeID == 1 && getTopShapeID() == 1)
                        xNextSelectedShape = getControlShape();
                    selectedItem.removeItem();
                    decreaseItemsIDs(selectedShapeID);
                }

                if(xNextSelectedShape != null)
                    getController().setSelectedShape(xNextSelectedShape);
View Full Code Here

    @Override
    public void removeShape() {
        int selectedShapeID = getSelectedShapeID();
        if(selectedShapeID > 0){
            XShape xSelectedShape = getController().getSelectedShape();
            ProcessDiagramItem selectedItem = getItem(xSelectedShape);
            if(selectedItem != null){
                String selectedShapeName = getShapeName(xSelectedShape);
                XShape xNextSelectedShape = getPreviousShape();
       
                if(!selectedShapeName.endsWith("RectangleShape0")){
                    if(selectedShapeID == 1 && getTopShapeID() == 1)
                        xNextSelectedShape = getControlShape();
                    selectedItem.removeItem();
                    decreaseItemsIDs(selectedShapeID);
                }

                if(xNextSelectedShape != null)
                    getController().setSelectedShape(xNextSelectedShape);
View Full Code Here

    @Override
    public void removeShape() {
        int selectedShapeID = getSelectedShapeID();
        if(selectedShapeID > 0){
            XShape xSelectedShape = getController().getSelectedShape();
            ProcessDiagramItem selectedItem = getItem(xSelectedShape);
            if(selectedItem != null){
                String selectedShapeName = getShapeName(xSelectedShape);
                XShape xNextSelectedShape = getPreviousShape();
                if(!selectedShapeName.endsWith("RectangleShape0")){
                    if(selectedShapeID == 1 && getTopShapeID() == 1){
                        xNextSelectedShape = getControlShape();
                        removeArrowShape();
                    }
                    selectedItem.removeItem();
                    decreaseItemsIDs(selectedShapeID);
                }
                if(xNextSelectedShape != null)
                    getController().setSelectedShape(xNextSelectedShape);
                if(isBaseColorsMode() || isBaseColorsWithGradientMode())
View Full Code Here

    @Override
    public void removeShape() {
        int selectedShapeID = getSelectedShapeID();
        if(selectedShapeID > 0){
            XShape xSelectedShape = getController().getSelectedShape();
            ProcessDiagramItem selectedItem = getItem(xSelectedShape);
            if(selectedItem != null){
                String selectedShapeName = getShapeName(xSelectedShape);
                XShape xNextSelectedShape = getPreviousShape();
                if(!selectedShapeName.endsWith("RectangleShape0")){
                    if(getTopShapeID() == 2)
                        removeArrowShape();
                    if(selectedShapeID == 1 && getTopShapeID() == 1)
                        xNextSelectedShape = getControlShape();
                    selectedItem.removeItem();
                    decreaseItemsIDs(selectedShapeID);
                }
                if(xNextSelectedShape != null)
                    getController().setSelectedShape(xNextSelectedShape);
                if(isBaseColorsMode())
View Full Code Here

                        xText.setString(str);
                    }
                }
            }
            if(getGroupType() == Controller.PROCESSGROUP){
                ProcessDiagramItem item = ((ProcessDiagram)getDiagram()).getItem(xSelectedShape);
                if(item != null){
                    XShape xTextShape = item.getTextShape();
                    if(xTextShape != null && getDiagram().isInGruopShapes(xTextShape)){
                        XText xText = (XText)UnoRuntime.queryInterface(XText.class, xTextShape);
                        xText.setString(str);
                    }
                }
View Full Code Here

        //f shortcut key
        if(methodName.equals("first")){
            if(getController().getDiagram() != null) {
                getController().removeSelectionListener();
                ProcessDiagramItem item = ((ProcessDiagram)getController().getDiagram()).getFirstItem();
                if(item != null){
                    if(getController().getDiagramType() == Controller.UPWARDARROWPROCESS)
                        getController().setSelectedShape(item.getSecondShape());
                    else
                        getController().setSelectedShape(item.getMainShape());
                    setNextColorOnControlDialog();
                }
                getController().addSelectionListener();
                getController().setTextFieldOfControlDialog();
            }
View Full Code Here

TOP

Related Classes of oxygenoffice.extensions.smart.diagram.processes.ProcessDiagramItem

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.