Tchart的旋转动画 (评估板源码)
来源:互联网 发布:excel macro编程 编辑:程序博客网 时间:2024/06/05 10:06
using Steema.TeeChart.Animations;
using Steema.TeeChart.Editors;
using Steema.TeeChart.Styles;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Animations_ChartPart : Steema.TeeChart.Samples.BaseForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.chartContainer.SuspendLayout();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Text = "The ChartPartAnimation enables the animated rotation, translation, zoom\r\nand opac" +
"ity of any of the specified Target Chart parts.";
//
// panel1
//
this.panel1.Controls.Add(this.button1);
//
// tChart1
//
//
//
//
this.tChart1.Aspect.Height3D = 7;
this.tChart1.Aspect.Width3D = 7;
//
//
//
//
//
//
this.tChart1.Axes.Bottom.IAxisSize = 393;
this.tChart1.Axes.Bottom.IEndPos = 413;
this.tChart1.Axes.Bottom.IGapSize = 0;
this.tChart1.Axes.Bottom.IsDepthAxis = false;
this.tChart1.Axes.Bottom.IStartPos = 20;
//
//
//
this.tChart1.Axes.Depth.IAxisSize = 7;
this.tChart1.Axes.Depth.IEndPos = 7;
this.tChart1.Axes.Depth.IGapSize = 0;
this.tChart1.Axes.Depth.IsDepthAxis = true;
this.tChart1.Axes.Depth.IStartPos = 0;
//
//
//
this.tChart1.Axes.DepthTop.IAxisSize = 7;
this.tChart1.Axes.DepthTop.IEndPos = 7;
this.tChart1.Axes.DepthTop.IGapSize = 0;
this.tChart1.Axes.DepthTop.IsDepthAxis = true;
this.tChart1.Axes.DepthTop.IStartPos = 0;
//
//
//
this.tChart1.Axes.Left.IAxisSize = 118;
this.tChart1.Axes.Left.IEndPos = 176;
this.tChart1.Axes.Left.IGapSize = 0;
this.tChart1.Axes.Left.IsDepthAxis = false;
this.tChart1.Axes.Left.IStartPos = 58;
this.tChart1.Axes.NumFixedAxes = 6;
//
//
//
this.tChart1.Axes.Right.IAxisSize = 118;
this.tChart1.Axes.Right.IEndPos = 176;
this.tChart1.Axes.Right.IGapSize = 0;
this.tChart1.Axes.Right.IsDepthAxis = false;
this.tChart1.Axes.Right.IStartPos = 58;
//
//
//
this.tChart1.Axes.Top.IAxisSize = 393;
this.tChart1.Axes.Top.IEndPos = 413;
this.tChart1.Axes.Top.IGapSize = 0;
this.tChart1.Axes.Top.IsDepthAxis = false;
this.tChart1.Axes.Top.IStartPos = 20;
this.tChart1.Size = new System.Drawing.Size(440, 205);
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(95, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Edit and run...";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Animations_ChartPart
//
this.ClientSize = new System.Drawing.Size(440, 317);
this.Name = "Animations_ChartPart";
this.panel1.ResumeLayout(false);
this.chartContainer.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
public Animations_ChartPart()
{
InitializeComponent();
InitializeChart();
}
ChartPartAnimation animation;
private void InitializeChart()
{
Bar bar = new Bar(tChart1.Chart);
bar.Marks.Clip = true;
bar.FillSampleValues();
animation = new ChartPartAnimation(tChart1.Chart);
animation.Series = bar;
animation.EasingFunction = new TeeChart.Animations.EasingFunctions.BounceEase();
animation.EasingMode = TeeChart.Animations.EasingFunctions.EasingMode.EaseOut;
animation.Target = ChartClickedPartStyle.Series;
animation.TranslateStyle = TransformTranslate.FromLeft;
}
private void button1_Click(object sender, EventArgs e)
{
Steema.TeeChart.Editors.Animations.ChartPartEditor editor = new Editors.Animations.ChartPartEditor(animation);
EditorUtils.ShowFormModal(editor);
}
}
}
using Steema.TeeChart.Editors;
using Steema.TeeChart.Styles;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Steema.TeeChart.Samples
{
public class Animations_ChartPart : Steema.TeeChart.Samples.BaseForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.panel1.SuspendLayout();
this.chartContainer.SuspendLayout();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Text = "The ChartPartAnimation enables the animated rotation, translation, zoom\r\nand opac" +
"ity of any of the specified Target Chart parts.";
//
// panel1
//
this.panel1.Controls.Add(this.button1);
//
// tChart1
//
//
//
//
this.tChart1.Aspect.Height3D = 7;
this.tChart1.Aspect.Width3D = 7;
//
//
//
//
//
//
this.tChart1.Axes.Bottom.IAxisSize = 393;
this.tChart1.Axes.Bottom.IEndPos = 413;
this.tChart1.Axes.Bottom.IGapSize = 0;
this.tChart1.Axes.Bottom.IsDepthAxis = false;
this.tChart1.Axes.Bottom.IStartPos = 20;
//
//
//
this.tChart1.Axes.Depth.IAxisSize = 7;
this.tChart1.Axes.Depth.IEndPos = 7;
this.tChart1.Axes.Depth.IGapSize = 0;
this.tChart1.Axes.Depth.IsDepthAxis = true;
this.tChart1.Axes.Depth.IStartPos = 0;
//
//
//
this.tChart1.Axes.DepthTop.IAxisSize = 7;
this.tChart1.Axes.DepthTop.IEndPos = 7;
this.tChart1.Axes.DepthTop.IGapSize = 0;
this.tChart1.Axes.DepthTop.IsDepthAxis = true;
this.tChart1.Axes.DepthTop.IStartPos = 0;
//
//
//
this.tChart1.Axes.Left.IAxisSize = 118;
this.tChart1.Axes.Left.IEndPos = 176;
this.tChart1.Axes.Left.IGapSize = 0;
this.tChart1.Axes.Left.IsDepthAxis = false;
this.tChart1.Axes.Left.IStartPos = 58;
this.tChart1.Axes.NumFixedAxes = 6;
//
//
//
this.tChart1.Axes.Right.IAxisSize = 118;
this.tChart1.Axes.Right.IEndPos = 176;
this.tChart1.Axes.Right.IGapSize = 0;
this.tChart1.Axes.Right.IsDepthAxis = false;
this.tChart1.Axes.Right.IStartPos = 58;
//
//
//
this.tChart1.Axes.Top.IAxisSize = 393;
this.tChart1.Axes.Top.IEndPos = 413;
this.tChart1.Axes.Top.IGapSize = 0;
this.tChart1.Axes.Top.IsDepthAxis = false;
this.tChart1.Axes.Top.IStartPos = 20;
this.tChart1.Size = new System.Drawing.Size(440, 205);
//
// button1
//
this.button1.Location = new System.Drawing.Point(12, 6);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(95, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Edit and run...";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Animations_ChartPart
//
this.ClientSize = new System.Drawing.Size(440, 317);
this.Name = "Animations_ChartPart";
this.panel1.ResumeLayout(false);
this.chartContainer.ResumeLayout(false);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
public Animations_ChartPart()
{
InitializeComponent();
InitializeChart();
}
ChartPartAnimation animation;
private void InitializeChart()
{
Bar bar = new Bar(tChart1.Chart);
bar.Marks.Clip = true;
bar.FillSampleValues();
animation = new ChartPartAnimation(tChart1.Chart);
animation.Series = bar;
animation.EasingFunction = new TeeChart.Animations.EasingFunctions.BounceEase();
animation.EasingMode = TeeChart.Animations.EasingFunctions.EasingMode.EaseOut;
animation.Target = ChartClickedPartStyle.Series;
animation.TranslateStyle = TransformTranslate.FromLeft;
}
private void button1_Click(object sender, EventArgs e)
{
Steema.TeeChart.Editors.Animations.ChartPartEditor editor = new Editors.Animations.ChartPartEditor(animation);
EditorUtils.ShowFormModal(editor);
}
}
}
0 0
- Tchart的旋转动画 (评估板源码)
- Swift 旋转动画 (设置的ImageView的旋转动画)
- TChart控件的BUG?
- TChart的使用
- TChart的使用
- 关于旋转的动画
- 图片的旋转动画
- 旋转动画的封装
- Animation旋转的动画
- 旋转的定时器动画
- 图片的旋转动画
- 图标的旋转动画
- Tchart
- tchart
- 自定义viewpager的切换动画(旋转动画)
- 关于TChart的几个方法
- 错觉动画:旋转的网格
- 自定义ProgressBar的旋转动画
- Android入门第八篇之GridView
- USACO Section 1.4 - Arithmetic Progressions (暴力)
- Axis2 创建 web service (3) : 示例解读
- 安装mysql和memcached
- Android——使用SQLite数据库访问
- Tchart的旋转动画 (评估板源码)
- C++ 构造/析构函数中的异常处理
- 原型模式(ProtoType)
- 【LeetCode】Word Break
- RMQ and LCA
- java中的构造函数有什么用?用它有什么好处?在什么地方用?
- 单元测试 Google Test 使用
- 【iOS】KVC 和 KVO 的使用场景
- Robotium创建一个Note的实例