root / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / MapContextDrawer.java @ 35778
History | View | Annotate | Download (1.3 KB)
1 |
package com.iver.cit.gvsig.fmap; |
---|---|
2 |
|
3 |
import java.awt.Graphics2D; |
4 |
import java.awt.image.BufferedImage; |
5 |
|
6 |
import javax.print.attribute.PrintRequestAttributeSet; |
7 |
|
8 |
import com.hardcode.gdbms.driver.exceptions.ReadDriverException; |
9 |
import com.iver.cit.gvsig.fmap.layers.FLayers; |
10 |
import com.iver.utiles.swing.threads.Cancellable; |
11 |
|
12 |
public interface MapContextDrawer { |
13 |
|
14 |
public void setMapContext(MapContext mapContext); |
15 |
public void setViewPort(ViewPort viewPort); |
16 |
public void draw(FLayers root, BufferedImage image, Graphics2D g, Cancellable cancel, |
17 |
double scale) throws ReadDriverException; |
18 |
|
19 |
|
20 |
/**
|
21 |
* Alternative draw method, used when DPI in real world is different,
|
22 |
* for example, when you create a map and zoom in or out in it.
|
23 |
* The method takes in consideration the "physical_dpi" especailly
|
24 |
* to draw fonts in correct size.
|
25 |
*
|
26 |
* @param root
|
27 |
* @param image
|
28 |
* @param g
|
29 |
* @param cancel
|
30 |
* @param scale
|
31 |
* @param physical_dpi
|
32 |
* @throws ReadDriverException
|
33 |
*/
|
34 |
public void draw(FLayers root, BufferedImage image, Graphics2D g, Cancellable cancel, |
35 |
double scale, double physical_dpi) throws ReadDriverException; |
36 |
public void print(FLayers root, Graphics2D g, Cancellable cancel, |
37 |
double scale, PrintRequestAttributeSet properties) throws ReadDriverException; |
38 |
public void dispose(); |
39 |
public void clean(); |
40 |
} |