Interface IImageViewer

    • Method Detail

      • paintImage

        void paintImage​(Graphics g,
                        BufferedImage image,
                        Rectangle target,
                        Rectangle visibleRect)
        Paint the image
        Parameters:
        g - The graphics to paint on
        image - The image to paint
        target - The target area
        visibleRect - The visible rectangle
      • getDefaultVisibleRectangle

        ImageDisplay.VisRect getDefaultVisibleRectangle​(Component component,
                                                        Image image)
        Get the default visible rectangle for the projection
        Parameters:
        component - The component the image will be displayed in
        image - The image that will be shown
        Returns:
        The default visible rectangle
      • getRotation

        default Vector3D getRotation()
        Get the current rotation in the image viewer
        Returns:
        The rotation
        Since:
        18263
      • mouseDragged

        default void mouseDragged​(Point from,
                                  Point to,
                                  ImageDisplay.VisRect currentVisibleRect)
        Indicate that the mouse has been dragged to a point
        Parameters:
        from - The point the mouse was dragged from
        to - The point the mouse has been dragged to
        currentVisibleRect - The currently visible rectangle (this is updated by the default implementation)
      • checkAndModifyVisibleRectSize

        default void checkAndModifyVisibleRectSize​(Image image,
                                                   ImageDisplay.VisRect visibleRect)
        Check and modify the visible rect size to appropriate dimensions
        Parameters:
        visibleRect - the visible rectangle to update
        image - The image to use for checking
      • getMaxImageSize

        default Image getMaxImageSize​(ImageDisplay imageDisplay,
                                      Image image)
        Get the maximum image size that can be displayed
        Parameters:
        imageDisplay - The image display
        image - The image
        Returns:
        The maximum image size (may be the original image passed in)