Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/port80/graph/dot/impl/IntPoint.java


1   //
2   // Copyright(c) 2002, Chris Leung
3   //
4   
5   package com.port80.graph.dot.impl;
6   
7   public class IntPoint {
8       int x, y;
9       public IntPoint() {}
10      ;
11      public IntPoint(IntPoint p) {
12          this.x = p.x;
13          this.y = p.y;
14      }
15      public IntPoint(DotPoint p) {
16          this.x = (int)p.x;//Math.round(p.x);
17          this.y = (int)p.y; //Math.round(p.y);
18      }
19      public IntPoint(int x, int y) {
20          this.x = x;
21          this.y = y;
22      }
23      public String toString() {
24          return x + "," + y;
25      }
26  }
27  
28