public CanvasSetting(string name, TileSetting tileSetting, RenderSetting renderSetting, ZoomSetting zoomSetting) { _name = name; _tileSetting = tileSetting; _renderSetting = renderSetting; _zoomSetting = zoomSetting; }
private ZoomSetting GetZoomSetting() { _zoomSetting = new ZoomSetting(GetZoomStepByScales()); _subElem = _xElemRoot.Element("ZoomSetting"); _zoomSetting.Zoomfactor = JudgeDoubleIsNull(_subElem.Attribute("zoomfactor")); _zoomSetting.Zoomminpercent = JudgeDoubleIsNull(_subElem.Attribute("zoomminpercent")); _zoomSetting.Zoommaxpercent = JudgeDoubleIsNull(_subElem.Attribute("zoommaxpercent")); return(_zoomSetting); }
public void Dispose() { _canvasSetting = null; _zoomSetting = null; _renderSetting = null; _zoomStepByScale = null; _items = null; _xElemRoot = null; _subElem = null; }
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; }