Class FLabel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class FLabel extends JLabel
Personalized JLabel.
It use Formiko color & font. It is uneditable.
Author:
Hydrolien
See Also:
  • Constructor Details

    • FLabel

      public FLabel(int x, int y)
      Main constructor.
      It use Formiko color & font.
      Parameters:
      x - the preferred width
      y - the preferred height
    • FLabel

      public FLabel()
      Secondary constructor.
      It set size to default : 500xgetDimY()
    • FLabel

      public FLabel(String s)
      Secondary constructor.
      It dont set size, but set text.
      Parameters:
      s - the text to use.
  • Method Details

    • setTexte

      public void setTexte(String s)
      set text or hide this.
      It will hide this if text is "" or the description of an empty FButton.
      Parameters:
      s - the text to use.
    • setTexte

      public void setTexte()
      set empty text
    • setText

      public void setText(String s)
      Overrides:
      setText in class JLabel
    • setFondTransparent

      public void setFondTransparent()
    • setFontText

      public void setFontText(Font fon)
    • setFontText

      public void setFontText()
    • setBounds

      public void setBounds(int a, int b, int c)
    • getDimY

      public static int getDimY()
    • setCentered

      public void setCentered()
    • setSize

      public void setSize(int w)
    • paintComponent

      public void paintComponent(Graphics gTemp)
      Paint function with a debug tool.
      Overrides:
      paintComponent in class JComponent
    • updateSize

      public void updateSize()
      Update the size of this depending of text.