Class Perspective

  • All Implemented Interfaces:
    java.awt.event.ComponentListener, java.util.EventListener, IImageViewer

    public class Perspective
    extends java.awt.event.ComponentAdapter
    implements IImageViewer
    The default perspective image viewer class. This also handles (by default) unknown projections.
    Since:
    18246
    • Constructor Summary

      Constructors 
      Constructor Description
      Perspective()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ImageDisplay.VisRect getDefaultVisibleRectangle​(java.awt.Component component, java.awt.Image image)
      Get the default visible rectangle for the projection
      java.util.Set<Projections> getSupportedProjections()
      Get the supported projections for the image viewer
      void paintImage​(java.awt.Graphics g, java.awt.image.BufferedImage image, java.awt.Rectangle target, java.awt.Rectangle r)
      Paint the image
      • Methods inherited from class java.awt.event.ComponentAdapter

        componentHidden, componentMoved, componentResized, componentShown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.awt.event.ComponentListener

        componentHidden, componentMoved, componentResized, componentShown
    • Method Detail

      • paintImage

        public void paintImage​(java.awt.Graphics g,
                               java.awt.image.BufferedImage image,
                               java.awt.Rectangle target,
                               java.awt.Rectangle r)
        Description copied from interface: IImageViewer
        Paint the image
        Specified by:
        paintImage in interface IImageViewer
        Parameters:
        g - The graphics to paint on
        image - The image to paint
        target - The target area
        r - The visible rectangle