Commit 90fd5813 authored by Mirko Serbak's avatar Mirko Serbak
Browse files

font, update and display string fixes

parent 0ffd9627
......@@ -30,11 +30,13 @@ public class ImpactMetricsPanel extends JPanel implements ChimpLayout {
// reasoner has classified ontology (also synchronize action)
case ONTOLOGY_CLASSIFIED:
// initReasoner();
updateDisplayPanel();
// updateDisplayPanel();
break;
default:
break;
}
updateDisplayPanel();
};
private static final String title = "Impact";
......@@ -71,8 +73,11 @@ public class ImpactMetricsPanel extends JPanel implements ChimpLayout {
public void updateDisplayPanel() {
displayPanel.removeAll();
JLabel reasonerStatusLabel = new JLabel(reasonerManager.getReasonerStatus().getDescription());
displayPanel.add(reasonerStatusLabel);
String statusString = reasonerManager.getReasonerStatus().getDescription();
if (reasonerManager.getReasonerStatus() == ReasonerStatus.INITIALIZED) {
statusString += " and the ontology is consistent";
}
displayPanel.add(new JLabel(statusString));
// if (reasonerManager.getReasonerStatus() == ReasonerStatus.INITIALIZED) {
// reasoner.inferAxioms();
// }
......
......@@ -17,9 +17,9 @@ public class StandardMetricsTable extends JPanel implements ChimpLayout {
private boolean displayAbsoluteChange = true;
private boolean displayCumulativeChange = true;
private final String percentageString = "%";
private final String absoluteString = "abs";
private final String cumulativeString = "cum";
private final String lastString = "last";
private final String absoluteString = "Absolute";
private final String cumulativeString = "All Changes";
private final String lastString = "Last Change";
public StandardMetricsTable(String title, List<Metric> metrics) {
this.metrics = metrics;
......@@ -142,13 +142,13 @@ class StandardMetricRow implements ChimpLayout {
metricLabel.setBackground(FONT_COLOR);
}
} else {
newColor = GREY_FONT_COLOR;
newColor = FONT_COLOR;
}
metricChange.setText("");
}
} else {
Number value = metric.getValue();
newColor = value != null && value.doubleValue() == 0 ? GREY_FONT_COLOR : FONT_COLOR;
newColor = value != null && value.doubleValue() == 0 ? FONT_COLOR : FONT_COLOR;
metricChange.setText("");
metricLabel.setForeground(newColor);
metricLabel.setBackground(newColor);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment