Beispiel #1
0
 public CanvasSetting(string name, TileSetting tileSetting, RenderSetting renderSetting, ZoomSetting zoomSetting)
 {
     _name          = name;
     _tileSetting   = tileSetting;
     _renderSetting = renderSetting;
     _zoomSetting   = zoomSetting;
 }
Beispiel #2
0
 public void Dispose()
 {
     _canvasSetting   = null;
     _zoomSetting     = null;
     _renderSetting   = null;
     _zoomStepByScale = null;
     _items           = null;
     _xElemRoot       = null;
     _subElem         = null;
 }
Beispiel #3
0
 private RenderSetting GetRenderSetting()
 {
     _renderSetting = new RenderSetting();
     _subElem       = _xElemRoot.Element("RenderSetting");
     if (_subElem != null)
     {
         _renderSetting.BackColor        = GetColor(_subElem.Attribute("backcolor"));
         _renderSetting.EnabledParallel  = (_subElem.Attribute("enabledparallel") != null) ? Convert.ToBoolean(_subElem.Attribute("enabledparallel").Value) : false;
         _renderSetting.EnabledDummymode = (_subElem.Attribute("enableddummymode") != null) ? Convert.ToBoolean(_subElem.Attribute("enableddummymode").Value) : false;
     }
     return(_renderSetting);
 }
Beispiel #4
0
 public CanvasSetting(string name,
                      CacheSetting cacheSetting,
                      TileSetting tileSetting,
                      RenderSetting renderSetting,
                      ZoomSetting zoomSetting,
                      float xexpand,
                      float yexpand)
 {
     _name          = name;
     _cacheSetting  = cacheSetting;
     _tileSetting   = tileSetting;
     _renderSetting = renderSetting;
     _zoomSetting   = zoomSetting;
     _xexpand       = xexpand;
     _yexpand       = yexpand;
 }