Package org.evolizer.daforjava.visibility

Examples of org.evolizer.daforjava.visibility.ViewConfigModel


    public DAForJavaGraphPanel(GraphLoader graphLoader) {
        fGraphLoader = graphLoader;
        fCommandController = new CommandController();
        fDependencyGraph = new DependencyGraph();

        fViewConfigModel = new ViewConfigModel();
        fPolymetricViewDataCollector = new PolymetricViewDataContainer(this);
    }
View Full Code Here


    /**
     * Update view.
     */
    public void updateView() {
        DAForJavaGraphEditor graphEditor = fPVControllerView.getGraphEditor();
        ViewConfigModel viewConfigModel = graphEditor.getPanel().getViewConfigModel();
        PolymetricViewProfile profile = viewConfigModel.getProfile();

        if (profile.getName() != null && profile.getName().length() > 0) {
            fPVControllerView.select(fProfileCombo, profile.getName());
        } else {
            sLogger.warn("Profile name of editor " + graphEditor.getPartName() + " is null!");
View Full Code Here

        // TODO: set the profile in the view config model, which then should notify the checkboxes to update
        fPVControllerView.select(fPVControllerView.getWidthMetricChooser(), profile.getWidthMetric());
        fPVControllerView.select(fPVControllerView.getHeightMetricChooser(), profile.getHeightMetric());
        fPVControllerView.select(fPVControllerView.getColorMetricChooser(), profile.getColorMetric());
       
        ViewConfigModel viewConfigModel = fPVControllerView.getGraphEditor().getPanel().getViewConfigModel();
        viewConfigModel.updatePolymetricViewsProfile(ViewConfigModel.UPDATE_GRAPH_EVENT, profile);
    }
View Full Code Here

     */
    private void updateView() {
        if (fGraphEditor != null) {
            sLogger.info("Updating view to editor " + fGraphEditor.getPartName());

            ViewConfigModel viewConfigModel = fGraphEditor.getPanel().getViewConfigModel();
            PolymetricViewProfile profile = viewConfigModel.getProfile();

            fProfileChooser.updateView();
            select(fHeightMetricChooser, profile.getHeightMetric());
            select(fWidthMetricChooser, profile.getWidthMetric());
            select(fColorMetricChooser, profile.getColorMetric());
View Full Code Here

         * {@inheritDoc}
         */
        public void handleEvent(Event event) {
            sLogger.info("Metric selection changed");
            if (fGraphEditor != null) {
                ViewConfigModel viewConfigModel = fGraphEditor.getPanel().getViewConfigModel();
                String name = fProfileChooser.getText();
                String height = fHeightMetricChooser.getText();
                String width = fWidthMetricChooser.getText();
                String color = fColorMetricChooser.getText();
                PolymetricViewProfile profile = new PolymetricViewProfile(name, height, width, color);

                viewConfigModel.updatePolymetricViewsProfile(fPropertyChangeType, profile);
            }
        }
View Full Code Here

TOP

Related Classes of org.evolizer.daforjava.visibility.ViewConfigModel

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.