blob: 65ed63d5aba59acb3f6c2a0ac677c77df6c4c122 (
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
|
/*******************************************************************************
* Copyright (c) 2010, 2019 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.graphical.edit.styles;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.sirius.ext.draw2d.figure.ICollapseMode;
/**
* Constants for border item offsets.
*
* @author mchauvin
*/
public interface IBorderItemOffsets {
/**
* Default offset: represents how much of a bordered node can be "inside"
* its parent (the container it is on the border of).
*/
Dimension DEFAULT_OFFSET = new Dimension(8, 8);
/**
* Offset to use when collapse filter is used.
*/
Dimension COLLAPSE_FILTER_OFFSET = ICollapseMode.DEFAULT ? ICollapseMode.COLLAPSE_DEFAULT_OFFSET : ICollapseMode.COLLAPSE_MINIMIZED_OFFSET;
/**
* Offset to use to remove item.<BR>
* Generally used for label outside of a node.<BR>
* In this case, the behavior of border item locator is slightly different. All the locations around the node are
* authorized even if the border node is larger that the parent node.
*/
Dimension NO_OFFSET = new Dimension(-1, -1);
}
|