Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
//
// AssemblyInfo.cs
//
// Authors:
// Marek Safar (marek.safar@gmail.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
using System;
using System.Reflection;
using System.Resources;
using System.Security;
using System.Security.Permissions;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle ("System.Windows.Forms.DataVisualization.dll")]
[assembly: AssemblyDescription ("System.Windows.Forms.DataVisualization.dll")]
[assembly: AssemblyDefaultAlias ("System.Windows.Forms.DataVisualization.dll")]
[assembly: AssemblyCompany (Consts.MonoCompany)]
[assembly: AssemblyProduct (Consts.MonoProduct)]
[assembly: AssemblyCopyright (Consts.MonoCopyright)]
[assembly: AssemblyVersion (Consts.FxVersion)]
[assembly: SatelliteContractVersion (Consts.FxVersion)]
[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
[assembly: NeutralResourcesLanguage ("en-US")]
[assembly: CLSCompliant (true)]
[assembly: AssemblyDelaySign (true)]
[assembly: AssemblyKeyFile ("../winfx.pub")]
[assembly: SecurityRules (SecurityRuleSet.Level1)]
[assembly: ComVisible (false)]

View File

@@ -0,0 +1,4 @@
2009-10-30 Marek Safar <marek.safar@gmail.com>
* ChangeLog: Added

View File

@@ -0,0 +1,20 @@
thisdir = class/System.Windows.Forms.DataVisualization
SUBDIRS =
include ../../build/rules.make
LIBRARY = System.Windows.Forms.DataVisualization.dll
LIB_MCS_FLAGS = -r:System -r:System.Drawing -r:System.Windows.Forms -r:System.Core -r:System.Data -r:System.Xml
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
EXTRA_DISTFILES =
VALID_PROFILE := $(filter 4, $(FRAMEWORK_VERSION_MAJOR))
ifndef VALID_PROFILE
LIBRARY_NAME = dummy-System.Windows.Forms.DataVisualization.dll
NO_INSTALL = yes
NO_SIGN_ASSEMBLY = yes
NO_TEST = yes
endif
include ../../build/library.make

View File

@@ -0,0 +1,125 @@
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE./
using System;
using System.Drawing;
namespace System.Windows.Forms.DataVisualization.Charting
{
public abstract class Annotation : ChartNamedElement
{
protected Annotation ()
{
}
public virtual ContentAlignment Alignment { get; set; }
public virtual bool AllowAnchorMoving { get; set; }
public virtual bool AllowMoving { get; set; }
public virtual bool AllowPathEditing { get; set; }
public virtual bool AllowResizing { get; set; }
public virtual bool AllowSelecting { get; set; }
public virtual bool AllowTextEditing { get; set; }
public virtual ContentAlignment AnchorAlignment { get; set; }
public virtual DataPoint AnchorDataPoint { get; set; }
public virtual string AnchorDataPointName { get; set; }
public virtual double AnchorOffsetX { get; set; }
public virtual double AnchorOffsetY { get; set; }
public virtual double AnchorX { get; set; }
public virtual double AnchorY { get; set; }
public AnnotationGroup AnnotationGroup { get; private set; }
public abstract string AnnotationType { get; }
public virtual Axis AxisX { get; set; }
public virtual string AxisXName { get; set; }
public virtual Axis AxisY { get; set; }
public virtual string AxisYName { get; set; }
public virtual Color BackColor { get; set; }
public virtual GradientStyle BackGradientStyle { get; set; }
public virtual ChartHatchStyle BackHatchStyle { get; set; }
public virtual Color BackSecondaryColor { get; set; }
public virtual double Bottom { get; set; }
public virtual string ClipToChartArea { get; set; }
public virtual Font Font { get; set; }
public virtual Color ForeColor { get; set; }
public virtual double Height { get; set; }
public virtual bool IsSelected { get; set; }
public virtual bool IsSizeAlwaysRelative { get; set; }
public virtual Color LineColor { get; set; }
public virtual ChartDashStyle LineDashStyle { get; set; }
public virtual int LineWidth { get; set; }
public override string Name { get; set; }
public virtual double Right { get; set; }
public virtual Color ShadowColor { get; set; }
public virtual int ShadowOffset { get; set; }
public AnnotationSmartLabelStyle SmartLabelStyle { get; set; }
public virtual TextStyle TextStyle { get; set; }
public virtual string ToolTip { get; set; }
public virtual bool Visible { get; set; }
public virtual double Width { get; set; }
public virtual double X { get; set; }
public virtual double Y { get; set; }
public virtual string YAxisName { get; set; }
[MonoTODO]
public virtual void BeginPlacement ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void BringToFront ()
{
throw new NotImplementedException ();
}
[MonoTODO]
protected override void Dispose (bool disposing)
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void EndPlacement ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void ResizeToContent ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public virtual void SendToBack ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public void SetAnchor (DataPoint dataPoint)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void SetAnchor (DataPoint dataPoint1, DataPoint dataPoint2)
{
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,35 @@
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationCollection : ChartNamedElementCollection<Annotation>
{
[MonoTODO]
public override Annotation FindByName (string name) {
throw new NotImplementedException ();
}
}
}

View File

@@ -0,0 +1,61 @@
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System.Drawing;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationGroup : Annotation
{
public AnnotationGroup ()
{
Annotations = new AnnotationCollection ();
}
public override ContentAlignment Alignment { get; set; }
public override bool AllowAnchorMoving { get; set; }
public override bool AllowMoving { get; set; }
public override bool AllowPathEditing { get; set; }
public override bool AllowResizing { get; set; }
public override bool AllowSelecting { get; set; }
public override bool AllowTextEditing { get; set; }
public AnnotationCollection Annotations { get; private set; }
public override string AnnotationType { get { throw new NotImplementedException (); } } //FIXME - find out what MS implementation returns here
public override Color BackColor { get; set; }
public override GradientStyle BackGradientStyle { get; set; }
public override ChartHatchStyle BackHatchStyle { get; set; }
public override Color BackSecondaryColor { get; set; }
public override string ClipToChartArea { get; set; }
public override Font Font { get; set; }
public override Color ForeColor { get; set; }
public override bool IsSelected { get; set; }
public override bool IsSizeAlwaysRelative { get; set; }
public override Color LineColor { get; set; }
public override ChartDashStyle LineDashStyle { get; set; }
public override int LineWidth { get; set; }
public override Color ShadowColor { get; set; }
public override int ShadowOffset { get; set; }
public override TextStyle TextStyle { get; set; }
public override bool Visible { get; set; }
}
}

View File

@@ -0,0 +1,55 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationPathPoint : ChartElement
{
#region Constructors
public AnnotationPathPoint () : this (0, 0)
{
}
public AnnotationPathPoint (float x, float y) : this (x, y, 0)
{
}
public AnnotationPathPoint (float x, float y, byte type)
{
X = x;
Y = y;
}
#endregion
#region Public Properties
public string Name { get; private set; }
public byte PointType { get; set; }
public float X { get; set; }
public float Y { get; set; }
#endregion
}
}

View File

@@ -0,0 +1,52 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationPathPointCollection : ChartElementCollection<AnnotationPathPoint>
{
#region Constructors
//public AnnotationPathPointCollection (PolylineAnnotation annotation)
//{
//}
#endregion
#region Public Methods
public override void Invalidate ()
{
base.Invalidate ();
}
#endregion
#region Protected Methods
protected override void Dispose (bool disposing)
{
base.Dispose (disposing);
}
#endregion
}
}

View File

@@ -0,0 +1,91 @@
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Drawing;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationPositionChangingEventArgs : EventArgs
{
public AnnotationPositionChangingEventArgs ()
{
}
public Annotation Annotation { get; set; }
public PointF NewAnchorLocation { get; set; }
public double NewAnchorLocationX {
get { return this.NewAnchorLocation.X; }
set {
PointF nal = this.NewAnchorLocation;
nal.X = (float)value;
this.NewAnchorLocation = nal;
}
}
public double NewAnchorLocationY {
get { return this.NewAnchorLocation.Y; }
set {
PointF nal = this.NewAnchorLocation;
nal.Y = (float)value;
this.NewAnchorLocation = nal;
}
}
public RectangleF NewPosition { get; set; }
public double NewLocationX {
get { return this.NewPosition.X; }
set {
RectangleF np = this.NewPosition;
np.X = (float)value;
this.NewPosition = np;
}
}
public double NewLocationY {
get { return this.NewPosition.Y; }
set {
RectangleF np = this.NewPosition;
np.Y = (float)value;
this.NewPosition = np;
}
}
public double NewSizeWidth {
get { return this.NewPosition.Width; }
set {
RectangleF np = this.NewPosition;
np.Width = (float)value;
this.NewPosition = np;
}
}
public double NewSizeHeight {
get { return this.NewPosition.Height; }
set {
RectangleF np = this.NewPosition;
np.Height = (float)value;
this.NewPosition = np;
}
}
}
}

View File

@@ -0,0 +1,30 @@
// Authors:
// Francis Fisher (frankie@terrorise.me.uk)
//
// (C) Francis Fisher 2013
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnnotationSmartLabelStyle : SmartLabelStyle
{
}
}

View File

@@ -0,0 +1,51 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class AnovaResult
{
#region Constructors
public AnovaResult ()
{
}
#endregion
#region Public Properties
public double DegreeOfFreedomBetweenGroups { get; private set; }
public double DegreeOfFreedomTotal { get; private set; }
public double DegreeOfFreedomWithinGroups { get; private set; }
public double FCriticalValue { get; private set; }
public double FRatio { get; private set; }
public double MeanSquareVarianceBetweenGroups { get; private set; }
public double MeanSquareVarianceWithinGroups { get; private set; }
public double SumOfSquaresBetweenGroups { get; private set; }
public double SumOfSquaresTotal { get; private set; }
public double SumOfSquaresWithinGroups { get; private set; }
#endregion
}
}

View File

@@ -0,0 +1,38 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
[Flags]
public enum AntiAliasingStyles
{
None = 0,
Text = 1,
Graphics = 2,
All = 3
}
}

View File

@@ -0,0 +1,38 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
[Flags]
public enum AreaAlignmentOrientations
{
None = 0,
Vertical = 1,
Horizontal = 2,
All = 3
}
}

View File

@@ -0,0 +1,40 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
[Flags]
public enum AreaAlignmentStyles
{
None = 0,
Position = 1,
PlotPosition = 2,
AxesView = 4,
Cursor = 8,
All = 15
}
}

View File

@@ -0,0 +1,58 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
// Francis Fisher (frankie@terrorise.me.uk)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Drawing;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class ArrowAnnotation : Annotation
{
private int arrow_size = 5;
#region Constructors
public ArrowAnnotation ()
{
}
#endregion
#region Public Properties
public override ContentAlignment AnchorAlignment { get; set; }
public override string AnnotationType { get { throw new NotImplementedException (); } } //FIXME - find out what MS implementation returns here
public virtual int ArrowSize {
get { return arrow_size; }
set {
if (value <= 0)
throw new ArgumentOutOfRangeException ("ArrowSize", "ArrowSize must be >= 0.");
arrow_size = value;
}
}
public virtual ArrowStyle ArrowStyle { get; set; }
#endregion
}
}

View File

@@ -0,0 +1,36 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public enum ArrowStyle
{
Simple = 0,
DoubleArrow = 1,
Tailed = 2
}
}

View File

@@ -0,0 +1,138 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
// Francis Fisher (frankie@terrorise.me.uk)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
using System.Drawing;
namespace System.Windows.Forms.DataVisualization.Charting
{
public class Axis : ChartNamedElement, IDisposable
{
#region Constructors
public Axis (ChartArea chartArea, AxisName axisTypeName)
{
this.ChartArea = chartArea;
this.AxisName = axisTypeName;
}
public Axis ()
{
}
#endregion
#region Public Properties
public AxisArrowStyle ArrowStyle { get; set; }
public virtual AxisName AxisName { get; private set; }
public virtual double Crossing { get; set; }
public CustomLabelCollection CustomLabels { get; private set; }
public AxisEnabled Enabled { get; set; }
public Color InterlacedColor { get; set; }
public double Interval { get; set; }
public IntervalAutoMode IntervalAutoMode { get; set; }
public double IntervalOffset { get; set; }
public DateTimeIntervalType IntervalOffsetType { get; set; }
public DateTimeIntervalType IntervalType { get; set; }
public bool IsInterlaced { get; set; }
public bool IsLabelAutoFit { get; set; }
public bool IsLogarithmic { get; set; }
public bool IsMarginVisible { get; set; }
public virtual bool IsMarksNextToAxis { get; set; }
public bool IsReversed { get; set; }
public bool IsStartedFromZero { get; set; }
public int LabelAutoFitMaxFontSize { get; set; }
public int LabelAutoFitMinFontSize { get; set; }
public LabelAutoFitStyles LabelAutoFitStyle { get; set; }
public LabelStyle LabelStyle { get; set; }
public Color LineColor { get; set; }
public ChartDashStyle LineDashStyle { get; set; }
public int LineWidth { get; set; }
public double LogarithmBase { get; set; }
public Grid MajorGrid { get; set; }
public TickMark MajorTickMark { get; set; }
public double Maximum { get; set; }
public float MaximumAutoSize { get; set; }
public double Minimum { get; set; }
public Grid MinorGrid { get; set; }
public TickMark MinorTickMark { get; set; }
public override string Name {
get { return base.Name; }
set { base.Name = value; }
}
public virtual AxisScaleBreakStyle ScaleBreakStyle { get; set; }
public AxisScaleView ScaleView { get; set; }
public AxisScrollBar ScrollBar { get; set; }
public StripLinesCollection StripLines { get; private set; }
public TextOrientation TextOrientation { get; set; }
public string Title { get; set; }
public StringAlignment TitleAlignment { get; set; }
public Font TitleFont { get; set; }
public Color TitleForeColor { get; set; }
public string ToolTip { get; set; }
#endregion
private ChartArea ChartArea;
#region Public Methods
[MonoTODO]
public double GetPosition (double axisValue)
{
throw new NotImplementedException ();
}
[MonoTODO]
public double PixelPositionToValue (double position)
{
throw new NotImplementedException ();
}
[MonoTODO]
public double PositionToValue (double position)
{
throw new NotImplementedException ();
}
[MonoTODO]
public void RoundAxisValues ()
{
throw new NotImplementedException ();
}
[MonoTODO]
public double ValueToPixelPosition (double axisValue)
{
throw new NotImplementedException ();
}
[MonoTODO]
public double ValueToPosition (double axisValue)
{
throw new NotImplementedException ();
}
#endregion
}
}

View File

@@ -0,0 +1,37 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public enum AxisArrowStyle
{
None = 0,
Triangle = 1,
SharpTriangle = 2,
Lines = 3
}
}

View File

@@ -0,0 +1,36 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public enum AxisEnabled
{
Auto = 0,
True = 1,
False = 2
}
}

View File

@@ -0,0 +1,37 @@
//
// Authors:
// Jonathan Pobst (monkey@jpobst.com)
//
// Copyright (C) 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
//
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace System.Windows.Forms.DataVisualization.Charting
{
public enum AxisName
{
X = 0,
Y = 1,
X2 = 2,
Y2 = 3
}
}

Some files were not shown because too many files have changed in this diff Show More