Class Eraser

    • Field Detail

      • m_RadioRound

        protected JRadioButton m_RadioRound
        the radio button for round shape.
      • m_RadioSquare

        protected JRadioButton m_RadioSquare
        the radio button for square shape.
      • m_TextSize

        protected NumberTextField m_TextSize
        the text field for the size.
      • m_Round

        protected boolean m_Round
        whether the shape is currently round.
      • m_Size

        protected int m_Size
        the current size.
    • Constructor Detail

      • Eraser

        public Eraser()
    • 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
      • doDrawShape

        protected void doDrawShape​(List<Point> points)
        Draws the currently selected shape at the specified locations.
        Specified by:
        doDrawShape in class AbstractShapeTool
        Parameters:
        points - the locations
      • doApply

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