Example #1
0
        /// <summary>
        /// Called when the shape is added to the canvas.
        /// </summary>
        public void OnAddition()
        {
            Transform(new Rectangle(Rectangle.Location, new Size(150, FolderMaterial.constHeaderHeight + 20)));
            //use a light color rather than the random low saturation color to show off the connection lines
            PaintStyle = ArtPallet.GetDefaultSolidPaintStyle();

            (PaintStyle as SolidPaintStyle).SolidColor = Color.WhiteSmoke;
        }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:TextLabel"/> class.
 /// </summary>
 public TextLabel()
     : base()
 {
     PaintStyle       = ArtPallet.GetDefaultSolidPaintStyle();
     Resizable        = false;
     connector        = new Connector(new Point((int)(Rectangle.Left + Rectangle.Width / 2), Rectangle.Bottom), Model);
     connector.Name   = "Central connector";
     connector.Parent = this;
     Connectors.Add(connector);
 }
Example #3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="s"></param>
 public TextLabel(IModel s) : base(s)
 {
     PaintStyle = ArtPallet.GetDefaultSolidPaintStyle();
     Resizable  = false;
 }