Ejemplo n.º 1
0
        public static DisplayItemCircle GenDisplayItemCircle(DisplayItemList list, GePoint center, double radius)
        {
            DisplayItemCircle Circle = new DisplayItemCircle(
                center, radius);
            if (list != null)
                list.AddItem(Circle);

            return Circle;
        }
Ejemplo n.º 2
0
 // Support the operation for selection
 protected override Manipulator OnItemSelection(DisplayItemCircle SelectedItem)
 {
     try
     {
         CircleNode Node = (CircleNode)m_Node;
         return new CircleChangeManipulator(Node);
     }
     catch
     {
         return null;
     }
 }
Ejemplo n.º 3
0
        public override void GenerateGraphics(DisplayItemList DLList)
        {
            if (null == DLList) return;

            if (m_dRadius < 0)
                return;

            //DisplayItemList DisplayList = new DisplayItemList();

            DisplayItemCircle Circle = new DisplayItemCircle(
                m_CenterPoint, m_dRadius);
            DLList.AddItem(Circle);

            DisplayItemPoint CenterPoint = new DisplayItemPoint(m_CenterPoint);
            DLList.AddItem(CenterPoint);
        }
Ejemplo n.º 4
0
 protected virtual Manipulator OnItemSelection(DisplayItemCircle SelectedItem)
 {
     return null;
 }