1 """
2 * Copyright 2008 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License. You may obtain a copy of
6 * the License at
7 *
8 * http:#www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or self.implied. See the
13 * License for the specific language governing permissions and limitations under
14 * the License.
15 """
16
17 from pyjamas.ui.Widget import Widget
18 from pyjamas.Canvas.Color import Color
19 from pyjamas.Canvas.LinearGradientImplDefault import LinearGradientImplDefault
20 from pyjamas.Canvas.RadialGradientImplDefault import RadialGradientImplDefault
21 from pyjamas.Canvas.GWTCanvasImplDefault import GWTCanvasImplDefault
22
23 """*
24 * Use this constant as a parameter for the {@link #setLineJoin(String)}
25 * method.
26 """
27 BEVEL = "bevel"
28
29 """*
30 * Use this constant as a parameter for the {@link #setLineCap(String)}
31 * method.
32 """
33 BUTT = "butt"
34
35 """*
36 * Use this constant as a parameter for the
37 * {@link #setGlobalCompositeOperation(String)} method.
38 """
39 DESTINATION_OVER = "destination-over"
40
41 """*
42 * Use this constant as a parameter for the {@link #setLineJoin(String)}
43 * method.
44 """
45 MITER = "miter"
46
47 """*
48 * Use this constant either as a parameter for the {@link #setLineCap(String)}
49 * or the {@link #setLineJoin(String)} method.
50 """
51 ROUND = "round"
52
53 """*
54 * Use this constant as a parameter for the
55 * {@link #setGlobalCompositeOperation(String)} method.
56 """
57 SOURCE_OVER = "source-over"
58
59 """*
60 * Use this constant as a parameter for the {@link #setLineCap(String)}
61 * method.
62 """
63 SQUARE = "square"
64
65 """*
66 * Use this constant as a parameter for the {@link #setBackgroundColor(Color)}
67 * method.
68 """
69 TRANSPARENT = Color("")
70