org.postgis.java2d
public class PGShapeGeometry extends org.postgresql.util.PGobject implements java.awt.Shape
GeneralPath
,
Shape
,
PGobject
,
Serialized FormConstructor and Description |
---|
PGShapeGeometry()
Constructor called by JDBC drivers.
|
PGShapeGeometry(java.awt.geom.GeneralPath path,
int srid)
Construct directly from a General Path
|
PGShapeGeometry(java.lang.String value)
Reads the HexWKB representation
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double x,
double y) |
boolean |
contains(double x,
double y,
double w,
double h) |
boolean |
contains(java.awt.geom.Point2D p) |
boolean |
contains(java.awt.geom.Rectangle2D r) |
boolean |
equals(java.lang.Object obj) |
java.awt.Rectangle |
getBounds() |
java.awt.geom.Rectangle2D |
getBounds2D() |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at) |
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness) |
int |
getSRID()
Return the SRID or Geometry.UNKNOWN_SRID if none was available
|
java.lang.String |
getValue()
We currently have read-only support, so this method returns null
|
boolean |
intersects(double x,
double y,
double w,
double h) |
boolean |
intersects(java.awt.geom.Rectangle2D r) |
void |
setValue(java.lang.String value)
Reads the HexWKB representation - to be called by the jdbc drivers.
|
java.lang.String |
toString() |
public PGShapeGeometry()
public PGShapeGeometry(java.awt.geom.GeneralPath path, int srid)
public PGShapeGeometry(java.lang.String value) throws java.sql.SQLException
java.sql.SQLException
public void setValue(java.lang.String value) throws java.sql.SQLException
setValue
in class org.postgresql.util.PGobject
java.sql.SQLException
public java.lang.String toString()
toString
in class org.postgresql.util.PGobject
public java.lang.String getValue()
getValue
in class org.postgresql.util.PGobject
public boolean equals(java.lang.Object obj)
equals
in class org.postgresql.util.PGobject
public int getSRID()
public boolean contains(double x, double y)
contains
in interface java.awt.Shape
public boolean contains(double x, double y, double w, double h)
contains
in interface java.awt.Shape
public boolean intersects(double x, double y, double w, double h)
intersects
in interface java.awt.Shape
public java.awt.Rectangle getBounds()
getBounds
in interface java.awt.Shape
public boolean contains(java.awt.geom.Point2D p)
contains
in interface java.awt.Shape
public java.awt.geom.Rectangle2D getBounds2D()
getBounds2D
in interface java.awt.Shape
public boolean contains(java.awt.geom.Rectangle2D r)
contains
in interface java.awt.Shape
public boolean intersects(java.awt.geom.Rectangle2D r)
intersects
in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator
in interface java.awt.Shape
public java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at, double flatness)
getPathIterator
in interface java.awt.Shape
Copyright © 2016. All Rights Reserved.