KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > types > optional > image > BasicShape


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */

18 package org.apache.tools.ant.types.optional.image;
19
20
21 /** Draw a basic shape */
22 public abstract class BasicShape extends ImageOperation implements DrawOperation {
23     // CheckStyle:VisibilityModifier OFF - bc
24
// CheckStyle:MemberNameCheck OFF - bc
25
protected int stroke_width = 0;
26     // CheckStyle:MemberNameCheck ON
27
protected String JavaDoc fill = "transparent";
28     protected String JavaDoc stroke = "black";
29     // CheckStyle:VisibilityModifier ON
30

31
32     /**
33      * Set the fill attribute.
34      * @param col the color value to use.
35      */

36     public void setFill(String JavaDoc col) {
37         fill = col;
38     }
39
40     /**
41      * Set the stroke attribute.
42      * @param col the color value to use.
43      */

44     public void setStroke(String JavaDoc col) {
45         stroke = col;
46     }
47
48     /**
49      * Set the stroke width attribute.
50      * @param width the value to use.
51      */

52     public void setStrokewidth(int width) {
53         stroke_width = width;
54     }
55 }
56
Popular Tags