2025-04-07 18:08:59 +03:00
|
|
|
package _VisualDVM.Visual.Tables;
|
|
|
|
|
import Common.MainModule_;
|
|
|
|
|
import Common.Visual.Fonts.VisualiserFonts;
|
|
|
|
|
import Common.Visual.Tables.RendererCell;
|
|
|
|
|
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
public class RendererDiff extends RendererCell<Integer> {
|
|
|
|
|
@Override
|
|
|
|
|
public Integer Init(JTable table, Object value, int row, int column) {
|
|
|
|
|
return (Integer) value;
|
|
|
|
|
}
|
|
|
|
|
public void Display() {
|
2025-04-21 15:27:20 +03:00
|
|
|
if (value != null) {
|
|
|
|
|
Font font_ = MainModule_.instance.getUI().getTheme().Fonts.get(
|
|
|
|
|
value > 0 ? VisualiserFonts.BadState : VisualiserFonts.TreePlain
|
2025-04-07 18:08:59 +03:00
|
|
|
);
|
2025-04-21 15:27:20 +03:00
|
|
|
setFont(font_);
|
2025-04-07 18:08:59 +03:00
|
|
|
setText(String.valueOf(value));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|