Class CropOverlay

  • All Implemented Interfaces:
    Overlay

    public class CropOverlay
    extends java.lang.Object
    implements Overlay
    An Overlay is something that is drawn over a rendered image.
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      CropOverlay()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isVisible()  
      void paint​(java.awt.Graphics2D g, EditableImageRenderer imageRenderer)
      As the Graphics2D object passed is a copy of the original, this method can change attributes (e.g.
      void setVisible​(boolean visible)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CropOverlay

        public CropOverlay()
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics2D g,
                          EditableImageRenderer imageRenderer)
        Description copied from interface: Overlay
        As the Graphics2D object passed is a copy of the original, this method can change attributes (e.g. color, clip) without worrying about restoring them to their original values.
        Specified by:
        paint in interface Overlay
      • setVisible

        public void setVisible​(boolean visible)
      • isVisible

        public boolean isVisible()
        Specified by:
        isVisible in interface Overlay