public class NumberBackgroundColorTableCellRenderer extends BackgroundColorTableCellRenderer
TableCellRenderer that renders the
background of cells that contain a number with a color that is computed
from mapping the number to a color using a coloring function| Constructor and Description |
|---|
NumberBackgroundColorTableCellRenderer(double min,
double max,
DoubleFunction<? extends Color> colorFunction,
Function<? super Number,String> numberFormatter)
Creates a new instance.
|
public NumberBackgroundColorTableCellRenderer(double min,
double max,
DoubleFunction<? extends Color> colorFunction,
Function<? super Number,String> numberFormatter)
min - The minimum valuemax - The maximum valuecolorFunction - The function that maps values in the range (0,1)
to a color.numberFormatter - The formatter for numeric valuesCopyright © 2022. All rights reserved.