Class FPanelPanelMove

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FPanelPanelMove extends FPanel
Panel that make map move.
Author:
Hydrolien
See Also:
  • Field Details

    • lPanelToMove

      private fr.formiko.usual.structures.listes.Liste<FPanel> lPanelToMove
    • th

    • spaceInX

      private int spaceInX
    • spaceInY

      private int spaceInY
    • thickness

      private int thickness
  • Constructor Details

    • FPanelPanelMove

      public FPanelPanelMove()
      Main empty constructor.
  • Method Details

    • addSubPanel

      public void addSubPanel(FPanel panelToMove)
    • getSpaceInX

      public int getSpaceInX()
    • setSpaceInX

      public void setSpaceInX(int x)
    • getSpaceInY

      public int getSpaceInY()
    • setSpaceInY

      public void setSpaceInY(int x)
    • build

      public void build()
      Initialize all sub components & variables.
    • setOver

      public void setOver(boolean inX, boolean up, double speed)
      Launch or stop move in thread.
      Parameters:
      inX - true if we are moving in x, false if we are moving in y
      up - true if windows should up in X or in Y
      speed - moving speed in [0;2]
    • moveAllSubPanel

      public void moveAllSubPanel(int stepInX, int stepInY)
      Move all sub panel in x & y.
      Parameters:
      stepInX - moving speed in x
      stepInY - moving speed in y
    • centerOver

      public void centerOver(int x, int y)
      Center all sub panel in x & y.
      Parameters:
      x - x that need to be on the center
      y - y that need to be on the center
    • setLocationSubPanel

      public void setLocationSubPanel(FPanel panelToMove, int x, int y)
      Set location of a sub panel in x & y.
      Parameters:
      panelToMove - panel to move
      x - new x
      y - new y