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: import org.apache.tools.ant.types.DataType;
21: import java.util.Vector;
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 instructions = new Vector();
30:
31: // CheckStyle:VisibilityModifier ON
32:
33: /**
34: * Add a rotate to the operation.
35: * @param instr the rotate to add.
36: */
37: public void addRotate(Rotate instr) {
38: instructions.add(instr);
39: }
40:
41: /**
42: * Add a draw to the operation.
43: * @param instr the draw to add.
44: */
45: public void addDraw(Draw instr) {
46: instructions.add(instr);
47: }
48:
49: /**
50: * Add a rectangle to the operation.
51: * @param instr the rectangle to add.
52: */
53: public void addRectangle(Rectangle instr) {
54: instructions.add(instr);
55: }
56:
57: /**
58: * Add text to the operation.
59: * @param instr the text to add.
60: */
61: public void addText(Text instr) {
62: instructions.add(instr);
63: }
64:
65: /**
66: * Add a scale to the operation.
67: * @param instr the scale to add.
68: */
69: public void addScale(Scale instr) {
70: instructions.add(instr);
71: }
72: }
|