Class PainterFlashAnimationEditor

    • Constructor Detail

      • PainterFlashAnimationEditor

        public PainterFlashAnimationEditor()
    • Method Detail

      • isActive

        public boolean isActive()
        Checks, if the painter is active.
        Specified by:
        isActive in interface Painter
        Overrides:
        isActive in class PainterBase
        Returns:
        true, if selected level is a Flash animation.
      • paintModeButton

        protected void paintModeButton​(Graphics g)
        Paints the mode button.
        Parameters:
        g - The graphics
      • paintFlashAnimation

        protected void paintFlashAnimation​(Graphics g,
                                           FlashAnimationInfo fai)
        Draws the planet images and texts of the FlashInformationInfo.
        Parameters:
        g - The graphics.
        fai - The FlashAnimationInfo.
      • paintLine

        protected void paintLine​(Graphics g,
                                 FlashAnimationInfo fai)
        Paints the fix line and sun images.
        Parameters:
        g - The Graphics.
        fai -
      • keyPressed

        public boolean keyPressed​(KeyEvent e)
        Processes keys in textmode.
        Specified by:
        keyPressed in interface InputController
        Parameters:
        e - The event.
        Returns:
        true, if event is handled.
      • addText

        protected void addText()
      • mouseClicked

        public boolean mouseClicked​(MouseEvent e)
        Description copied from interface: InputController
        Reacts to mouse events.
        Specified by:
        mouseClicked in interface InputController
        Parameters:
        e - The mouse event.
        Returns:
        true, if the event is handled by this InputController.
      • handleSelectionClick

        protected void handleSelectionClick()
      • mouseMoved

        public boolean mouseMoved​(MouseEvent e)
        Description copied from interface: InputController
        Reacts to mouse move events from the gui.
        Specified by:
        mouseMoved in interface InputController
        Parameters:
        e - The mouse event.
        Returns:
        true, if the event is handled by this InputController.
      • attachToCenter

        protected void attachToCenter()
        Checks if mouse pos is nearly centered and sets mousepos to 0/0.
      • getSelectedColor

        public int getSelectedColor()
        Gets the selected color of the color chooser.
        Returns:
        The selected color.