Package org.vaadin.addons.maplibre
Record Class MapLibre.ViewPort
java.lang.Object
java.lang.Record
org.vaadin.addons.maplibre.MapLibre.ViewPort
- Enclosing class:
- MapLibre
public static record MapLibre.ViewPort(org.locationtech.jts.geom.Point southWest, org.locationtech.jts.geom.Point northEast, org.locationtech.jts.geom.Point center, double bearing, double pitch)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionViewPort(org.locationtech.jts.geom.Point southWest, org.locationtech.jts.geom.Point northEast, org.locationtech.jts.geom.Point center, double bearing, double pitch) Creates an instance of aViewPortrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebearing()Returns the value of thebearingrecord component.org.locationtech.jts.geom.Pointcenter()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.org.locationtech.jts.geom.Polygonfinal inthashCode()Returns a hash code value for this object.org.locationtech.jts.geom.PointReturns the value of thenorthEastrecord component.static MapLibre.ViewPortof(elemental.json.JsonObject o) doublepitch()Returns the value of thepitchrecord component.org.locationtech.jts.geom.PointReturns the value of thesouthWestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ViewPort
public ViewPort(org.locationtech.jts.geom.Point southWest, org.locationtech.jts.geom.Point northEast, org.locationtech.jts.geom.Point center, double bearing, double pitch) Creates an instance of aViewPortrecord class.- Parameters:
southWest- the value for thesouthWestrecord componentnorthEast- the value for thenorthEastrecord componentcenter- the value for thecenterrecord componentbearing- the value for thebearingrecord componentpitch- the value for thepitchrecord component
-
-
Method Details
-
of
-
getBounds
public org.locationtech.jts.geom.Polygon getBounds() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
southWest
public org.locationtech.jts.geom.Point southWest()Returns the value of thesouthWestrecord component.- Returns:
- the value of the
southWestrecord component
-
northEast
public org.locationtech.jts.geom.Point northEast()Returns the value of thenorthEastrecord component.- Returns:
- the value of the
northEastrecord component
-
center
public org.locationtech.jts.geom.Point center()Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
bearing
public double bearing()Returns the value of thebearingrecord component.- Returns:
- the value of the
bearingrecord component
-
pitch
public double pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-