Changeset 9970 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2016-03-12T23:18:04+01:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/HelpAwareOptionPane.java
r9918 r9970 230 230 231 231 if (msg instanceof String) { 232 msg = new JMultilineLabel(( (String) msg), true);232 msg = new JMultilineLabel((String) msg, true); 233 233 } 234 234 -
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r9969 r9970 991 991 if (nextKeyIndex == rows[rows.length-1]) { 992 992 // no gap found, pick next or previous key in list 993 nextKeyIndex = (nextKeyIndex + 1 < rowCount ? nextKeyIndex + 1 : rows[0] - 1);993 nextKeyIndex = nextKeyIndex + 1 < rowCount ? nextKeyIndex + 1 : rows[0] - 1; 994 994 } else { 995 995 // gap found -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/sort/WayConnectionTypeCalculator.java
r9246 r9970 77 77 if (!RelationSortUtils.isOneway(m) && lastWct != null) { 78 78 wct.direction = determineDirection(i-1, lastWct.direction, i); 79 wct.linkPrev = (wct.direction != NONE);79 wct.linkPrev = wct.direction != NONE; 80 80 } 81 81 } -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r9231 r9970 388 388 Rectangle splitChildBounds = splitChild.getBounds(); 389 389 double minSplitChildWidth = minimumNodeSize(splitChild).getWidth(); 390 double splitChildWeight = (onlyShrinkWeightedComponents)390 double splitChildWeight = onlyShrinkWeightedComponents 391 391 ? splitChild.getWeight() 392 392 : (splitChildBounds.getWidth() / totalWidth); … … 434 434 Rectangle splitChildBounds = splitChild.getBounds(); 435 435 double minSplitChildHeight = minimumNodeSize(splitChild).getHeight(); 436 double splitChildWeight = (onlyShrinkWeightedComponents)436 double splitChildWeight = onlyShrinkWeightedComponents 437 437 ? splitChild.getWeight() 438 438 : (splitChildBounds.getHeight() / totalHeight); … … 499 499 layout2(splitChild, newSplitChildBounds); 500 500 } else if ((availableWidth > 0.0) && (splitChildWeight > 0.0)) { 501 double allocatedWidth = (splitChild.equals(lastWeightedChild))501 double allocatedWidth = splitChild.equals(lastWeightedChild) 502 502 ? availableWidth 503 503 : Math.rint(splitChildWeight * extraWidth); … … 537 537 layout2(splitChild, newSplitChildBounds); 538 538 } else if ((availableHeight > 0.0) && (splitChildWeight > 0.0)) { 539 double allocatedHeight = (splitChild.equals(lastWeightedChild))539 double allocatedHeight = splitChild.equals(lastWeightedChild) 540 540 ? availableHeight 541 541 : Math.rint(splitChildWeight * extraHeight); … … 616 616 Node splitChild = splitChildren.next(); 617 617 Divider dividerChild = 618 (splitChildren.hasNext()) ? (Divider) (splitChildren.next()) : null;618 splitChildren.hasNext() ? (Divider) (splitChildren.next()) : null; 619 619 620 620 double childWidth = 0.0; … … 650 650 Node splitChild = splitChildren.next(); 651 651 Divider dividerChild = 652 (splitChildren.hasNext()) ? (Divider) (splitChildren.next()) : null;652 splitChildren.hasNext() ? (Divider) splitChildren.next() : null; 653 653 654 654 double childHeight = 0.0; … … 762 762 if (root instanceof Divider) { 763 763 Divider divider = (Divider) root; 764 return (divider.getBounds().contains(x, y)) ? divider : null;764 return divider.getBounds().contains(x, y) ? divider : null; 765 765 } else if (root instanceof Split) { 766 766 Split split = (Split) root; -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r8840 r9970 336 336 MultiSplitLayout.Divider divider = getMultiSplitLayout().dividerAt(x, y); 337 337 if (divider != null) { 338 cursorID = (divider.isVertical()) ?338 cursorID = divider.isVertical() ? 339 339 Cursor.E_RESIZE_CURSOR : 340 340 Cursor.N_RESIZE_CURSOR;
Note:
See TracChangeset
for help on using the changeset viewer.