public class PGline extends PGobject implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
double |
a
Coefficient of x.
|
double |
b
Coefficient of y.
|
double |
c
Constant.
|
private boolean |
isNull |
Constructor and Description |
---|
PGline()
required by the driver.
|
PGline(double a,
double b,
double c) |
PGline(double x1,
double y1,
double x2,
double y2) |
PGline(PGlseg lseg) |
PGline(PGpoint p1,
PGpoint p2) |
PGline(java.lang.String s) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This must be overidden to allow the object to be cloned.
|
boolean |
equals(java.lang.Object obj)
This must be overidden to allow comparisons of objects.
|
java.lang.String |
getValue()
This must be overidden, to return the value of the object, in the form required by
org.postgresql.
|
int |
hashCode()
Compute hash.
|
private void |
setValue(double x1,
double y1,
double x2,
double y2) |
private void |
setValue(PGpoint p1,
PGpoint p2) |
void |
setValue(java.lang.String s)
This method sets the value of this object.
|
public double a
public double b
public double c
private boolean isNull
public PGline(double a, double b, double c)
a
- coefficient of xb
- coefficient of yc
- constantpublic PGline(double x1, double y1, double x2, double y2)
x1
- coordinate for first point on the liney1
- coordinate for first point on the linex2
- coordinate for second point on the liney2
- coordinate for second point on the linepublic PGline(PGpoint p1, PGpoint p2)
p1
- first point on the linep2
- second point on the linepublic PGline(PGlseg lseg)
lseg
- Line segment which calls on this line.public PGline(java.lang.String s) throws java.sql.SQLException
s
- definition of the line in PostgreSQL's syntax.java.sql.SQLException
- on conversion failurepublic PGline()
private void setValue(double x1, double y1, double x2, double y2)
public void setValue(java.lang.String s) throws java.sql.SQLException
PGobject
public boolean equals(java.lang.Object obj)
PGobject
public int hashCode()
PGobject
public java.lang.String getValue()
PGobject