Package cn.edu.pku.sei.dockingui.model

Examples of cn.edu.pku.sei.dockingui.model.DockingUILayout.addWindow()


            pb);
    // --UI����װ��������UI���ɵ����������
    JScrollPane peiUI = new JScrollPane(pei.getExplorerComponent());
    peiUI.setBorder(BorderFactory.createEmptyBorder());
    peiUI.getViewport().setBackground(Color.white);
    layout.addWindow(peiUI, "Pattern", icon,
        ConstantDefinition.Position.LEF, false);

    pei
        .addPropertyChangeListener(
            de.FeatureModellingTool.Pattern.ConstantDefinition.CURRENT_TEMPLATE,
View Full Code Here


        configurator.setDockingBarStyle(ConstantDefinition.Position.BOT, ConstantDefinition.EndPoint.HEAD, ConstantDefinition.DockingBarStyle.EXTENDING);

        Icon icon = new ImageIcon(getClass().getResource("resources/window16.png"));


        layout.addWindow(drawingArea, "����ģ�ͱ༭��", icon, ConstantDefinition.Position.CEN, true);

        infoExplorerUI.setBorder(BorderFactory.createEmptyBorder());
        infoExplorerUI.setOpaque(false);
        JScrollPane scrollInfoExplorerUI = new JScrollPane(infoExplorerUI);
        scrollInfoExplorerUI.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here

        infoExplorerUI.setOpaque(false);
        JScrollPane scrollInfoExplorerUI = new JScrollPane(infoExplorerUI);
        scrollInfoExplorerUI.setBorder(BorderFactory.createEmptyBorder());
        scrollInfoExplorerUI.getViewport().setBackground(Color.white);
        //scrollinfoExplorerUI.setMaximumSize(scrollinfoExplorerUI.getPreferredSize());
        layout.addWindow(scrollInfoExplorerUI,  "��Ϣ���", icon, ConstantDefinition.Position.LEF, true);

        //--��treetable�ķ�ʽ���������
        //--����ʵ����
        InfoExplorer2Implementation ie2 = new InfoExplorer2Implementation();
        //--�������װ����װ��������Ľӿ�
View Full Code Here

        elementLocating.getContext().putValue(de.FeatureModellingTool.ElementLocating.ConstantDefinition.INFO_EXPLORER2, ie2);
        //--UI����װ��������UI���ɵ����������
        JScrollPane scrollInfoExplorer2UI = new JScrollPane(ie2.getExplorerComponent());
        scrollInfoExplorer2UI.setBorder(BorderFactory.createEmptyBorder());
        scrollInfoExplorer2UI.getViewport().setBackground(Color.white);
        layout.addWindow(scrollInfoExplorer2UI, "feature tree", icon, ConstantDefinition.Position.LEF, false);

        //gh start
        CustomizationExplorerImplementation cei = new CustomizationExplorerImplementation();
        //--�������װ����װ��������Ľӿ�
        cei.getContext().putValue(de.FeatureModellingTool.Customize.ConstantDefinition.CUSTOMIZATION_MODEL , customizationModel);
View Full Code Here

        cei.getContext().putValue("gce" , gConstraintEditor);
        cei.getContext().putValue("dvs" , this.drawingViewContainer.getAllDrawingViews());
        //--UI����װ��������UI���ɵ����������
        JScrollPane ceiUI = new JScrollPane(cei.getExplorerComponent());
        ceiUI.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(ceiUI, "ģ�Ͷ���", icon, ConstantDefinition.Position.LEF, false);

//        cei.getConstraintExplorer().getContext().putValue(de.FeatureModellingTool.Customize.ConstantDefinition.FEATURE_MODEL , featureModel);
//        cei.getConstraintExplorer().getContext().putValue(de.FeatureModellingTool.Customize.ConstantDefinition.CONSTRAINT_MODEL , constraintModel);
        ceiUI = new JScrollPane(cei.getConstraintExplorer(featureModel , constraintModel).getExplorerComponent());
        ceiUI.setBorder(BorderFactory.createEmptyBorder());
View Full Code Here

//        cei.getConstraintExplorer().getContext().putValue(de.FeatureModellingTool.Customize.ConstantDefinition.FEATURE_MODEL , featureModel);
//        cei.getConstraintExplorer().getContext().putValue(de.FeatureModellingTool.Customize.ConstantDefinition.CONSTRAINT_MODEL , constraintModel);
        ceiUI = new JScrollPane(cei.getConstraintExplorer(featureModel , constraintModel).getExplorerComponent());
        ceiUI.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(ceiUI , "Լ�������", icon, ConstantDefinition.Position.CEN, false);
//        layout.addWindow(ceiUI, "customization", icon, ConstantDefinition.Position.LEF, true);

        ModelGenerateAction mga = new ModelGenerateAction(featureModel , featureModelEditor , featureEditor , constraintModel , constraintModelEditor , gConstraintEditor , plConstraintEditor);
        //gh end
View Full Code Here

        //gh end

        ////modelCheckerUI.getCheckerComponent().setBorder(BorderFactory.createEmptyBorder());
        //JScrollPane scrollModelCheckerUI = new JScrollPane(modelCheckerUI.getCheckerComponent());
        //scrollModelCheckerUI.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(modelCheckerUI.getCheckerComponent(), "ģ�ͼ��-�汾1", icon, ConstantDefinition.Position.BOT, true);

        plModelCheckerUI.getCheckerComponent().setBorder(BorderFactory.createEmptyBorder());
        JScrollPane scrollModelCheckerUI = new JScrollPane(plModelCheckerUI.getCheckerComponent());
        scrollModelCheckerUI.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(scrollModelCheckerUI, "ģ�ͼ��-�汾2", icon, ConstantDefinition.Position.BOT, true);
View Full Code Here

        layout.addWindow(modelCheckerUI.getCheckerComponent(), "ģ�ͼ��-�汾1", icon, ConstantDefinition.Position.BOT, true);

        plModelCheckerUI.getCheckerComponent().setBorder(BorderFactory.createEmptyBorder());
        JScrollPane scrollModelCheckerUI = new JScrollPane(plModelCheckerUI.getCheckerComponent());
        scrollModelCheckerUI.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(scrollModelCheckerUI, "ģ�ͼ��-�汾2", icon, ConstantDefinition.Position.BOT, true);

        plModelCheckerUIOptimized.getCheckerComponent().setBorder(BorderFactory.createEmptyBorder());
        JScrollPane scrollModelCheckerUIOptimized = new JScrollPane(plModelCheckerUIOptimized.getCheckerComponent());
        scrollModelCheckerUIOptimized.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(scrollModelCheckerUIOptimized, "ģ�ͼ��-�汾���Ż���", icon, ConstantDefinition.Position.BOT, true);
View Full Code Here

        layout.addWindow(scrollModelCheckerUI, "ģ�ͼ��-�汾2", icon, ConstantDefinition.Position.BOT, true);

        plModelCheckerUIOptimized.getCheckerComponent().setBorder(BorderFactory.createEmptyBorder());
        JScrollPane scrollModelCheckerUIOptimized = new JScrollPane(plModelCheckerUIOptimized.getCheckerComponent());
        scrollModelCheckerUIOptimized.setBorder(BorderFactory.createEmptyBorder());
        layout.addWindow(scrollModelCheckerUIOptimized, "ģ�ͼ��-�汾���Ż���", icon, ConstantDefinition.Position.BOT, true);
/*
        JComponent GUILogger = new StdInterceptingPane(true, true);
        GUILogger.setBorder(BorderFactory.createEmptyBorder());
        capricePanel.add(GUILogger, null, "������Ϣ", SwingConstants.SOUTH);
*/
 
View Full Code Here

        //--�������װ
        elementProperties.getContext().putValue(de.FeatureModellingTool.ElementInfoEditor.ConstantDefinition.FEATURE_MODEL, featureModel);
        graphicalEditor.addPropertyChangeListener(elementProperties);
        //--UI����װ
        JScrollPane propertiesPane = new JScrollPane(elementProperties);
        layout.addWindow(propertiesPane, "Ԫ������", icon, ConstantDefinition.Position.BOT, true);

        getContentPane().add(uiPanel, BorderLayout.CENTER);

        /**
         * UIDefaults u = UIManager.getDefaults();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.