1 /**********************************************
2 * Copyright (C) 2009 Lukas Laag
3 * This file is part of Vectomatic.
4 *
5 * Vectomatic is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * Vectomatic is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with Vectomatic. If not, see http://www.gnu.org/licenses/
17 **********************************************/
18 package org.vectomatic.client.rep.view;
19
20 /**
21 * Enum to represent the different cursors
22 * @author Lukas Laag
23 */
24 public enum Cursor {
25 CURSOR_POINTER("gwt-Canvas-pointer"),
26 CURSOR_NW_RESIZE("gwt-Canvas-nw-resize"),
27 CURSOR_N_RESIZE("gwt-Canvas-n-resize"),
28 CURSOR_NE_RESIZE("gwt-Canvas-ne-resize"),
29 CURSOR_W_RESIZE("gwt-Canvas-w-resize"),
30 CURSOR_E_RESIZE("gwt-Canvas-e-resize"),
31 CURSOR_SW_RESIZE("gwt-Canvas-sw-resize"),
32 CURSOR_S_RESIZE("gwt-Canvas-s-resize"),
33 CURSOR_SE_RESIZE("gwt-Canvas-se-resize"),
34 CURSOR_MOVE("gwt-Canvas-move"),
35 CURSOR_ROTATE("gwt-Canvas-rotate"),
36 CURSOR_PICK_COLOR("gwt-Canvas-pickColor"),
37 CURSOR_OPEN_POLYLINE("gwt-Canvas-openPolyline"),
38 CURSOR_CLOSED_POLYLINE("gwt-Canvas-closedPolyline"),
39 CURSOR_CROSSHAIR("gwt-Canvas-crosshair");
40
41 private String _cssText;
42 private Cursor(String cssText) {
43 _cssText = cssText;
44 }
45 public String getCssText() {
46 return _cssText;
47 }
48 }