01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: /** Draw a basic shape */
21: public abstract class BasicShape extends ImageOperation implements
22: DrawOperation {
23: // CheckStyle:VisibilityModifier OFF - bc
24: // CheckStyle:MemberNameCheck OFF - bc
25: protected int stroke_width = 0;
26: // CheckStyle:MemberNameCheck ON
27: protected String fill = "transparent";
28: protected String stroke = "black";
29:
30: // CheckStyle:VisibilityModifier ON
31:
32: /**
33: * Set the fill attribute.
34: * @param col the color value to use.
35: */
36: public void setFill(String 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 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: }
|