Code Search for Developers
 
 
  

ObjectButton.cs from MASE: Agile Software Engineering at Krugle


Show ObjectButton.cs syntax highlighted

using System;
using System.Drawing;
using System.Collections;
using Tao.Platform.Windows;
using Tao.OpenGl;


namespace New_Study_Project
{
	/// <summary>
	/// Summary description for ControlPoint.
	/// </summary>
	public class ObjectButton 
	{
		/* Definitions of the Program */

		public enum State{InterfaceObjectResize, StoreResize, StoreMove , StoreReshape};
		public Spline storage_area;

		private PointF button;
		private PointF lastLocation;
		private PointF location;
		private State state;
		private InterfaceObject ownObject;

		/* End of Definitions of the Program */
	
		public ObjectButton(InterfaceObject parent, PointF point, State status)
		{
			this.ownObject = parent;
			storage_area = null;
			this.button = point;
			this.location = this.button;
			this.lastLocation = this.button;
			this.state = status;
		}

		public ObjectButton(Spline sta, PointF point, State status)
		{
			this.ownObject = null;
			storage_area = sta;
			this.button = point;
			this.location = this.button;
			this.lastLocation = this.button;
			this.state = status;
		}



		/*******************************************************************/
		/* End of the head of this Object - now the user code stuff begins */
		/*******************************************************************/

		public void moveObjectButton(PointF MoveObjectpoint)
		{
			this.location = new PointF((this.location.X+MoveObjectpoint.X), (this.location.Y+MoveObjectpoint.Y));
			this.lastLocation = this.location;
		}

		public void setObjectButton(PointF MoveObjectpoint)
		{
			this.location = MoveObjectpoint;
			this.lastLocation = this.location;
		}

		/*******************************************************************/
		/*               some function for returning values                */
		/*******************************************************************/


		public float X
		{
			get
			{
				return this.button.X;
			}
			set
			{
				this.button.X = value;
			}
		}

		public float Y
		{
			get
			{
				return this.button.Y;
			}
			set
			{
				this.button.Y = value;
			}
		}

		public InterfaceObject OwnObject
		{
			get
			{
				return this.ownObject;
			}
		}

		public PointF Location
		{
			get
			{
				return this.location;
			}
			set
			{
				this.location = value;
			}
		}

		public State getState
		{
			get
			{
				return this.state;
			}
			set
			{
				this.state = value;
			}
		}

		public PointF LastLocation
		{
			get
			{
				return this.lastLocation;
			}
			set
			{
				this.lastLocation = value;
			}
		}
	


		/*******************************************************************/
		/*   -----------------------------------------------------------   */
		/*******************************************************************/

	}
}



See more files for this project here

MASE: Agile Software Engineering

The MASE project investigates methods to support the coordination and executable acceptance testing of software projects. Keywords: Agile methods, distributed teams, Extreme Programming. See http://ebe.cpsc.ucalgary.ca/ebe for more information.

Project homepage: http://sourceforge.net/projects/mase
Programming language(s): Java,XML
License: other

  ControlPoint.cs
  CustomTreeNode.cs
  CustomTreeView.cs
  Dashboard.cs
  Dashboard.resx
  EStoryForm.cs
  EStoryForm.resx
  IOSelectObject.cs
  InterfaceGrid.cs
  InterfaceObject.cs
  List.cs
  ListNode.cs
  LogFile.cs
  MenuForm.cs
  MenuForm.resx
  MoveAbleSpline.cs
  NonMoveAbleSpline.cs
  ObjectButton.cs
  Old_MoveAbleSpline.cs
  PenCalibration.cs
  PenCalibration.resx
  RNTObject.cs
  Spline.cs
  StartupScreen.cs
  StartupScreen.resx
  StorageButton.cs
  Study_Project.cs
  Study_Project.resx
  TabletUI.cs
  TabletUI.resx
  Workspace.cs
  Workspace.resx
  testCalibration.cs
  testCalibration.resx