Console vs TS usability #1757
This commit is contained in:
parent
5515dc1abe
commit
a9608f9bd2
|
@ -88,7 +88,7 @@ public class GaugesPanel {
|
||||||
|
|
||||||
prepareMessagesPanel();
|
prepareMessagesPanel();
|
||||||
|
|
||||||
lowerRpmPanel.add(new RpmLabel(uiContext,15).getContent());
|
lowerRpmPanel.add(new RpmLabel(uiContext,15, false).getContent());
|
||||||
|
|
||||||
int rows = config.getIntProperty(GAUGES_ROWS, DEFAULT_ROWS);
|
int rows = config.getIntProperty(GAUGES_ROWS, DEFAULT_ROWS);
|
||||||
int columns = config.getIntProperty(GAUGES_COLUMNS, DEFAULT_COLUMNS);
|
int columns = config.getIntProperty(GAUGES_COLUMNS, DEFAULT_COLUMNS);
|
||||||
|
|
|
@ -26,12 +26,17 @@ public class RpmLabel {
|
||||||
}
|
}
|
||||||
|
|
||||||
public RpmLabel(UIContext uiContext, int size) {
|
public RpmLabel(UIContext uiContext, int size) {
|
||||||
|
this(uiContext, size, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public RpmLabel(UIContext uiContext, int size, boolean withCaption) {
|
||||||
String initialLabel = uiContext.getLinkManager().isLogViewer() ? "LOG" : NO_CONNECTION;
|
String initialLabel = uiContext.getLinkManager().isLogViewer() ? "LOG" : NO_CONNECTION;
|
||||||
rpmValue.setText(initialLabel);
|
rpmValue.setText(initialLabel);
|
||||||
rpmValue.setForeground(Color.red);
|
rpmValue.setForeground(Color.red);
|
||||||
|
|
||||||
content.setBorder(BorderFactory.createLineBorder(Color.white));
|
content.setBorder(BorderFactory.createLineBorder(Color.white));
|
||||||
content.add(rpmCaption);
|
if (withCaption)
|
||||||
|
content.add(rpmCaption);
|
||||||
content.add(rpmValue, "grow, wrap");
|
content.add(rpmValue, "grow, wrap");
|
||||||
|
|
||||||
RpmModel.getInstance().addListener(new RpmModel.RpmListener() {
|
RpmModel.getInstance().addListener(new RpmModel.RpmListener() {
|
||||||
|
|
Loading…
Reference in New Issue