Class AbstractDrawOperation

    • Field Detail

      • m_Owner

        protected Actor m_Owner
        the owner of the operation.
    • Constructor Detail

      • AbstractDrawOperation

        public AbstractDrawOperation()
    • Method Detail

      • setOwner

        public void setOwner​(Actor value)
        Sets the owner.
        Parameters:
        value - the owning actor
      • getOwner

        public Actor getOwner()
        Returns the owner.
        Returns:
        the owner, null if none set
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.

        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(BufferedImageContainer image)
        Checks the image.

        Default implementation only checks whether an owner and image is present.
        Parameters:
        image - the image to check
        Returns:
        null if OK, otherwise error message
      • doDraw

        protected abstract String doDraw​(BufferedImageContainer image)
        Performs the actual draw operation.
        Parameters:
        image - the image to draw on
        Returns:
        null if OK, otherwise error message
      • draw

        public String draw​(BufferedImageContainer image)
        Performs the draw operation on the image.
        Parameters:
        image - the image to draw on
        Returns:
        null if OK, otherwise error message