Ejemplo n.º 1
0
 public void SetRectangleData(Rectangle rectangle)
 {
     _mouseOver.FileName = rectangle.GetProperty("MouseOver");
       _mouseOut.FileName = rectangle.GetProperty("MouseOut");
       _mouseClick.FileName = rectangle.GetProperty("MouseClick");
       _mouseDoubleClick.FileName = rectangle.GetProperty("MouseDoubleClick");
       _mouseUp.FileName = rectangle.GetProperty("MouseUp");
       _mouseDown.FileName = rectangle.GetProperty("MouseDown");
 }
Ejemplo n.º 2
0
 public void GetRectangleData(Rectangle rectangle)
 {
     rectangle.SetProperty("MouseOver", _mouseOver.FileName);
       rectangle.SetProperty("MouseOut", _mouseOut.FileName);
       rectangle.SetProperty("MouseClick", _mouseClick.FileName);
       rectangle.SetProperty("MouseDoubleClick", _mouseDoubleClick.FileName);
       rectangle.SetProperty("MouseUp", _mouseUp.FileName);
       rectangle.SetProperty("MouseDown", _mouseDown.FileName);
 }
Ejemplo n.º 3
0
        public void CreateTable(IntCoordinate c, int rows, int columns)
        {
            var rectangle = new Rectangle(_rectangles.Find(c));
              int width = rectangle.Width;
              int height = rectangle.Height;
              int x1 = rectangle.X1;
              int y1 = rectangle.Y1;

              for (int row = 1; row < rows; row++)
            {
              int ypos = y1 + row * height / rows;
              AddSlice(rectangle.CreateHorizontalSlice(ypos));
            }

              for (int col = 1; col < columns; col++)
            {
              int xpos = x1 + col * width / columns;
              AddSlice(rectangle.CreateVerticalSlice(xpos));
            }
        }
Ejemplo n.º 4
0
 abstract public bool IsPartOf(Rectangle rectangle);
Ejemplo n.º 5
0
 abstract public Rectangle SliceRectangle(Rectangle rectangle);
Ejemplo n.º 6
0
 public Rectangle(Rectangle rectangle)
     : this(rectangle.Left, rectangle.Right, rectangle.Top, rectangle.Bottom)
 {
 }
Ejemplo n.º 7
0
 abstract public bool IntersectsWith(Rectangle rectangle);
Ejemplo n.º 8
0
 void OnSelectedRectangleChanged(Rectangle newSelected)
 {
   var args = new SelectedChangedEventArgs(Selected, newSelected);
   SelectedRectangleChanged(this, args);
 }
Ejemplo n.º 9
0
 public void Add(Rectangle rectangle)
 {
   Changed = true;
   _set.Add(rectangle);
   Selected = Selected ?? rectangle;
 }
Ejemplo n.º 10
0
    public SelectedChangedEventArgs(Rectangle oldSelected, 
				    Rectangle newSelected)
    {
      OldSelected = oldSelected ?? new Rectangle(null, null, null, null);
      NewSelected = newSelected;
    }
Ejemplo n.º 11
0
 void Remove(Rectangle rectangle)
 {
   Changed = true;
   _set.Remove(rectangle);
 }
Ejemplo n.º 12
0
 public void Select(IntCoordinate c)
 {
   Selected = Find(c);
 }
Ejemplo n.º 13
0
        void GetRectangleData(Rectangle rectangle)
        {
            _url.Text = rectangle.GetProperty("href");
              _altText.Text = rectangle.GetProperty("AltText");
              _target.Text = rectangle.GetProperty("Target");
              _include.Active = rectangle.Include;

              _left.Text = rectangle.X1.ToString();
              _right.Text = rectangle.X2.ToString();
              _top.Text = rectangle.Y1.ToString();
              _bottom.Text = rectangle.Y2.ToString();
        }
Ejemplo n.º 14
0
 void SetRectangleData(Rectangle rectangle)
 {
     rectangle.SetProperty("href", _url.Text);
       rectangle.SetProperty("AltText", _altText.Text);
       rectangle.SetProperty("Target", _target.Text);
       rectangle.Include = _include.Active;
 }