public class

Geometry

extends Object
java.lang.Object
   ↳ com.carto.geometry.Geometry
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

A base class for all geometry types.

Summary

Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
MapBounds getBounds()
Returns the minimal bounds for the geometry.
MapPos getCenterPos()
Returns the center point of the geometry.
int hashCode()
Returns the hash value of this object.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public MapBounds getBounds ()

Returns the minimal bounds for the geometry.

Returns
  • The bounds for the geometry.

public MapPos getCenterPos ()

Returns the center point of the geometry.

Returns
  • The center point of the geometry.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.