public class DBpoint extends DBobject implements DBBinaryObject, Serializable, Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
isNull
True if the point represents
null::point. |
double |
x
The X coordinate of the point.
|
double |
y
The Y coordinate of the point.
|
| 构造器和说明 |
|---|
DBpoint()
Required by the driver.
|
DBpoint(double x,
double y) |
DBpoint(String value)
This is called mainly from the other geometric types, when a point is embedded within their
definition.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
clone()
This must be overridden to allow the object to be cloned.
|
boolean |
equals(@Nullable Object obj)
This must be overridden to allow comparisons of objects.
|
@Nullable String |
getValue()
This must be overridden, to return the value of the object, in the form required by
com.xugu.
|
int |
hashCode()
Compute hash.
|
int |
lengthInBytes()
This method is called to return the number of bytes needed to store this object in the binary
form required by com.xugu.
|
void |
move(double x,
double y)
Moves the point to the supplied coordinates.
|
void |
move(int x,
int y)
Moves the point to the supplied coordinates.
|
void |
setByteValue(byte[] b,
int offset)
This method is called to set the value of this object.
|
void |
setLocation(int x,
int y)
Moves the point to the supplied coordinates. refer to java.awt.Point for description of this.
|
void |
setLocation(Point p)
已过时。
Will be removed for avoiding a dependency to the
java.desktop module. |
void |
setValue(@Nullable String s)
This method sets the value of this object.
|
void |
toBytes(byte[] b,
int offset)
Populate the byte array with DBpoint in the binary syntax expected by com.xugu.
|
void |
translate(double x,
double y)
Translate the point by the supplied amount.
|
void |
translate(int x,
int y)
Translate the point by the supplied amount.
|
public double x
public double y
public boolean isNull
null::point.public DBpoint(double x,
double y)
x - coordinatey - coordinatepublic DBpoint(String value) throws SQLException
value - Definition of this point in Xugu's syntaxSQLException - if something goes wrongpublic DBpoint()
public void setValue(@Nullable String s) throws SQLException
DBobjectsetValue 在类中 DBobjects - Definition of this point in Xugu's syntaxSQLException - on conversion failurepublic void setByteValue(byte[] b,
int offset)
DBBinaryObjectsetByteValue 在接口中 DBBinaryObjectb - Definition of this point in Xugu's binary syntaxoffset - the offset in the byte array where object data startspublic boolean equals(@Nullable Object obj)
DBobjectpublic int hashCode()
DBobjecthashCode 在类中 DBobjectObjects.hashCode(Object)public @Nullable String getValue()
DBobjectpublic int lengthInBytes()
DBBinaryObjectlengthInBytes 在接口中 DBBinaryObjectpublic void toBytes(byte[] b,
int offset)
toBytes 在接口中 DBBinaryObjectb - the array to store the value, it is guaranteed to be at lest
DBBinaryObject.lengthInBytes() in size.offset - the offset in the byte array where object must be storedpublic void translate(int x,
int y)
x - integer amount to add on the x axisy - integer amount to add on the y axispublic void translate(double x,
double y)
x - double amount to add on the x axisy - double amount to add on the y axispublic void move(int x,
int y)
x - integer coordinatey - integer coordinatepublic void move(double x,
double y)
x - double coordinatey - double coordinatepublic void setLocation(int x,
int y)
x - integer coordinatey - integer coordinatePoint@Deprecated public void setLocation(Point p)
java.desktop module.p - Point to move toPointpublic Object clone() throws CloneNotSupportedException
DBobjectclone 在类中 DBobjectCloneNotSupportedExceptionCopyright © 2025. All rights reserved.