Example #1
0
        public LinePlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var penWidth = GraphDocument.GetDefaultPenWidth(context);
            var color    = GraphDocument.GetDefaultPlotColor(context);

            _linePen         = new PenX3D(color, penWidth).WithLineJoin(PenLineJoin.Bevel);
            _connectionStyle = new LineConnectionStyles.StraightConnection();
        }
Example #2
0
        public ScatterPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            double penWidth   = GraphDocument.GetDefaultPenWidth(context);
            double symbolSize = GraphDocument.GetDefaultSymbolSize(context);
            var    color      = GraphDocument.GetDefaultPlotColor(context);

            _scatterSymbol    = ScatterSymbolListManager.Instance.BuiltinDefault[0];
            _color            = color;
            _independentColor = false;
            _symbolSize       = symbolSize;
            _skipFreq         = 1;
        }
Example #3
0
        public VectorCartesicPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var penWidth = GraphDocument.GetDefaultPenWidth(context);
            var color    = GraphDocument.GetDefaultPlotColor(context);

            _lineWidth1Offset = penWidth;
            _lineWidth1Factor = 0;
            _lineWidth2Offset = penWidth;
            _lineWidth2Factor = 0;

            _strokePen = new PenX3D(color, penWidth).WithLineEndCap(new ContourArrow05());
        }
Example #4
0
        public VectorCartesicPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var penWidth = GraphDocument.GetDefaultPenWidth(context);
            var color    = GraphDocument.GetDefaultPlotColor(context);

            _lineWidth1Offset = penWidth;
            _lineWidth1Factor = 0;

            ChildSetMember(ref _strokePen, new PenX(color, penWidth)
            {
                EndCap = new LineCaps.ArrowF10LineCap()
            });
        }
Example #5
0
        public DropAreaPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var penWidth = GraphDocument.GetDefaultPenWidth(context);
            var color    = GraphDocument.GetDefaultPlotColor(context);

            ChildSetMember(ref _framePen, new PenX(NamedColors.Transparent, penWidth)
            {
                LineJoin = LineJoin.Bevel
            });
            _ignoreMissingDataPoints = false;
            ChildSetMember(ref _fillBrush, new BrushX(color));
            _fillDirection   = new CSPlaneID(1, 0);
            _connectionStyle = LineConnectionStyles.StraightConnection.Instance;
        }
Example #6
0
        public DropLinePlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            _dropTargets = new CSPlaneIDList(new[] { new CSPlaneID(2, 0) });

            var    color    = GraphDocument.GetDefaultPlotColor(context);
            double penWidth = GraphDocument.GetDefaultPenWidth(context);

            _pen = new PenX3D(color, penWidth);

            _lineWidth1Offset = penWidth;
            _lineWidth1Factor = 0;
            _lineWidth2Offset = penWidth;
            _lineWidth2Factor = 0;
        }
Example #7
0
        public LinePlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var penWidth = GraphDocument.GetDefaultPenWidth(context);
            var color    = GraphDocument.GetDefaultPlotColor(context);

            _linePen = new PenX(color, penWidth)
            {
                LineJoin = LineJoin.Bevel
            };
            _ignoreMissingDataPoints = false;
            _connectionStyle         = LineConnectionStyles.StraightConnection.Instance;
            _independentColor        = false;

            CreateEventChain();
        }
Example #8
0
        public BarGraphPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var color = GraphDocument.GetDefaultPlotColor(context);

            _fillBrush = new BrushX(color);
        }
Example #9
0
        public BarGraphPlotStyle(Altaxo.Main.Properties.IReadOnlyPropertyBag context)
        {
            var color = GraphDocument.GetDefaultPlotColor(context);

            _pen = new PenX3D(color, 1);
        }