Last change
on this file was 14120, checked in by Don-vip, 6 years ago |
see #15229 - deprecate all Main methods related to projections. New ProjectionRegistry class
|
-
Property svn:eol-style
set to
native
|
File size:
788 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.projection;
|
---|
3 |
|
---|
4 | import org.openstreetmap.josm.data.Bounds;
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * Handles projection change events by keeping a clean state of current bounds.
|
---|
8 | * @since 14120
|
---|
9 | */
|
---|
10 | public interface ProjectionBoundsProvider {
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Returns the bounds for the current projection. Used for projection events.
|
---|
14 | * @return the bounds for the current projection
|
---|
15 | * @see #restoreOldBounds
|
---|
16 | */
|
---|
17 | Bounds getRealBounds();
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Restore clean state corresponding to old bounds after a projection change event.
|
---|
21 | * @param oldBounds bounds previously returned by {@link #getRealBounds}, before the change of projection
|
---|
22 | * @see #getRealBounds
|
---|
23 | */
|
---|
24 | void restoreOldBounds(Bounds oldBounds);
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.