Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.compat / org.gvsig.compat.api / src / main / java / org / gvsig / compat / print / PrintAttributes.java @ 40435

History | View | Annotate | Download (1.03 KB)

1
package org.gvsig.compat.print;
2

    
3
/**
4
 * Multi-platform interface to store print attributes.
5
 * Currently ionly supports the printing quality attribute
6
 * 
7
 * @author Juan Lucas Dominguez Rubio jldominguez at prodevelop.es
8
 *
9
 */
10
public interface PrintAttributes {
11
        
12
        /**
13
         * Constant to indicate a poor printing quality (useful for drafts, etc) 
14
         */
15
    public static final int PRINT_QUALITY_DRAFT = 0;
16
        /**
17
         * Constant to indicate a normal printing quality 
18
         */
19
        public static final int PRINT_QUALITY_NORMAL = 1;
20
        /**
21
         * Constant to indicate a high printing quality 
22
         */
23
        public static final int PRINT_QUALITY_HIGH = 2;
24
        
25
        /**
26
         * DPI standard values associated with indices
27
         */
28
    public static final int[] PRINT_QUALITY_DPI = { 72, 300, 600 };
29
        
30
        /**
31
         * Gets the print quality value for this object.
32
         * @return the print quality value for this object.
33
         */
34
        public int getPrintQuality();
35
        
36
        /**
37
         * Sets the print quality value for this object.
38
         * @param pq the new value for the print quality value
39
         */
40
        public void setPrintQuality(int pq);
41

    
42
}