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.
        a description suitable for displaying in the gui
      • initialize

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

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

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

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

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

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