KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.apache.tools.ant.types.DataType;
21 import java.util.Vector JavaDoc;
22
23 /**
24  *
25  * @see org.apache.tools.ant.taskdefs.optional.image.Image
26  */

27 public abstract class ImageOperation extends DataType {
28      // CheckStyle:VisibilityModifier OFF - bc
29
protected Vector JavaDoc instructions = new Vector JavaDoc();
30      // CheckStyle:VisibilityModifier ON
31

32     /**
33      * Add a rotate to the operation.
34      * @param instr the rotate to add.
35      */

36     public void addRotate(Rotate instr) {
37         instructions.add(instr);
38     }
39
40     /**
41      * Add a draw to the operation.
42      * @param instr the draw to add.
43      */

44     public void addDraw(Draw instr) {
45         instructions.add(instr);
46     }
47
48     /**
49      * Add a rectangle to the operation.
50      * @param instr the rectangle to add.
51      */

52     public void addRectangle(Rectangle instr) {
53         instructions.add(instr);
54     }
55
56     /**
57      * Add text to the operation.
58      * @param instr the text to add.
59      */

60     public void addText(Text instr) {
61         instructions.add(instr);
62     }
63
64     /**
65      * Add a scale to the operation.
66      * @param instr the scale to add.
67      */

68     public void addScale(Scale instr) {
69         instructions.add(instr);
70     }
71 }
72
Popular Tags