MFScreenCoordinate class

Represents a point coordinate in the Map4D's view.

The screen location is specified in screen pixels (not display pixels) relative to the top left of the map, not top left of the whole screen. (x, y) = (0, 0) corresponds to top-left of the Map4D not the whole screen.

Annotations

Constructors

MFScreenCoordinate({required int x, required int y})
Creates an immutable representation of a point coordinate in the Map4D's view.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x int
Represents the number of pixels from the left of the Map4D.
final
y int
Represents the number of pixels from the top of the Map4D.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromJson(Object? json) MFScreenCoordinate?
Initialize a MFScreenCoordinate from a map.