//--------------------------------------------------------------------------------
//
// Copyright © The University of Queensland, 2012-2014. All rights reserved.
//
// License:
//--------------------------------------------------------------------------------
namespace Data
{
using System;
using System.Collections.Generic;
///
/// Describes a plot axis.
///
public class AxisDescription
{
///
/// Gets or sets the minimum.
///
/// The minimum.
public double Min { get; set; }
///
/// Gets or sets the max.
///
/// The max.
public double Max { get; set; }
///
/// Gets or sets the label.
///
/// The label.
public string Label { get; set; }
///
/// Gets or sets a value indicating whether this unquoted label.
///
/// true if unquoted label; otherwise, false.
public bool UnquotedLabel { get; set; }
///
/// Gets or sets the breaks.
///
/// The breaks.
public double[] Breaks { get; set; }
///
/// Gets or sets the discrete breaks.
///
/// The discrete breaks.
public string[] DiscreteBreaks { get; set; }
///
/// Gets or sets the break labels.
///
/// The break labels.
public string[] BreakLabels { get; set; }
public enum CoordTransform
{
None,
Log2,
Log10,
Discrete,
}
private Dictionary coordTransformBase = new Dictionary
{
{ CoordTransform.None, double.NaN },
{ CoordTransform.Discrete, double.NaN },
{ CoordTransform.Log2, 2 },
{ CoordTransform.Log10, 10 },
};
public CoordTransform CoordinateTransform { get; set; }
public double CoordinateTransformBase
{
get
{
return this.coordTransformBase[this.CoordinateTransform];
}
}
}
}