/*
 * Licensed Materials - Property of Perforce Software, Inc. 
 * © Copyright Perforce Software, Inc. 2014, 2021 
 * © Copyright IBM Corp. 2009, 2014
 * © Copyright ILOG 1996, 2009
 * All Rights Reserved.
 *
 * Note to U.S. Government Users Restricted Rights:
 * The Software and Documentation were developed at private expense and
 * are "Commercial Items" as that term is defined at 48 CFR 2.101,
 * consisting of "Commercial Computer Software" and
 * "Commercial Computer Software Documentation", as such terms are
 * used in 48 CFR 12.212 or 48 CFR 227.7202-1 through 227.7202-4,
 * as applicable.
 */

import ilog.views.graphlayout.IlvGraphLayout;

/**
 * A controller performs modification on a layout, according to given property and value. It is the link between the contol panel and
 * the layout to modify.
 * By implementing this interface, a controller will be associated to each type of layout to modify.
 * 
 *
 */
public interface GraphLayoutController {
    

    /**
     * Called when the controller is initialized.
     * @param controllerView The control panel calling this controller
     * @param diagramm The diagramm containing the graph to update
     */
    public void init(GraphLayoutControlPanel controllerView,GraphLayoutDiagrammer diagramm);

    /**
     * Called when a widget was pressed to change layout settings. 
     * @param controllerView The control panel calling this controller
     * @param widget The widget that has been used to update the layout
     * @param diagramm The diagramm containing the graph to update
     * @param layout The layout to update
     * @param layoutProperty The property of the layout to change
     * @param value The new value of the property
     */
    public void apply(GraphLayoutControlPanel controllerView,Object widget,GraphLayoutDiagrammer diagramm,IlvGraphLayout layout,String layoutProperty, Object value);

}