Class FPanelSup

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FPanelSup extends FPanel
Map mouse listener panel.
Author:
Hydrolien
See Also:
  • Field Details

    • cc2

      private CCase cc2
  • Constructor Details

    • FPanelSup

      public FPanelSup()
  • Method Details

    • build

      public void build()
      Build this.
      It add 2 mouse listener to update map description with case data, to move playingAnt & to swap playing ant.
      • If exited it set desc to "".
      • If released :
        • with BUTTON1 it swap playingAnt.
        • with BUTTON3 it move playingAnt.
      • If moved on an other Case, it update desc to newCase.toString().
    • updateSize

      public void updateSize()
      Update size to fit FPanelCarte.
    • updateSizeMax

      public void updateSizeMax()
      Update size to max one.
    • updateSizeMin

      public void updateSizeMin()
      Update size to 0,0.
    • paintComponent

      public void paintComponent(Graphics g)
      Paint nothing.
      Overrides:
      paintComponent in class FPanel
    • getCCase

      public CCase getCCase(MouseEvent e)
    • getCCase

      public CCase getCCase(int x, int y)
    • getCase

      public Case getCase(MouseEvent e)
    • mouseMovedUpdate

      public void mouseMovedUpdate(CCase cc, boolean force)
    • mouseMovedUpdate

      public void mouseMovedUpdate(CCase cc)
    • movePlayingAnt

      private void movePlayingAnt(MouseEvent e)
      Move the playing ant to selected Case.