Class ExcludedAreas


  • public class ExcludedAreas
    extends java.lang.Object
    The area that will be excluded, masked, in the image.
    • Constructor Detail

      • ExcludedAreas

        public ExcludedAreas()
        Create empty instance of the ExcludedAreas.
      • ExcludedAreas

        public ExcludedAreas​(java.util.List<Rectangle> excluded)
        Create instance of the ExcludedAreas with provided Rectangle areas.
        Parameters:
        excluded - provided collection of the Rectangle objects.
    • Method Detail

      • contains

        public boolean contains​(java.awt.Point point)
        Check if this Point contains in the excluded collection of the Rectangle.
        Parameters:
        point - the Point object to be checked.
        Returns:
        true if this Point contains in areas from excluded.
      • getExcluded

        public java.util.List<Rectangle> getExcluded()