blob: 53e86230bbb96b672fbd62e377a101fe0bdd89f4 (
plain) (
blame)
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
28
|
/* */ import java.awt.Graphics;
/* */
/* */ public class GraphLineDrawEvent
/* */ implements GraphicsEvent
/* */ {
/* */ private Graph2D graph;
/* */ private Point2D from;
/* */ private Point2D to;
/* */
/* */ public GraphLineDrawEvent(Graph2D graph, Point2D from, Point2D to)
/* */ {
/* 15 */ this.graph = graph;
/* 16 */ this.from = from;
/* 17 */ this.to = to;
/* */ }
/* */
/* */ public void invoke(Graphics graphics)
/* */ {
/* 24 */ Point2D transFrom = this.graph.translate(this.from);
/* 25 */ Point2D transTo = this.graph.translate(this.to);
/* 26 */ graphics.drawLine(transFrom.getX(), transFrom.getY(), transTo.getX(), transTo.getY());
/* */ }
/* */ }
/* Location: Modulus.jar
* Qualified Name: GraphLineDrawEvent
* JD-Core Version: 0.6.2
*/
|