summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/PGcircle.java
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-11-01 16:55:02 +0000
commit46fb81636c84ad5fc4007e567f2d82ddb4394567 (patch)
tree1e0068abbbbef6e2bee8098f40e653eae3d31397 /src/interfaces/jdbc/postgresql/PGcircle.java
parent09634ebdfe2207eb379ca8566ffe599126125714 (diff)
Remove various files that were moved to various subdirectories...
Requested by: Peter T Mount peter@retep.org.uk
Diffstat (limited to 'src/interfaces/jdbc/postgresql/PGcircle.java')
-rw-r--r--src/interfaces/jdbc/postgresql/PGcircle.java72
1 files changed, 0 insertions, 72 deletions
diff --git a/src/interfaces/jdbc/postgresql/PGcircle.java b/src/interfaces/jdbc/postgresql/PGcircle.java
deleted file mode 100644
index 543a0a71c91..00000000000
--- a/src/interfaces/jdbc/postgresql/PGcircle.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/**
- *
- * This implements a circle consisting of a point and a radius
- *
- */
-
-package postgresql;
-
-import java.io.*;
-import java.sql.*;
-
-public class PGcircle implements Serializable
-{
- /**
- * This is the centre point
- */
- public PGpoint center;
-
- /**
- * This is the radius
- */
- double radius;
-
- public PGcircle(double x,double y,double r)
- {
- this.center = new PGpoint(x,y);
- this.radius = r;
- }
-
- public PGcircle(PGpoint c,double r)
- {
- this.center = c;
- this.radius = r;
- }
-
- public PGcircle(PGcircle c)
- {
- this.center = new PGpoint(c.center);
- this.radius = c.radius;
- }
-
- /**
- * This constructor is used by the driver.
- */
- public PGcircle(String s) throws SQLException
- {
- PGtokenizer t = new PGtokenizer(PGtokenizer.removeAngle(s),',');
- if(t.getSize() != 2)
- throw new SQLException("conversion of circle failed - "+s);
-
- try {
- center = new PGpoint(t.getToken(0));
- radius = Double.valueOf(t.getToken(1)).doubleValue();
- } catch(NumberFormatException e) {
- throw new SQLException("conversion of circle failed - "+s+" - +"+e.toString());
- }
- }
-
- public boolean equals(Object obj)
- {
- PGcircle p = (PGcircle)obj;
- return p.center.equals(center) && p.radius==radius;
- }
-
- /**
- * This returns the circle in the syntax expected by postgresql
- */
- public String toString()
- {
- return "<"+center+","+radius+">";
- }
-}