01: /*
02: * uDig - User Friendly Desktop Internet GIS client http://udig.refractions.net (C) 2004,
03: * Refractions Research Inc. This library is free software; you can redistribute it and/or modify it
04: * under the terms of the GNU Lesser General Public License as published by the Free Software
05: * Foundation; version 2.1 of the License. This library is distributed in the hope that it will be
06: * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
07: * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
08: */
09: package net.refractions.udig.project.render.displayAdapter;
10:
11: import java.awt.Dimension;
12:
13: /**
14: * The display area of a map.
15: *
16: * @author jeichar
17: * @since 0.3
18: */
19: public interface IMapDisplay {
20: /**
21: * The size of the display area.
22: *
23: * @return the size of the display area.
24: * @see Dimension
25: */
26: public Dimension getDisplaySize();
27:
28: /**
29: * Returns the width of the display area.
30: *
31: * @return the width of the display area.
32: */
33: public int getWidth();
34:
35: /**
36: * Returns the height of the display area.
37: *
38: * @return the height of the display area.
39: */
40: public int getHeight();
41:
42: /**
43: * Returns the dots per inch of the display.
44: *
45: * DPI is defined as the number of points per per linear inch. The DPI may be different in
46: * horizonal and vertical direction, in this case the average DPI will be returned
47: *
48: * @return the dots per inch of the display.
49: */
50: public int getDPI();
51: }
|