]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/utils/Alignment.java
Two rendering glitch fixes for time series charts
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / utils / Alignment.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.g2d.utils;
13
14
15
16 /**
17  * @author Tuukka Lehtonen
18  */
19 public enum Alignment {
20
21     /**
22      * Indicates the elements should be aligned to the origin. For the
23      * horizontal axis with a left to right orientation this means aligned to
24      * the left edge. For the vertical axis leading means aligned to the top
25      * edge.
26      */
27     LEADING,
28
29     /**
30      * Indicates the elements should be aligned to the end of the region. For
31      * the horizontal axis with a left to right orientation this means aligned
32      * to the right edge. For the vertical axis trailing means aligned to the
33      * bottom edge.
34      */
35     TRAILING,
36
37     /**
38      * Indicates the elements should be centered in the region.
39      */
40     CENTER,
41
42     /**
43      * Indicates the elements should be aligned along their baseline.
44      * 
45      * @since 1.6
46      */
47     BASELINE
48
49 }