Class Pixel

    • 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 
      Constructor Description
      Pixel​(double x, double y, int resolutionX, int resolutionY)
      Instantiates a new pixel.
      Pixel​(double x, double y, int resolutionX, int resolutionY, boolean isDuplicate, int currentPartitionId)
      Instantiates a new pixel.
    • 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 x
        y - the y
        resolutionX - the resolution X
        resolutionY - the resolution Y
        isDuplicate - the is duplicate
        currentPartitionId - the current partition id
      • Pixel

        public 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

      • 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 class org.locationtech.jts.geom.Geometry
      • toString

        public String toString()
        Overrides:
        toString in class org.locationtech.jts.geom.Geometry
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.locationtech.jts.geom.Geometry