# Coverage details for edu.uci.ics.jung.visualization.transform.MutableTransformerDecorator

Line | Hits | Source
--- | --- | ---
1 |  | `/*`
2 |  | `* Copyright (c) 2003, the JUNG Project and the Regents of the University of`
3 |  | `* California All rights reserved.`
4 |  | `*`
5 |  | `* This software is open-source under the BSD license; see either "license.txt"`
6 |  | `* or http://jung.sourceforge.net/license.txt for a description.`
7 |  | `*`
8 |  | `*/`
9 |  | `package edu.uci.ics.jung.visualization.transform;`
10 |  | ``
11 |  | `import java.awt.Shape;`
12 |  | `import java.awt.geom.AffineTransform;`
13 |  | `import java.awt.geom.Point2D;`
14 |  | ``
15 |  | `import javax.swing.event.ChangeListener;`
16 |  | ``
17 |  | `/**`
18 |  | `* a complete decorator that wraps a MutableTransformer. Subclasses`
19 |  | `* use this to allow them to only declare methods they need to change.`
20 |  | `*`
21 |  | `* @author Tom Nelson - RABA Technologies`
22 |  | `*`
23 |  | `*/`
24 |  | `public abstract class MutableTransformerDecorator implements MutableTransformer {`
25 |  | ``
26 |  | `protected MutableTransformer delegate;`
27 |  | ``
28 | 0 | `public MutableTransformerDecorator(MutableTransformer delegate) {`
29 | 0 | `if(delegate == null) {`
30 | 0 | `delegate = new MutableAffineTransformer();`
31 |  | `}`
32 | 0 | `this.delegate = delegate;`
33 | 0 | `}`
34 |  | ``
35 |  | `/**`
36 |  | `* @return Returns the delegate.`
37 |  | `*/`
38 |  | `public MutableTransformer getDelegate() {`
39 | 0 | `return delegate;`
40 |  | `}`
41 |  | ``
42 |  | `/**`
43 |  | `* @param delegate The delegate to set.`
44 |  | `*/`
45 |  | `public void setDelegate(MutableTransformer delegate) {`
46 | 0 | `this.delegate = delegate;`
47 | 0 | `}`
48 |  | ``
49 |  | ``
50 |  | ``
51 |  | `/* (non-Javadoc)`
52 |  | `* @see edu.uci.ics.jung.utils.ChangeEventSupport#addChangeListener(javax.swing.event.ChangeListener)`
53 |  | `*/`
54 |  | `public void addChangeListener(ChangeListener l) {`
55 | 0 | `delegate.addChangeListener(l);`
56 | 0 | `}`
57 |  | ``
58 |  | `/* (non-Javadoc)`
59 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#concatenate(java.awt.geom.AffineTransform)`
60 |  | `*/`
61 |  | `public void concatenate(AffineTransform transform) {`
62 | 0 | `delegate.concatenate(transform);`
63 | 0 | `}`
64 |  | ``
65 |  | `/* (non-Javadoc)`
66 |  | `* @see edu.uci.ics.jung.utils.ChangeEventSupport#fireStateChanged()`
67 |  | `*/`
68 |  | `public void fireStateChanged() {`
69 | 0 | `delegate.fireStateChanged();`
70 | 0 | `}`
71 |  | ``
72 |  | `/* (non-Javadoc)`
73 |  | `* @see edu.uci.ics.jung.utils.ChangeEventSupport#getChangeListeners()`
74 |  | `*/`
75 |  | `public ChangeListener[] getChangeListeners() {`
76 | 0 | `return delegate.getChangeListeners();`
77 |  | `}`
78 |  | ``
79 |  | `/* (non-Javadoc)`
80 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getScale()`
81 |  | `*/`
82 |  | `public double getScale() {`
83 | 0 | `return delegate.getScale();`
84 |  | `}`
85 |  | ``
86 |  | `/* (non-Javadoc)`
87 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getScaleX()`
88 |  | `*/`
89 |  | `public double getScaleX() {`
90 | 0 | `return delegate.getScaleX();`
91 |  | `}`
92 |  | ``
93 |  | `/* (non-Javadoc)`
94 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getScaleY()`
95 |  | `*/`
96 |  | `public double getScaleY() {`
97 | 0 | `return delegate.getScaleY();`
98 |  | `}`
99 |  | ``
100 |  | `/* (non-Javadoc)`
101 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getShearX()`
102 |  | `*/`
103 |  | `public double getShearX() {`
104 | 0 | `return delegate.getShearX();`
105 |  | `}`
106 |  | ``
107 |  | `/* (non-Javadoc)`
108 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getShearY()`
109 |  | `*/`
110 |  | `public double getShearY() {`
111 | 0 | `return delegate.getShearY();`
112 |  | `}`
113 |  | ``
114 |  | `/* (non-Javadoc)`
115 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getTransform()`
116 |  | `*/`
117 |  | `public AffineTransform getTransform() {`
118 | 0 | `return delegate.getTransform();`
119 |  | `}`
120 |  | ``
121 |  | `/* (non-Javadoc)`
122 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getTranslateX()`
123 |  | `*/`
124 |  | `public double getTranslateX() {`
125 | 0 | `return delegate.getTranslateX();`
126 |  | `}`
127 |  | ``
128 |  | `/* (non-Javadoc)`
129 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#getTranslateY()`
130 |  | `*/`
131 |  | `public double getTranslateY() {`
132 | 0 | `return delegate.getTranslateY();`
133 |  | `}`
134 |  | ``
135 |  | `/* (non-Javadoc)`
136 |  | `* @see edu.uci.ics.jung.visualization.transform.Transformer#inverseTransform(java.awt.geom.Point2D)`
137 |  | `*/`
138 |  | `public Point2D inverseTransform(Point2D p) {`
139 | 0 | `return delegate.inverseTransform(p);`
140 |  | `}`
141 |  | ``
142 |  | `/* (non-Javadoc)`
143 |  | `* @see edu.uci.ics.jung.visualization.transform.shape.ShapeTransformer#inverseTransform(java.awt.Shape)`
144 |  | `*/`
145 |  | `public Shape inverseTransform(Shape shape) {`
146 | 0 | `return delegate.inverseTransform(shape);`
147 |  | `}`
148 |  | ``
149 |  | `/* (non-Javadoc)`
150 |  | `* @see edu.uci.ics.jung.visualization.transform.Transformer#isTransformed()`
151 |  | `*/`
152 |  | `// public boolean isTransformed() {`
153 |  | `// return delegate.isTransformed();`
154 |  | `// }`
155 |  | ``
156 |  | `/* (non-Javadoc)`
157 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#preConcatenate(java.awt.geom.AffineTransform)`
158 |  | `*/`
159 |  | `public void preConcatenate(AffineTransform transform) {`
160 | 0 | `delegate.preConcatenate(transform);`
161 | 0 | `}`
162 |  | ``
163 |  | `/* (non-Javadoc)`
164 |  | `* @see edu.uci.ics.jung.utils.ChangeEventSupport#removeChangeListener(javax.swing.event.ChangeListener)`
165 |  | `*/`
166 |  | `public void removeChangeListener(ChangeListener l) {`
167 | 0 | `delegate.removeChangeListener(l);`
168 | 0 | `}`
169 |  | ``
170 |  | `/* (non-Javadoc)`
171 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#rotate(double, java.awt.geom.Point2D)`
172 |  | `*/`
173 |  | `public void rotate(double radians, Point2D point) {`
174 | 0 | `delegate.rotate(radians, point);`
175 | 0 | `}`
176 |  | ``
177 |  | `/* (non-Javadoc)`
178 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#scale(double, double, java.awt.geom.Point2D)`
179 |  | `*/`
180 |  | `public void scale(double sx, double sy, Point2D point) {`
181 | 0 | `delegate.scale(sx, sy, point);`
182 | 0 | `}`
183 |  | ``
184 |  | `/* (non-Javadoc)`
185 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#setScale(double, double, java.awt.geom.Point2D)`
186 |  | `*/`
187 |  | `public void setScale(double sx, double sy, Point2D point) {`
188 | 0 | `delegate.setScale(sx, sy, point);`
189 | 0 | `}`
190 |  | ``
191 |  | `/* (non-Javadoc)`
192 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#setToIdentity()`
193 |  | `*/`
194 |  | `public void setToIdentity() {`
195 | 0 | `delegate.setToIdentity();`
196 | 0 | `}`
197 |  | ``
198 |  | `/* (non-Javadoc)`
199 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#setTranslate(double, double)`
200 |  | `*/`
201 |  | `public void setTranslate(double dx, double dy) {`
202 | 0 | `delegate.setTranslate(dx, dy);`
203 | 0 | `}`
204 |  | ``
205 |  | `/* (non-Javadoc)`
206 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#shear(double, double, java.awt.geom.Point2D)`
207 |  | `*/`
208 |  | `public void shear(double shx, double shy, Point2D from) {`
209 | 0 | `delegate.shear(shx, shy, from);`
210 | 0 | `}`
211 |  | ``
212 |  | `/* (non-Javadoc)`
213 |  | `* @see edu.uci.ics.jung.visualization.transform.Transformer#transform(java.awt.geom.Point2D)`
214 |  | `*/`
215 |  | `public Point2D transform(Point2D p) {`
216 | 0 | `return delegate.transform(p);`
217 |  | `}`
218 |  | ``
219 |  | `/* (non-Javadoc)`
220 |  | `* @see edu.uci.ics.jung.visualization.transform.shape.ShapeTransformer#transform(java.awt.Shape)`
221 |  | `*/`
222 |  | `public Shape transform(Shape shape) {`
223 | 0 | `return delegate.transform(shape);`
224 |  | `}`
225 |  | ``
226 |  | `/* (non-Javadoc)`
227 |  | `* @see edu.uci.ics.jung.visualization.transform.MutableTransformer#translate(double, double)`
228 |  | `*/`
229 |  | `public void translate(double dx, double dy) {`
230 | 0 | `delegate.translate(dx, dy);`
231 | 0 | `}`
232 |  | ``
233 |  | `public double getRotation() {`
234 | 0 | `return delegate.getRotation();`
235 |  | `}`
236 |  | ``
237 |  | `public void rotate(double radians, double x, double y) {`
238 | 0 | `delegate.rotate(radians, x, y);`
239 | 0 | `}`
240 |  | ``
241 |  | `}`

this report was generated by version 1.0.5 of jcoverage. visit www.jcoverage.com for updates. | copyright © 2003, jcoverage ltd. all rights reserved. Java is a trademark of Sun Microsystems, Inc. in the United States and other countries.