blob: 1e6d061672adf8b8e4d05e54aa9f13a9e504e4c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package org.singinst.uf.presenter;
public class ScaledCanvas extends ProxyCanvas {
private final PlaneBounded ourBounds;
public ScaledCanvas(GraphCanvas underlyingCanvas, PlaneBounded us) {
super(underlyingCanvas);
this.ourBounds = us.getPlaneBounds();
}
protected GraphTransform proxyToUnderlyingCanvas() {
return new GraphTransform(ourBounds, getUnderlyingCanvas());
}
public PlaneBounds getPlaneBounds() {
return ourBounds.getPlaneBounds();
}
}
|