Beispiel #1
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            this.Release();

            _textSymbol = stream.Load("textSymbol", null) as ITextSymbol;
            _lineSymbol = stream.Load("lineSymbol", null) as ILineSymbol;
            _capType    = (lineCapType)stream.Load("capType", lineCapType.ArrowLine);
            _format     = (string)stream.Load("format", String.Empty);
        }
Beispiel #2
0
 public override void Load(gView.Framework.IO.IPersistStream stream)
 {
     base.Load(stream);
     _text = (string)stream.Load("Text", "Text");
     SimpleTextSymbol sym = stream.Load("ISymbol", null) as SimpleTextSymbol;
     if (sym != null)
     {
         _symbol.Release();
         _symbol = sym;
     }
 }
Beispiel #3
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _name     = (string)stream.Load("name", String.Empty);
            _guid     = new Guid((string)stream.Load("guid", new Guid()));
            _dataType = (GraphWeightDataType)stream.Load("datatype", (int)GraphWeightDataType.Double);

            IGraphWeightFeatureClass gwfc;

            while ((gwfc = (IGraphWeightFeatureClass)stream.Load("IGraphWeightFeatureClass", null, new GraphWeightFeatureClass())) != null)
            {
                _gwfcs.Add(gwfc);
            }
        }
Beispiel #4
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _fieldname     = (string)stream.Load("Fieldname");
            _sizeField     = (string)stream.Load("Sizefield");
            _fontField     = (string)stream.Load("Fontfield");
            _expression    = (string)stream.Load("Expression", "");
            _useExpression = (bool)stream.Load("UseExpression", false);

            _symbol = (ITextSymbol)stream.Load("Symbol");

            _howManyLabels = (howManyLabels)stream.Load("howManyLabels", (int)howManyLabels.one_per_feature);
            _labelPriority = (labelPriority)stream.Load("labelPriority", (int)labelPriority.normal);
            _lineLabelling = (CartographicLineLabeling)stream.Load("lineLabelling", (int)CartographicLineLabeling.Parallel);

            _symbolRotation = (SymbolRotation)stream.Load("SymbolRotation", _symbolRotation, _symbolRotation);
        }
Beispiel #5
0
        public Task <bool> LoadAsync(gView.Framework.IO.IPersistStream stream)
        {
            _directory = (string)stream.Load("Directory");
            if (_directory == null)
            {
                _directory = "";
            }

            return(Task.FromResult(true));
        }
Beispiel #6
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _values.Clear();
            object o;

            while ((o = stream.Load("Value", null)) != null)
            {
                _values.Add(o);
            }
        }
Beispiel #7
0
        public void Load(gView.Framework.IO.IPersistStream stream)
        {
            _dataset = null;
            string connectionString = (string)stream.Load("ConnectionString", String.Empty);

            if (connectionString != String.Empty)
            {
                _dataset = new MapServerDataset();
                _dataset.ConnectionString = connectionString;
            }
        }
Beispiel #8
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _fcId      = (int)stream.Load("fcid", -1);
     _fieldName = (string)stream.Load("fieldname", String.Empty);
     _calc      = stream.Load("calc", null) as ISimpleNumberCalculation;
 }
Beispiel #9
0
 public override void Load(gView.Framework.IO.IPersistStream stream)
 {
     base.Load(stream);
     this.Symbol = (ISymbol)stream.Load("ISymbol", this.Symbol);
 }
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _multiplicator = (double)stream.Load("multiplicator", 1.0);
     _zeroValue     = (double)stream.Load("zvr", (double)1.0);
 }
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _zeroValue = (double)stream.Load("zvr", (double)1.0);
 }
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _constValue = (double)stream.Load("constvalue", (double)1.0);
 }
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _function = (string)stream.Load("func", "x");
 }
Beispiel #14
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     this.DbConnectionString = (gView.Framework.Db.DbConnectionString)stream.Load("DbConnectionString", null, new DbConnectionString());
     this.SqlStatement       = (string)stream.Load("SqlStatement", String.Empty);
 }
Beispiel #15
0
 public void Load(gView.Framework.IO.IPersistStream stream)
 {
     _minValue = (double)stream.Load("minValue", double.MinValue);
     _maxValue = (double)stream.Load("maxValue", double.MaxValue);
 }