External/OxyPlot/OxyPlot/Reporting/Report/Figure.cs
changeset 391 5be8f2773237
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/External/OxyPlot/OxyPlot/Reporting/Report/Figure.cs	Sat Jun 08 16:53:22 2013 +0000
     1.3 @@ -0,0 +1,62 @@
     1.4 +// --------------------------------------------------------------------------------------------------------------------
     1.5 +// <copyright file="Figure.cs" company="OxyPlot">
     1.6 +//   The MIT License (MIT)
     1.7 +//
     1.8 +//   Copyright (c) 2012 Oystein Bjorke
     1.9 +//
    1.10 +//   Permission is hereby granted, free of charge, to any person obtaining a
    1.11 +//   copy of this software and associated documentation files (the
    1.12 +//   "Software"), to deal in the Software without restriction, including
    1.13 +//   without limitation the rights to use, copy, modify, merge, publish,
    1.14 +//   distribute, sublicense, and/or sell copies of the Software, and to
    1.15 +//   permit persons to whom the Software is furnished to do so, subject to
    1.16 +//   the following conditions:
    1.17 +//
    1.18 +//   The above copyright notice and this permission notice shall be included
    1.19 +//   in all copies or substantial portions of the Software.
    1.20 +//
    1.21 +//   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    1.22 +//   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    1.23 +//   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
    1.24 +//   IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
    1.25 +//   CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    1.26 +//   TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    1.27 +//   SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    1.28 +// </copyright>
    1.29 +// <summary>
    1.30 +//   Represents a figure (abstract base class for DrawingFigure, Image and PlotFigure).
    1.31 +// </summary>
    1.32 +// --------------------------------------------------------------------------------------------------------------------
    1.33 +namespace OxyPlot.Reporting
    1.34 +{
    1.35 +    /// <summary>
    1.36 +    /// Represents a figure (abstract base class for DrawingFigure, Image and PlotFigure).
    1.37 +    /// </summary>
    1.38 +    public abstract class Figure : ReportItem
    1.39 +    {
    1.40 +        /// <summary>
    1.41 +        /// Gets or sets FigureNumber.
    1.42 +        /// </summary>
    1.43 +        public int FigureNumber { get; set; }
    1.44 +
    1.45 +        /// <summary>
    1.46 +        /// Gets or sets FigureText.
    1.47 +        /// </summary>
    1.48 +        public string FigureText { get; set; }
    1.49 +
    1.50 +        /// <summary>
    1.51 +        /// The get full caption.
    1.52 +        /// </summary>
    1.53 +        /// <param name="style">
    1.54 +        /// The style.
    1.55 +        /// </param>
    1.56 +        /// <returns>
    1.57 +        /// The get full caption.
    1.58 +        /// </returns>
    1.59 +        public string GetFullCaption(ReportStyle style)
    1.60 +        {
    1.61 +            return string.Format(style.FigureTextFormatString, this.FigureNumber, this.FigureText);
    1.62 +        }
    1.63 +
    1.64 +    }
    1.65 +}
    1.66 \ No newline at end of file