Record Class EdgeInsets
java.lang.Object
java.lang.Record
org.maplibre.nativeffi.camera.EdgeInsets
Screen-space insets in logical map pixels.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEdgeInsets(double top, double left, double bottom, double right) Creates an instance of aEdgeInsetsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublebottom()Returns the value of thebottomrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleleft()Returns the value of theleftrecord component.doubleright()Returns the value of therightrecord component.doubletop()Returns the value of thetoprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ZERO
-
-
Constructor Details
-
EdgeInsets
public EdgeInsets(double top, double left, double bottom, double right) Creates an instance of aEdgeInsetsrecord class.- Parameters:
top- the value for thetoprecord componentleft- the value for theleftrecord componentbottom- the value for thebottomrecord componentright- the value for therightrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
top
public double top()Returns the value of thetoprecord component.- Returns:
- the value of the
toprecord component
-
left
public double left()Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
bottom
public double bottom()Returns the value of thebottomrecord component.- Returns:
- the value of the
bottomrecord component
-
right
public double right()Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-