|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.postgresql.util.PGobject
org.postgresql.geometric.PGline
public class PGline
This implements a line represented by the linear equation Ax + By + C = 0
| Field Summary | |
|---|---|
double |
a
Coefficient of x |
double |
b
Coefficient of y |
double |
c
Constant |
| Fields inherited from class org.postgresql.util.PGobject |
|---|
type, value |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
void |
setValue(java.lang.String s)
This method sets the value of this object. |
| Methods inherited from class org.postgresql.util.PGobject |
|---|
clone, getType, setType, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public double a
public double b
public double c
| Constructor Detail |
|---|
public PGline(double a,
double b,
double c)
a - coefficient of xb - coefficient of yc - constant
public 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 line
public 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()
| Method Detail |
|---|
public void setValue(java.lang.String s)
throws java.sql.SQLException
PGobject
setValue in class PGobjects - Definition of the line in PostgreSQL's syntax
java.sql.SQLException - on conversion failurepublic boolean equals(java.lang.Object obj)
PGobject
equals in class PGobjectobj - Object to compare with
public int hashCode()
PGobject
hashCode in class PGobjectjava.util.Objects#hashCode(Object)public java.lang.String getValue()
PGobject
getValue in class PGobject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||