Class FPanelInfoText

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FPanelInfoText extends FPanel
A simple text Pannel.
Author:
Hydrolien
See Also:
  • Field Details

    • nbrDeDesc

      private int nbrDeDesc
    • descs

      private FLabel[] descs
    • yPi

      private int yPi
  • Constructor Details

    • FPanelInfoText

      public FPanelInfoText(List<String> gs, int width, boolean withAlpha, Font font)
      Main constructor.
      It create a text panel from a list of String.
      Parameters:
      gs - list of String to paint
      width - with of this & max width of small text item
      withAlpha - if true set small text item color with alpha
      font - Font to get font size to use & use it on the text item
    • FPanelInfoText

      public FPanelInfoText(List<String> gs, int width, boolean withAlpha)
      Secondary constructor.
      It create a text panel from a list of String.
      Font will be default 1.
      Parameters:
      gs - list of String to paint
      width - with of this & max width of small text item
      withAlpha - if true set small text item color with alpha
    • FPanelInfoText

      public FPanelInfoText(List<String> gs)
      Secondary constructor.
      It create a text panel from a list of String.
      Parameters:
      gs - list of String to paint
    • FPanelInfoText

      public FPanelInfoText(Fourmi f, int width)
      Secondary constructor.
      It create a text panel from an ant description.
      Parameters:
      f - the ant to describe
      width - with of this & max width of small text item
    • FPanelInfoText

      public FPanelInfoText(Fourmi f)
      Secondary constructor.
      It create a text panel from an ant description.
      Parameters:
      f - the ant to describe
  • Method Details

    • length

      public int length()
    • getXPi

      public int getXPi()
    • getYPi

      public int getYPi()
    • toString

      public String toString()
      Standard toString(), return a String that describe this.
      Overrides:
      toString in class FPanel