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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
formatLabel
(X item) protected abstract Color
getBarColor
(double percent, double percentChange, X item) protected abstract Color
getBorderColor
(double percent, double percentChange, X item, Color originalBg) protected abstract Color
getMovementBarColor
(double percent, double percentChange, X item) getTableCellRendererComponent
(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
-
Field Details
-
bar
-
-
Constructor Details
-
ResourceBarRendererWithMovement
-
-
Method Details
-
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) - Specified by:
getTableCellRendererComponent
in interfaceTableCellRenderer
-
getBarColor
-
getMovementBarColor
-
getBorderColor
-
formatLabel
-