|
@@ -125,7 +125,7 @@ public class HolonInformationPanel extends JPanel {
|
|
|
supplyChart.updatePieSeries("Partial supplied", partiallySuppliedAmount);
|
|
|
supplyChart.updatePieSeries("Not supplied", notSuppliedAmount);
|
|
|
supplyChart.updatePieSeries("No energy", noEnergyAmount);
|
|
|
- panelHolonObject.updateToolTips();
|
|
|
+ updateToolTips(panelHolonObject);
|
|
|
|
|
|
// UPDATE PRIORITYS
|
|
|
holeg.ui.view.information.FilterableGroupNode.PriorityCounts priorityCounts = decoratedGroupNode
|
|
@@ -138,7 +138,7 @@ public class HolonInformationPanel extends JPanel {
|
|
|
boolean hasPriority = priorityCounts.essential + priorityCounts.high + priorityCounts.medium
|
|
|
+ priorityCounts.low > 0;
|
|
|
priorityChart.updatePieSeries("No Data", hasPriority ? 0 : 1);
|
|
|
- panelPriority.updateToolTips();
|
|
|
+ updateToolTips(panelPriority);
|
|
|
|
|
|
// UPDATE PRODUCTION
|
|
|
float production = decoratedGroupNode.getProduction(stateFilter, priorityFilter);
|
|
@@ -148,7 +148,7 @@ public class HolonInformationPanel extends JPanel {
|
|
|
energyChart.updatePieSeries("Production", production);
|
|
|
energyChart.updatePieSeries("Consumption", consumption);
|
|
|
differenceEnergyLabelAmount.setText(FormatFloat.doubleFixedPlaces(1, difference));
|
|
|
- panelEnergy.updateToolTips();
|
|
|
+ updateToolTips(panelEnergy);
|
|
|
|
|
|
// UPDATE FLEXIBILITIES
|
|
|
int inUse = 0;
|
|
@@ -188,7 +188,7 @@ public class HolonInformationPanel extends JPanel {
|
|
|
flexibilityChart.updatePieSeries("Unavailable", unavailable);
|
|
|
boolean hasFlex = offered + inUse + onCooldown + notOffered + unavailable > 0;
|
|
|
flexibilityChart.updatePieSeries("No Data", hasFlex ? 0 : 1);
|
|
|
- panelFlexibility.updateToolTips();
|
|
|
+ updateToolTips(panelFlexibility);
|
|
|
|
|
|
// UPDATE ActiveInActive
|
|
|
int activeAmount = decoratedGroupNode.getAmountOfAktiveElementsFromHolonObjects(stateFilter, priorityFilter);
|
|
@@ -196,12 +196,17 @@ public class HolonInformationPanel extends JPanel {
|
|
|
- activeAmount;
|
|
|
activeChart.updatePieSeries("Active", activeAmount);
|
|
|
activeChart.updatePieSeries("Inactive", inactiveAmounts);
|
|
|
- panelActive.updateToolTips();
|
|
|
+ updateToolTips(panelActive);
|
|
|
|
|
|
this.revalidate();
|
|
|
this.repaint();
|
|
|
}
|
|
|
|
|
|
+ private void updateToolTips(XChartPanel<PieChart> chart) {
|
|
|
+ log.info("UpdatetoolTips");
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
private Optional<FilterableGroupNode> multiSelectionToFilterableGroupNode() {
|
|
|
FilterableGroupNode temp = new FilterableGroupNode(new GroupNode("Temp"),
|
|
|
control.getModel().getCurrentIteration());
|