blob: 3f436c01e41614d8cb0c8404a6ee3463a890c8f6 (
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
|
/*****************************************************************************
* Copyright (c) 2013 CEA LIST.
*
* 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:
*
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.common.utils;
import org.eclipse.papyrus.infra.gmfdiag.common.messages.Messages;
/**
*
* This class provides useful constants for Units
*
*/
public class UnitsConstants {
private UnitsConstants() {
// to prevent instanciation
}
/**
* 1 inch is equivalent to 2.54 centimeters
*/
public static final double INCH2CM = 2.54;
/**
* the string Inches
*/
public static final String INCHES = Messages.UnitsUtils_Inches;
/**
* the string millimeters
*/
public static final String CENTIMETERS = Messages.UnitsUtils_Centimeters;
/**
* the string pixels
*/
public static final String PIXELS = Messages.UnitsUtils_Pixels;
}
|