Class NavigationModel.ViewportState

  • Enclosing class:
    NavigationModel

    public static class NavigationModel.ViewportState
    extends java.lang.Object
    Representation of a viewport's state, which manifests itself in x and y translation, width and height, as well as a contents transform.
    • Constructor Detail

      • ViewportState

        public ViewportState​(double translateX,
                             double translateY,
                             double width,
                             double height,
                             AffineTransform contentsTransform)
        Creates a new NavigationModel.ViewportState for the given translation, size, and transform.
        Parameters:
        translateX - The horizontal translation.
        translateY - The vertical translation.
        width - The viewport width.
        height - The viewport height.
        contentsTransform - The contents transform.