Example #1
0
 public LineShape(EPKernel container, StrokableProperty property)
     : base(container, property)
 {
     _hotspots = new DraggableHotSpot[] {
         new DraggableHotSpot(HotSpotType.LineVertex),
         new DraggableHotSpot(HotSpotType.LineVertex)
     };
 }
Example #2
0
 public StrokableShape(EPKernel container, StrokableProperty property)
     : base(container, property)
 {
     _property = property;
     if (_property != null)
     {
         SetNewPen();
     }
 }
Example #3
0
 public BrokenLine(EPKernel container, StrokableProperty pro)
     : base(container, pro)
 {
     _hotspots = new DraggableHotSpot[4];
     for (int i = 0; i < 4; i++)
     {
         _hotspots[i] = new DraggableHotSpot(HotSpotType.LineVertex);
     }
 }
Example #4
0
        public DrawableBase(EPKernel container, BaseProperty property)
        {
            path           = new GraphicsPath();
            matrix         = new Matrix();
            _container     = container;
            _shapeProperty = property;

            is_visible    = true;
            is_increating = true;
        }
Example #5
0
        public void initialValue()
        {
            kernel    = new EPKernel(_size, this);//(new Size(600, 480));
            imageSize = kernel.FinalBitmap.Size;

            WhenImageSizeChanged();
            RecalculateCanvas();

            kernel.FinalBitmapChanged    += new EventHandler(RefleshFinalBitmapChanged);
            kernel.SelectedShapesChanged += new EventHandler(kernel_SelectedObjectsChanged);
            kernel.SelectToolInSelecting += new EventHandler(kernel_SelectToolInSelecting);
            kernel.CursorTypeChanged     += new EventHandler(kernel_CursorTypeChanged);

            kernel.SetNewTool(ToolType.ShapeSelect);
        }
Example #6
0
        public RectShape(EPKernel container, FillableProperty pro, EPCanvas p, AdItemType rt)
            : this(container, pro)
        {
            parent   = p;
            ItemType = rt;

            switch (ItemType)
            {
            case AdItemType.Video:
                Prop = new Video();
                break;

            case AdItemType.Picture:
                Prop = new Picture();
                break;

            case AdItemType.Subtitle:
                Prop = new Subtitle();
                break;

            default:
                break;
            }
        }
Example #7
0
 public IndicatorArrow(EPKernel container, IndicatorArrowProperty pro)
     : base(container, null)
 {
     _property = pro;
 }
Example #8
0
        //public LocationChgEventArgs LastLocation;

        public RectShape(EPKernel container, FillableProperty pro)
            : base(container, pro)
        {
            initialProperties();
            initialHotspotRects();
        }
Example #9
0
 public RoundedRectShape(EPKernel container, RoundedRectProperty pro)
     : base(container, pro)
 {
     _pro = pro;
     initialValue();
 }
Example #10
0
 public FillableShape(EPKernel container, FillableProperty property)
     : base(container, property)
 {
     _pro = property;
     SetNewBrush();
 }
Example #11
0
 public EllipseShape(EPKernel container, FillableProperty pro)
     : base(container, pro)
 {
 }