Class FPanelRoundButtonsContainer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
FPanelIngameMenu, FPanelMusic.FPanelMusicButton

public class FPanelRoundButtonsContainer extends FPanel
A panel that contain a FButtonPGO list.
Author:
Hydrolien
See Also:
  • Field Details

    • buttonList

      protected fr.formiko.usual.structures.listes.Liste<FButtonPGO> buttonList
    • radius

      protected int radius
    • margin

      protected double margin
  • Constructor Details

    • FPanelRoundButtonsContainer

      public FPanelRoundButtonsContainer(int radius, double margin)
      Main constructor.
      Parameters:
      radius - radius of the buttons
      margin - space between 2 buttons that depend of button size
  • Method Details

    • updateSize

      protected void updateSize()
      Update panel size depending of buttons, radius & margin.
    • addButtons

      protected void addButtons()
      Function to override to add all buttons.
    • drawLine

      protected void drawLine(Graphics g, double x1, double y1, double x2, double y2)
      Draw a line.
      All double param should be in [0;1]. They will be multiply by the max size of the image.