1 /*
2 * This file is a part of CAST project.
3 * (c) Copyright 2007, AGH University of Science & Technology
4 * https://caribou.iisg.agh.edu.pl/trac/cast
5 *
6 * Licensed under the Eclipse Public License, Version 1.0 (the "License").
7 * You may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 * http://www.eclipse.org/legal/epl-v10.html
10 */
11 /*
12 * File: ILayoutSwitchable.java
13 * Created: 2007-00-00
14 * Author: klewandowski
15 * $Id: ILayoutSwitchable.java 2892 2009-05-22 10:14:10Z apohllo $
16 */
17
18 package pl.edu.agh.cast.backward.editor;
19
20 import org.eclipse.draw2d.LayoutManager;
21
22 /**
23 * Interface defining functionality of editors which support layout manager changing/switching.
24 *
25 * @author AGH CAST Team
26 */
27 public interface ILayoutSwitchable extends IWithLayoutManager {
28
29 /**
30 * Sets new layout manager.
31 *
32 * @param layoutManager
33 * layout manager to set
34 */
35 void setLayoutManager(LayoutManager layoutManager);
36
37 /**
38 * Checks whether given manager can be applied.
39 *
40 * @param layoutManager
41 * layout manager to check
42 * @return whether the manager may be applied
43 */
44 boolean isSupported(LayoutManager layoutManager);
45
46 /**
47 * Returns default manager.
48 *
49 * @return {@link LayoutManager} instance
50 */
51 LayoutManager getDefaultLayoutManager();
52
53 }