Changeset 6889 in josm for trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
- Timestamp:
- 2014-02-27T01:41:49+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
r6828 r6889 31 31 * @return the geometry object 32 32 */ 33 static public WindowGeometry centerOnScreen(Dimension extent) {33 public static WindowGeometry centerOnScreen(Dimension extent) { 34 34 return centerOnScreen(extent, "gui.geometry"); 35 35 } … … 44 44 * @return the geometry object 45 45 */ 46 static public WindowGeometry centerOnScreen(Dimension extent, String preferenceKey) {46 public static WindowGeometry centerOnScreen(Dimension extent, String preferenceKey) { 47 47 Rectangle size = preferenceKey != null ? getScreenInfo(preferenceKey) 48 48 : getFullScreenInfo(); … … 62 62 * @return the geometry object 63 63 */ 64 static public WindowGeometry centerInWindow(Component reference, Dimension extent) {64 public static WindowGeometry centerInWindow(Component reference, Dimension extent) { 65 65 Window parentWindow = null; 66 66 while(reference != null && ! (reference instanceof Window) ) { … … 82 82 * Exception thrown by the WindowGeometry class if something goes wrong 83 83 */ 84 static public class WindowGeometryException extends Exception {84 public static class WindowGeometryException extends Exception { 85 85 public WindowGeometryException(String message, Throwable cause) { 86 86 super(message, cause); … … 178 178 } 179 179 180 static public WindowGeometry mainWindow(String preferenceKey, String arg, boolean maximize) {180 public static WindowGeometry mainWindow(String preferenceKey, String arg, boolean maximize) { 181 181 Rectangle screenDimension = getScreenInfo("gui.geometry"); 182 182 if (arg != null) {
Note:
See TracChangeset
for help on using the changeset viewer.