forked from yannrichet/jmathplot
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAWTDrawer3D.java
More file actions
27 lines (21 loc) · 728 Bytes
/
AWTDrawer3D.java
File metadata and controls
27 lines (21 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.math.plot.render;
import org.math.plot.canvas.*;
public class AWTDrawer3D extends AWTDrawer {
public AWTDrawer3D(PlotCanvas _canvas) {
super(_canvas);
projection = new Projection3D(this);
}
public void rotate(int[] t, int[] panelSize) {
((Projection3D) projection).rotate(t, panelSize);
}
public void dilate(int[] screenOrigin, double[] screenRatio) {
super.dilate(screenOrigin, screenRatio);
((Projection3D) projection).updateCoordsCenterScreen();
canvas.repaint();
}
public void translate(int... t) {
super.translate(t);
((Projection3D) projection).updateCoordsCenterScreen();
canvas.repaint();
}
}