|
@@ -727,8 +727,15 @@ public class UpperNodeCanvas extends JPanel implements MouseListener, MouseMotio
|
|
|
g2.drawLine(obj.getPosition().x, obj.getPosition().y, (upperNode.getLeftBorder() >> 1),
|
|
|
(int) (scalediv20 + 5 + (50 + scalediv20 + 10) * count) + 25);
|
|
|
if (showedInformation[0]) {
|
|
|
+ if (ed.getCapacity() == -1) {
|
|
|
+ maxCap = Character.toString('\u221e');
|
|
|
+ } else if (ed.getCapacity() == -2) {
|
|
|
+ maxCap = "???";
|
|
|
+ } else {
|
|
|
+ maxCap = String.valueOf(ed.getCapacity());
|
|
|
+ }
|
|
|
if (ed.getConnected() == 0 || ed.getConnected() == 1) {
|
|
|
- g2.drawString(ed.getFlow() + "/" + ed.getCapacity(),
|
|
|
+ g2.drawString(ed.getFlow() + "/" + maxCap,
|
|
|
(obj.getPosition().x + (upperNode.getLeftBorder() >> 1)) / 2,
|
|
|
(obj.getPosition().y + (int) (scalediv20 + 5 + (50 + scalediv20 + 10) * count)
|
|
|
+ 25) / 2);
|