Exemplo n.º 1
0
        /// <summary>
        /// Synchronizes the properties.
        /// </summary>
        public override void SynchronizeProperties()
        {
            base.SynchronizeProperties();
            var a = (Annotations.TextAnnotation)InternalAnnotation;

            a.TextHorizontalAlignment = HorizontalAlignment.ToHorizontalAlignment();
            a.Background = Background.ToOxyColor();

            a.Offset = Offset.ToScreenVector();
            a.TextVerticalAlignment = VerticalAlignment.ToVerticalAlignment();
            a.Padding = Padding.ToOxyThickness();

            a.Stroke          = Stroke.ToOxyColor();
            a.StrokeThickness = StrokeThickness;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Synchronize properties in the internal Plot model
        /// </summary>
        private void SynchronizeProperties()
        {
            var m = internalModel;

            m.PlotType = PlotType;

            m.PlotMargins  = PlotMargins.ToOxyThickness();
            m.Padding      = Padding.ToOxyThickness();
            m.TitlePadding = TitlePadding;

            m.Culture = Culture;

            m.DefaultColors   = DefaultColors.Select(c => c.ToOxyColor()).ToArray();
            m.DefaultFont     = DefaultFont;
            m.DefaultFontSize = DefaultFontSize;

            m.Title           = Title;
            m.TitleColor      = TitleColor.ToOxyColor();
            m.TitleFont       = TitleFont;
            m.TitleFontSize   = TitleFontSize;
            m.TitleFontWeight = (int)TitleFontWeight;
            m.TitleToolTip    = TitleToolTip;

            m.Subtitle           = Subtitle;
            m.SubtitleColor      = SubtitleColor.ToOxyColor();
            m.SubtitleFont       = SubtitleFont;
            m.SubtitleFontSize   = SubtitleFontSize;
            m.SubtitleFontWeight = (int)SubtitleFontWeight;

            m.TextColor      = TextColor.ToOxyColor();
            m.SelectionColor = SelectionColor.ToOxyColor();

            m.RenderingDecorator = RenderingDecorator;

            m.AxisTierDistance = AxisTierDistance;

            m.IsLegendVisible = IsLegendVisible;

            m.PlotAreaBackground      = PlotAreaBackground.ToOxyColor();
            m.PlotAreaBorderColor     = PlotAreaBorderColor.ToOxyColor();
            m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Synchronize properties in the internal Plot model
        /// </summary>
        private void SynchronizeProperties()
        {
            var m = internalModel;

            m.PlotType = PlotType;

            m.PlotMargins  = PlotMargins.ToOxyThickness();
            m.Padding      = Padding.ToOxyThickness();
            m.TitlePadding = TitlePadding;

            m.Culture = Culture;

            m.DefaultColors   = DefaultColors.Select(c => c.ToOxyColor()).ToArray();
            m.DefaultFont     = DefaultFont;
            m.DefaultFontSize = DefaultFontSize;

            m.Title           = Title;
            m.TitleColor      = TitleColor.ToOxyColor();
            m.TitleFont       = TitleFont;
            m.TitleFontSize   = TitleFontSize;
            m.TitleFontWeight = (int)TitleFontWeight;
            m.TitleToolTip    = TitleToolTip;

            m.Subtitle           = Subtitle;
            m.SubtitleColor      = SubtitleColor.ToOxyColor();
            m.SubtitleFont       = SubtitleFont;
            m.SubtitleFontSize   = SubtitleFontSize;
            m.SubtitleFontWeight = (int)SubtitleFontWeight;

            m.TextColor      = TextColor.ToOxyColor();
            m.SelectionColor = SelectionColor.ToOxyColor();

            m.RenderingDecorator = RenderingDecorator;

            m.AxisTierDistance = AxisTierDistance;

            m.IsLegendVisible       = IsLegendVisible;
            m.LegendTextColor       = LegendTextColor.ToOxyColor();
            m.LegendTitle           = LegendTitle;
            m.LegendTitleColor      = LegendTitleColor.ToOxyColor();
            m.LegendTitleFont       = LegendTitleFont;
            m.LegendTitleFontSize   = LegendTitleFontSize;
            m.LegendTitleFontWeight = (int)LegendTitleFontWeight;
            m.LegendFont            = LegendFont;
            m.LegendFontSize        = LegendFontSize;
            m.LegendFontWeight      = (int)LegendFontWeight;
            m.LegendSymbolLength    = LegendSymbolLength;
            m.LegendSymbolMargin    = LegendSymbolMargin;
            m.LegendPadding         = LegendPadding;
            m.LegendColumnSpacing   = LegendColumnSpacing;
            m.LegendItemSpacing     = LegendItemSpacing;
            m.LegendLineSpacing     = LegendLineSpacing;
            m.LegendMargin          = LegendMargin;
            m.LegendMaxHeight       = LegendMaxHeight;
            m.LegendMaxWidth        = LegendMaxWidth;

            m.LegendBackground      = LegendBackground.ToOxyColor();
            m.LegendBorder          = LegendBorder.ToOxyColor();
            m.LegendBorderThickness = LegendBorderThickness;

            m.LegendPlacement       = LegendPlacement;
            m.LegendPosition        = LegendPosition;
            m.LegendOrientation     = LegendOrientation;
            m.LegendItemOrder       = LegendItemOrder;
            m.LegendItemAlignment   = LegendItemAlignment.ToHorizontalAlignment();
            m.LegendSymbolPlacement = LegendSymbolPlacement;

            m.PlotAreaBackground      = PlotAreaBackground.ToOxyColor();
            m.PlotAreaBorderColor     = PlotAreaBorderColor.ToOxyColor();
            m.PlotAreaBorderThickness = PlotAreaBorderThickness.ToOxyThickness();
        }