add ISafeSerializationData
[mcs.git] / class / System.Drawing / Mainsoft.Drawing.Configuration.jvm / ResolutionConfiguration.cs
bloba62c270e935eaaa3fc74fee4775cfbdad29ee137
1 using System;
2 using System.Collections;
4 namespace Mainsoft.Drawing.Configuration
6 /// <summary>
7 /// Summary description for ResolutionConfiguration.
8 /// </summary>
9 public class ResolutionConfiguration : IComparable
11 string _imageFormat = "";
13 string _xResPath = "";
14 string _yResPath = "";
15 string _unitsTypePath = "";
17 string _xResDefault = "";
18 string _yResDefault = "";
19 string _unitsTypeDefault = "";
21 Hashtable _unitScale;
23 public ResolutionConfiguration(
24 string imageFormat,
25 string xresPath, string yresPath, string unitsTypePath,
26 string xresDefault, string yresDefault, string unitsTypeDefault,
27 Hashtable unitScale)
29 _imageFormat = imageFormat;
31 _xResPath = xresPath;
32 _yResPath = yresPath;
33 _unitsTypePath = unitsTypePath;
35 _xResDefault = xresDefault;
36 _yResDefault = yresDefault;
37 _unitsTypeDefault = unitsTypeDefault;
39 _unitScale = unitScale;
42 public string XResPath {
43 get { return _xResPath; }
45 public string XResDefault {
46 get { return _xResDefault; }
48 public string YResPath {
49 get { return _yResPath; }
51 public string YResDefault {
52 get { return _yResDefault; }
54 public string UnitsTypePath {
55 get { return _unitsTypePath; }
57 public string UnitsTypeDefault {
58 get { return _unitsTypeDefault; }
60 public string ImageFormat {
61 get { return _imageFormat; }
63 public Hashtable UnitsScale {
64 get { return _unitScale; }
67 #region IComparable Members
69 public int CompareTo(object obj) {
70 return _imageFormat.CompareTo(((ResolutionConfiguration)obj).ImageFormat);
73 #endregion