Class AbstractPaintOperation

    • Field Detail

      • m_Owner

        protected Tool m_Owner
        the owner.
      • m_Enabled

        protected boolean m_Enabled
        whether the overlay is enabled.
    • Constructor Detail

      • AbstractPaintOperation

        public AbstractPaintOperation()
    • Method Detail

      • setOwner

        public void setOwner​(Tool value)
        Sets the owning tool.
        Specified by:
        setOwner in interface PaintOperation
        Parameters:
        value - the owner
      • getOwner

        public Tool getOwner()
        Returns the owning tool.
        Specified by:
        getOwner in interface PaintOperation
        Returns:
        the owner
      • setEnabled

        public void setEnabled​(boolean value)
        Sets whether the overlay is enabled.
        Specified by:
        setEnabled in interface PaintOperation
        Parameters:
        value - true if enabled
      • getEnabled

        public boolean getEnabled()
        Returns whether the overlay is enabled.
        Specified by:
        getEnabled in interface PaintOperation
        Returns:
        true if enabled
      • enabledTipText

        public String enabledTipText()
        Returns the tip text for this property.
        Specified by:
        enabledTipText in interface PaintOperation
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • doPerformPaint

        protected abstract void doPerformPaint​(Graphics2D g)
        Performs a paint operation.
        Parameters:
        g - the graphics context
      • performPaint

        public void performPaint​(Graphics2D g)
        Performs a paint operation.
        Specified by:
        performPaint in interface PaintOperation
        Parameters:
        g - the graphics context