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.PointThe Class Pixel.- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class org.locationtech.jts.geom.Geometryenvelope, 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetCurrentPartitionId()Gets the current partition id.intgetResolutionX()intgetResolutionY()inthashCode()booleanisDuplicate()Checks if is duplicate.voidsetCurrentPartitionId(int currentPartitionId)Sets the current partition id.voidsetDuplicate(boolean duplicate)Sets the duplicate.StringtoString()- 
Methods inherited from class org.locationtech.jts.geom.Pointapply, 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.Geometrybuffer, 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- 
Pixelpublic Pixel(double x, double y, int resolutionX, int resolutionY, boolean isDuplicate, int currentPartitionId)Instantiates a new pixel.- Parameters:
- x- the x
- y- the y
- resolutionX- the resolution X
- resolutionY- the resolution Y
- isDuplicate- the is duplicate
- currentPartitionId- the current partition id
 
 - 
Pixelpublic Pixel(double x, double y, int resolutionX, int resolutionY)Instantiates a new pixel.- Parameters:
- x- the x
- y- the y
- resolutionX- the resolution X
- resolutionY- the resolution Y
 
 
- 
 - 
Method Detail- 
isDuplicatepublic boolean isDuplicate() Checks if is duplicate.- Returns:
- true, if is duplicate
 
 - 
setDuplicatepublic void setDuplicate(boolean duplicate) Sets the duplicate.- Parameters:
- duplicate- the new duplicate
 
 - 
getCurrentPartitionIdpublic int getCurrentPartitionId() Gets the current partition id.- Returns:
- the current partition id
 
 - 
setCurrentPartitionIdpublic void setCurrentPartitionId(int currentPartitionId) Sets the current partition id.- Parameters:
- currentPartitionId- the new current partition id
 
 - 
getResolutionXpublic int getResolutionX() 
 - 
getResolutionYpublic int getResolutionY() 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- org.locationtech.jts.geom.Geometry
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- org.locationtech.jts.geom.Geometry
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- org.locationtech.jts.geom.Geometry
 
 
- 
 
-