Class ViewportData


  • public class ViewportData
    extends java.lang.Object
    Data class to keep viewport information. This can be either a combination of map center and map scale or a rectangle in east-north coordinate space. Either of those will be null, so the consumer of the ViewportData object has to check, which one is set.
    Since:
    5670 (creation), 6992 (extraction in this package)
    • Constructor Detail

      • ViewportData

        public ViewportData​(EastNorth center,
                            java.lang.Double scale)
        Constructs a new ViewportData.
        Parameters:
        center - Projected coordinates of the map center
        scale - Scale factor in east-/north-units per pixel
    • Method Detail

      • getCenter

        public EastNorth getCenter()
        Return the projected coordinates of the map center
        Returns:
        the center
      • getScale

        public java.lang.Double getScale()
        Return the scale factor in east-/north-units per pixel.
        Returns:
        the scale