Package org.apache.sedona.viz.utils
Class Pixel
- java.lang.Object
-
- org.locationtech.jts.geom.Geometry
-
- org.locationtech.jts.geom.Point
-
- org.apache.sedona.viz.utils.Pixel
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
,org.locationtech.jts.geom.Puntal
public class Pixel extends org.locationtech.jts.geom.Point
The Class Pixel.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.locationtech.jts.geom.Geometry
envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getCurrentPartitionId()
Gets the current partition id.int
getResolutionX()
int
getResolutionY()
int
hashCode()
boolean
isDuplicate()
Checks if is duplicate.void
setCurrentPartitionId(int currentPartitionId)
Sets the current partition id.void
setDuplicate(boolean duplicate)
Sets the duplicate.String
toString()
-
Methods inherited from class org.locationtech.jts.geom.Point
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, copyInternal, equalsExact, getBoundary, getBoundaryDimension, getCoordinate, getCoordinates, getCoordinateSequence, getDimension, getGeometryType, getNumPoints, getTypeCode, getX, getY, isEmpty, isSimple, normalize, reverse, reverseInternal
-
Methods inherited from class org.locationtech.jts.geom.Geometry
buffer, buffer, buffer, compare, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getArea, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getGeometryN, getInteriorPoint, getLength, getNumGeometries, getPrecisionModel, getSRID, getUserData, hasDimension, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isRectangle, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toText, touches, union, union, within
-
-
-
-
Constructor Detail
-
Pixel
public Pixel(double x, double y, int resolutionX, int resolutionY, boolean isDuplicate, int currentPartitionId)
Instantiates a new pixel.- Parameters:
x
- the xy
- the yresolutionX
- the resolution XresolutionY
- the resolution YisDuplicate
- the is duplicatecurrentPartitionId
- the current partition id
-
Pixel
public Pixel(double x, double y, int resolutionX, int resolutionY)
Instantiates a new pixel.- Parameters:
x
- the xy
- the yresolutionX
- the resolution XresolutionY
- the resolution Y
-
-
Method Detail
-
isDuplicate
public boolean isDuplicate()
Checks if is duplicate.- Returns:
- true, if is duplicate
-
setDuplicate
public void setDuplicate(boolean duplicate)
Sets the duplicate.- Parameters:
duplicate
- the new duplicate
-
getCurrentPartitionId
public int getCurrentPartitionId()
Gets the current partition id.- Returns:
- the current partition id
-
setCurrentPartitionId
public void setCurrentPartitionId(int currentPartitionId)
Sets the current partition id.- Parameters:
currentPartitionId
- the new current partition id
-
getResolutionX
public int getResolutionX()
-
getResolutionY
public int getResolutionY()
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classorg.locationtech.jts.geom.Geometry
-
toString
public String toString()
- Overrides:
toString
in classorg.locationtech.jts.geom.Geometry
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classorg.locationtech.jts.geom.Geometry
-
-