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:
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the current partition id.intintinthashCode()booleanChecks if is duplicate.voidsetCurrentPartitionId(int currentPartitionId) Sets the current partition id.voidsetDuplicate(boolean duplicate) Sets the duplicate.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, reverseInternalMethods 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 Details
-
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 Details
-
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
- Overrides:
equalsin classorg.locationtech.jts.geom.Geometry
-
toString
- Overrides:
toStringin classorg.locationtech.jts.geom.Geometry
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.locationtech.jts.geom.Geometry
-