blob: 95b5fe43d002d2152707ffb9829f5947ed90c200 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/*******************************************************************************
* Copyright (c) 2007, 2008, 2009 THALES GLOBAL SERVICES.
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.sirius.diagram.ui.tools.api.layout.ordering;
import java.util.Collection;
import org.eclipse.gmf.runtime.notation.View;
/**
* An ordering that is able to order views into a grid.
*
* @author ymortier
*/
public interface GridViewOrdering {
/**
* Returns the views sorted by this ordering.
*
* @return the views sorted by this ordering.
*/
GridView getSortedViewsAsGrid();
/**
* Returns <code>true</code> if this {@link ViewOrdering} is able to manage
* the specified {@link View}.
*
* @param view
* the view to check.
* @return <code>true</code> if this {@link ViewOrdering} is able to manage
* the specified {@link View}.
*/
boolean isAbleToManageView(View view);
/**
* Set the list of views to sort.
*
* @param views
* the list of views to sort.
* @param <T>
* class which extends View
*/
<T extends View> void setViews(Collection<T> views);
}
|