Exemplo n.º 1
0
            protected virtual BarGraphPlotStyle SDeserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                BarGraphPlotStyle s = null != o ? (BarGraphPlotStyle)o : new BarGraphPlotStyle(info);

                s._usePhysicalBaseValue = info.GetBoolean("UsePhysicalBaseValue");
                s._baseValue            = (Altaxo.Data.AltaxoVariant)info.GetValue("BaseValue", s);
                s._startAtPreviousItem  = info.GetBoolean("StartAtPrevious");
                s._previousItemZGap     = info.GetDouble("PreviousItemGap");

                s._pen = (PenX3D)info.GetValue("Pen", s);
                s._independentColor = info.GetBoolean("IndependentColor");
                s._useUniformCrossSectionThickness = info.GetBoolean("UseUniformCrossSectionThickness");
                s._barShiftStrategy = (BarShiftStrategy3D)info.GetEnum("BarShift", typeof(BarShiftStrategy3D));
                s._barShiftMaxNumberOfItemsInOneDirection = info.GetInt32("BarShiftMaxItems");
                s._relInnerGapX = info.GetDouble("InnerGapX");
                s._relOuterGapX = info.GetDouble("OuterGapX");
                s._relInnerGapY = info.GetDouble("InnerGapY");
                s._relOuterGapY = info.GetDouble("OuterGapY");

                return(s);
            }
Exemplo n.º 2
0
 public BarGraphPlotStyle(BarGraphPlotStyle from, bool copyWithDataReferences)
 {
     CopyFrom(from, copyWithDataReferences);
 }
Exemplo n.º 3
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                BarGraphPlotStyle s = SDeserialize(o, info, parent);

                return(s);
            }
Exemplo n.º 4
0
		public BarGraphPlotStyle(BarGraphPlotStyle from, bool copyWithDataReferences)
		{
			CopyFrom(from, copyWithDataReferences);
		}
Exemplo n.º 5
0
		/// <summary>
		/// Creates a plot style collection for a bar graph.
		/// </summary>
		/// <param name="context">The context.</param>
		/// <param name="isStacked">If set to <c>true</c>, the bar should be stacked.</param>
		/// <returns></returns>
		public static G3DPlotStyleCollection PlotStyle_Bar(Altaxo.Main.Properties.IReadOnlyPropertyBag context, bool isStacked)
		{
			var result = new G3DPlotStyleCollection();
			BarGraphPlotStyle ps1 = new BarGraphPlotStyle(context);
			if (isStacked)
			{
				ps1.StartAtPreviousItem = true;
			}
			result.Add(ps1);
			return result;
		}