Class ResourceBarRenderer<X extends CurrentMaxPair>

java.lang.Object
gg.xp.xivsupport.gui.tables.renderers.ResourceBarRenderer<X>
All Implemented Interfaces:
TableCellRenderer
Direct Known Subclasses:
CdBarRenderer, DotBarRenderer, HpRenderer, MpRenderer

public abstract class ResourceBarRenderer<X extends CurrentMaxPair> extends Object implements TableCellRenderer
  • Field Details

  • Constructor Details

    • ResourceBarRenderer

      protected ResourceBarRenderer(Class<X> dataCls)
  • Method Details

    • getTableCellRendererComponent

      public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
      Specified by:
      getTableCellRendererComponent in interface TableCellRenderer
    • getBarColor

      protected abstract Color getBarColor(double percent, @NotNull X item)
    • getBorderColor

      protected Color getBorderColor(double percent, @NotNull X item, Color originalBg)
    • formatLabel

      protected void formatLabel(@NotNull X item)