+/*******************************************************************************\r
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
+ * in Industry THTH ry.\r
+ * All rights reserved. This program and the accompanying materials\r
+ * are made available under the terms of the Eclipse Public License v1.0\r
+ * which accompanies this distribution, and is available at\r
+ * http://www.eclipse.org/legal/epl-v10.html\r
+ *\r
+ * Contributors:\r
+ * VTT Technical Research Centre of Finland - initial API and implementation\r
+ *******************************************************************************/\r
+package org.simantics.g2d.utils;\r
+\r
+\r
+\r
+/**\r
+ * @author Tuukka Lehtonen\r
+ */\r
+public enum Alignment {\r
+\r
+ /**\r
+ * Indicates the elements should be aligned to the origin. For the\r
+ * horizontal axis with a left to right orientation this means aligned to\r
+ * the left edge. For the vertical axis leading means aligned to the top\r
+ * edge.\r
+ */\r
+ LEADING,\r
+\r
+ /**\r
+ * Indicates the elements should be aligned to the end of the region. For\r
+ * the horizontal axis with a left to right orientation this means aligned\r
+ * to the right edge. For the vertical axis trailing means aligned to the\r
+ * bottom edge.\r
+ */\r
+ TRAILING,\r
+\r
+ /**\r
+ * Indicates the elements should be centered in the region.\r
+ */\r
+ CENTER,\r
+\r
+ /**\r
+ * Indicates the elements should be aligned along their baseline.\r
+ * \r
+ * @since 1.6\r
+ */\r
+ BASELINE\r
+\r
+}\r