Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/gui/MultiSplitLayout.java
- Timestamp:
- 2009-11-24T10:45:04+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MultiSplitLayout.java
r2227 r2512 182 182 public boolean getFloatingDividers() { return floatingDividers; } 183 183 184 185 184 /** 186 185 * If true, Leaf node bounds match the corresponding component's … … 197 196 firePCS("floatingDividers", oldFloatingDividers, floatingDividers); 198 197 } 199 200 198 201 199 /** … … 241 239 return null; 242 240 } 243 244 241 245 242 private Dimension preferredComponentSize(Node node) { … … 335 332 } 336 333 337 338 334 private Rectangle boundsWithYandHeight(Rectangle bounds, double y, double height) { 339 335 Rectangle r = new Rectangle(); … … 347 343 return r; 348 344 } 349 350 345 351 346 private void minimizeSplitBounds(Split split, Rectangle bounds) { … … 364 359 split.setBounds(splitBounds); 365 360 } 366 367 361 368 362 private void layoutShrink(Split split, Rectangle bounds) { … … 483 477 } 484 478 485 486 479 private void layoutGrow(Split split, Rectangle bounds) { 487 480 Rectangle splitBounds = split.getBounds(); … … 574 567 } 575 568 576 577 569 /* Second pass of the layout algorithm: branch to layoutGrow/Shrink 578 570 * as needed. … … 604 596 } 605 597 } 606 607 598 608 599 /* First pass of the layout algorithm. … … 782 773 } 783 774 784 785 775 private Divider dividerAt(Node root, int x, int y) { 786 776 if (root instanceof Divider) { … … 853 843 } 854 844 855 856 845 /** 857 846 * Base class for the nodes that model a MultiSplitLayout. … … 1072 1061 } 1073 1062 } 1074 1075 1063 1076 1064 /** … … 1133 1121 } 1134 1122 1135 1136 1123 /** 1137 1124 * Models a single vertical/horiztonal divider. … … 1163 1150 } 1164 1151 } 1165 1166 1152 1167 1153 private static void throwParseException(StreamTokenizer st, String msg) throws Exception { … … 1329 1315 } 1330 1316 1331 1332 1317 private static void printModel(String indent, Node root) { 1333 1318 if (root instanceof Split) {
Note:
See TracChangeset
for help on using the changeset viewer.
