Changeset 12391 in josm for trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
- Timestamp:
- 2017-06-11T13:57:28+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ScrollViewport.java
r12079 r12391 31 31 private static final int NO_SCROLL = 0; 32 32 33 /** 34 * Direction flag for upwards 35 */ 33 36 public static final int UP_DIRECTION = 1; 37 /** 38 * Direction flag for downwards 39 */ 34 40 public static final int DOWN_DIRECTION = 2; 41 /** 42 * Direction flag for left 43 */ 35 44 public static final int LEFT_DIRECTION = 4; 45 /** 46 * Direction flag for right 47 */ 36 48 public static final int RIGHT_DIRECTION = 8; 37 49 /** … … 240 252 } 241 253 254 /** 255 * Gets the current visible part of the view 256 * @return The current view rect 257 */ 242 258 public Rectangle getViewRect() { 243 259 return vp.getViewRect(); 244 260 } 245 261 262 /** 263 * Gets the size of the view 264 * @return The size 265 */ 246 266 public Dimension getViewSize() { 247 267 return vp.getViewSize(); 248 268 } 249 269 270 /** 271 * Gets the position (offset) of the view area 272 * @return The offset 273 */ 250 274 public Point getViewPosition() { 251 275 return vp.getViewPosition();
Note:
See TracChangeset
for help on using the changeset viewer.