Class ResourceBarRendererWithMovement<X extends CurrentMaxPredicted>

java.lang.Object
gg.xp.xivsupport.gui.tables.renderers.ResourceBarRendererWithMovement<X>
All Implemented Interfaces:
TableCellRenderer
Direct Known Subclasses:
HpPredictedRenderer

public abstract class ResourceBarRendererWithMovement<X extends CurrentMaxPredicted> extends Object implements TableCellRenderer
Bar that shows "movement", like that white are on a bar that shows how much HP you just lost.
  • Field Details

  • Constructor Details

    • ResourceBarRendererWithMovement

      protected ResourceBarRendererWithMovement(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, double percentChange, @NotNull X item)
    • getMovementBarColor

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

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

      protected void formatLabel(@NotNull X item)