Package oxygenoffice.extensions.smart.diagram.relationdiagrams

Examples of oxygenoffice.extensions.smart.diagram.relationdiagrams.RelationDiagramItem


            if((selectedShapeName.startsWith("OrganizationDiagram") || selectedShapeName.startsWith("SimpleOrganizationDiagram") || selectedShapeName.startsWith("HorizontalOrganizationDiagram") || selectedShapeName.startsWith("TableHierarchyDiagram")) && selectedShapeName.contains("RectangleShape") && !selectedShapeName.endsWith("RectangleShape0")){
                XText xText = (XText)UnoRuntime.queryInterface(XText.class, xSelectedShape);
                xText.setString(str);
            }
            if(getGroupType() == Controller.RELATIONGROUP){
                RelationDiagramItem item = ((RelationDiagram)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);
                    }
                }
            }
            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();
                RelationDiagramItem item = ((RelationDiagram)getController().getDiagram()).getFirstItem();
                if(item != null){
                    getController().setSelectedShape(item.getMainShape());
                    setNextColorOnControlDialog();
                }
                getController().addSelectionListener();
            }
            getController().setTextFieldOfControlDialog();
            return true;
        }

        //p shortcut key
        if(methodName.equals("previous")){
            if(getController().isOnlySimpleItemIsSelected()){
                if(getController().getDiagram() != null) {
                    getController().removeSelectionListener();
                    XShape xShape = ((RelationDiagram)getController().getDiagram()).getPreviousShape();
                    if(xShape != null){
                        getController().setSelectedShape(xShape);
                        setNextColorOnControlDialog();
                    }
                    getController().addSelectionListener();
                }
            }
            getController().setTextFieldOfControlDialog();
            return true;
        }

        //n shortcut key
        if(methodName.equals("next")){
            if(getController().isOnlySimpleItemIsSelected()){
                if(getController().getDiagram() != null) {
                    getController().removeSelectionListener();
                    XShape xShape = ((RelationDiagram)getController().getDiagram()).getNextShape();
                    if(xShape != null){
                        getController().setSelectedShape(xShape);
                        setNextColorOnControlDialog();
                    }
                    getController().addSelectionListener();
                }
            }
            getController().setTextFieldOfControlDialog();
            return true;
        }
       
        //m shortcut key
        if(methodName.equals("mainShape")){
            if(getController().isOnlySimpleItemIsSelected()){
                if(getController().getDiagram() != null) {
                    getController().removeSelectionListener();
                    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();
                    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

TOP

Related Classes of oxygenoffice.extensions.smart.diagram.relationdiagrams.RelationDiagramItem

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.