Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: fe9339c31b0310efe6fc545f44d1f1d0fa8efe51 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*****************************************************************************
 * Copyright (c) 2018 CEA LIST, EclipseSource and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   EclipseSource - Initial API and implementation
 *
 *****************************************************************************/
package org.eclipse.papyrus.uml.diagram.sequence.anchors;

import org.eclipse.draw2d.IFigure;
import org.eclipse.uml2.uml.DestructionOccurrenceSpecification;
import org.eclipse.uml2.uml.ExecutionSpecification;
import org.eclipse.uml2.uml.Message;

/**
 * Constants class for Anchors
 */
public final class AnchorConstants {
	private AnchorConstants() {
		// Constants class; no instance
	}

	/**
	 * <p>
	 * The Anchor Terminal for an Anchor at the start/beginning of an element.
	 * </p>
	 *
	 * <p>
	 * This anchor represents a single point (Which depends on the anchorage {@link IFigure}), without any parameter.
	 * </p>
	 *
	 * <p>
	 * This anchor may represent, for example, the start of an {@link ExecutionSpecification}, or the source Send Event of a {@link Message}
	 * </p>
	 */
	public static final String START_TERMINAL = "start";

	/**
	 * <p>
	 * The Anchor Terminal for an Anchor at the finish/end of an element.
	 * </p>
	 *
	 * <p>
	 * This anchor represents a single point (Which depends on the anchorage {@link IFigure}), without any parameter.
	 * </p>
	 *
	 * <p>
	 * This anchor may represent, for example, the finish of an {@link ExecutionSpecification}, or the target Receive Event of a {@link Message}
	 * </p>
	 */
	public static final String END_TERMINAL = "end";

	/**
	 * <p>
	 * The Anchor Terminal for an Anchor at the center of an element.
	 * </p>
	 *
	 * <p>
	 * This anchor represents a single point (Which depends on the anchorage {@link IFigure}), without any parameter.
	 * </p>
	 *
	 * <p>
	 * This anchor typically represents the center of the X in a {@link DestructionOccurrenceSpecification}
	 * </p>
	 */
	public static final String CENTER_TERMINAL = "center";
}

Back to the top