All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
RefreshingHpBar

public class HpBar extends JComponent
See Also:
  • Field Details

    • defaultBgColor

      public static final Color defaultBgColor
    • defaultShieldColor

      public static final Color defaultShieldColor
    • defaultEmptyGradientColor

      public static final Color defaultEmptyGradientColor
    • defaultFullGradientColor

      public static final Color defaultFullGradientColor
    • defaultFullHpColor

      public static final Color defaultFullHpColor
    • defaultTextColor

      public static final Color defaultTextColor
  • Constructor Details

    • HpBar

      public HpBar()
  • Method Details

    • setTextMode

      public void setTextMode(BarFractionDisplayOption textMode)
    • setEmptyGradientColor

      public void setEmptyGradientColor(Color emptyGradientColor)
    • setFullGradientColor

      public void setFullGradientColor(Color fullGradientColor)
    • setShieldColor

      public void setShieldColor(Color shieldColor)
    • setFgTransparency

      public void setFgTransparency(int fgTransparency)
    • setBgTransparency

      public void setBgTransparency(int bgTransparency)
    • setFullHpColor

      public void setFullHpColor(Color fullHpColor)
    • setTextColor

      public void setTextColor(Color textColor)
    • setBackground

      public void setBackground(Color bg)
      Overrides:
      setBackground in class JComponent
    • setData

      public void setData(XivCombatant cbt, long diff)
    • setData

      public void setData(HitPoints hp, long diff, long shield)
    • setBounds

      public void setBounds(int x, int y, int width, int height)
      Overrides:
      setBounds in class Component
    • revalidate

      public void revalidate()
      Overrides:
      revalidate in class JComponent
    • validate

      public void validate()
      Overrides:
      validate in class Container
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • paintChildren

      protected void paintChildren(Graphics g)
      Overrides:
      paintChildren in class JComponent
    • paintComponent

      protected void paintComponent(Graphics graphics)
      Overrides:
      paintComponent in class JComponent