summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/kitfox/salamander/svg/coordSystems/SVGPreserveAspectRatio.java
blob: 5db5c16aded46e1df8cfa3dd5bffe400d6e7d2c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * SVGPreserveAspectRatio.java
 *
 * Created on April 12, 2007, 3:47 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.kitfox.salamander.svg.coordSystems;

import com.kitfox.salamander.svg.basic.SVGDataType;

/**
 * The SVGPreserveAspectRatio  interface corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements.
 * @author kitfox
 */
public interface SVGPreserveAspectRatio extends SVGDataType
{
    public static enum Type {
        /**
         *  	The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
         */
        UNKNOWN, 
        /**
         * 	  	Corresponds to value 'none' for attribute preserveAspectRatio.
         */
        NONE, 
        /**
         * Corresponds to value 'xMinYMin' for attribute preserveAspectRatio.
         */
    X_MIN_Y_MIN, 
        /**
         * Corresponds to value 'xMidYMin' for attribute preserveAspectRatio.
         */
    X_MID_Y_MIN, 
        /**
         * 	  	Corresponds to value 'xMaxYMin' for attribute preserveAspectRatio.
         */
    X_MAX_Y_MIN, 
        /**
         * Corresponds to value 'xMinYMid' for attribute preserveAspectRatio.
         */
    X_MIN_Y_MID, 
        /**
         * Corresponds to value 'xMidYMid' for attribute preserveAspectRatio.
         */
    X_MID_Y_MID, 
        /**
         * 	  	Corresponds to value 'xMaxYMid' for attribute preserveAspectRatio.
         */
    X_MAX_Y_MID, 
        /**
         * 	  	Corresponds to value 'xMinYMax' for attribute preserveAspectRatio.
         */
    X_MIN_Y_MAX, 
        /**
         * Corresponds to value 'xMidYMax' for attribute preserveAspectRatio.
         */
    X_MID_Y_MAX, 
        /**
         * 	  	Corresponds to value 'xMaxYMax' for attribute preserveAspectRatio.
         */
    X_MAX_Y_MAX, 
    };
    
    public static enum MeetOrSlice {
        /**
         * The enumeration was set to a value that is not one of predefined types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type.
         */
        UNKNOWN, 
        /**
         *  	Corresponds to value 'meet' for attribute preserveAspectRatio.
         */
        MEET, 
        /**
         * 	  	Corresponds to value 'slice' for attribute preserveAspectRatio.
         */
        SLICE};
    
    /**
     * The type of the alignment value as specified by one of the constants specified above.
     */
    public Type getAlign();
    /**
     * The type of the meet-or-slice value as specified by one of the constants specified above.
     */
    public MeetOrSlice getMeetOrSlice();
}