Class FloodFill

  • All Implemented Interfaces:
    Destroyable, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, Serializable

    public class FloodFill
    extends AbstractColorDrawOperation
    Performs a flood-fill starting at the given position. The position also determines the color to replace.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -color <java.awt.Color> (property: color)
        The color of the pixel.
        default: #000000
     
    -x <int> (property: X)
        The X of the starting position of the flood-fill.
        default: 1
        minimum: 1
     
    -y <int> (property: Y)
        The Y of the start position of the flood-fill.
        default: 1
        minimum: 1
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_X

        protected int m_X
        the X position.
      • m_Y

        protected int m_Y
        the Y position.
    • Constructor Detail

      • FloodFill

        public FloodFill()
    • Method Detail

      • setX

        public void setX​(int value)
        Sets the X of the start position.
        Parameters:
        value - the position, 1-based
      • getX

        public int getX()
        Returns the X of the start position.
        Returns:
        the position, 1-based
      • XTipText

        public String XTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setY

        public void setY​(int value)
        Sets the Y of the start position.
        Parameters:
        value - the position, 1-based
      • getY

        public int getY()
        Returns the Y of the start position.
        Returns:
        the position, 1-based
      • YTipText

        public String YTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.