Class BucketFill

    • Field Detail

      • m_RadioBackground

        protected JRadioButton m_RadioBackground
        the radio button for background.
      • m_RadioForeground

        protected JRadioButton m_RadioForeground
        the radio button for foreground.
      • m_TextZoom

        protected NumberTextField m_TextZoom
        the text field for the size.
      • m_Foreground

        protected boolean m_Foreground
        whether to fill in foreground.
      • m_Size

        protected int m_Size
        the current size.
      • m_Zoom

        protected double m_Zoom
        the current zoom.
    • Constructor Detail

      • BucketFill

        public BucketFill()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Returns:
        a description suitable for displaying in the gui
      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class AbstractTool
      • getName

        public String getName()
        The name of the tool.
        Returns:
        the name
      • getIcon

        public Icon getIcon()
        The icon of the tool.
        Returns:
        the icon
      • createCursor

        protected Cursor createCursor()
        Returns the mouse cursor to use.
        Specified by:
        createCursor in class AbstractTool
        Returns:
        the cursor
      • fill

        protected void fill​(Point p)
        Performs flood fill at the position.
        Parameters:
        p - the position to start
      • doApply

        protected void doApply()
        Applies the settings.
        Specified by:
        doApply in class AbstractTool