2
0

AdjustableArrowCap.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. //
  2. // System.Drawing.Drawing2D.AdjustableArrowCap.cs
  3. //
  4. // Author:
  5. // Dennis Hayes ([email protected])
  6. //
  7. // (C) 2002/3 Ximian, Inc
  8. //
  9. using System;
  10. namespace System.Drawing.Drawing2D
  11. {
  12. /// <summary>
  13. /// Summary description for AdjustableArrowCap.
  14. /// </summary>
  15. public sealed class AdjustableArrowCap : CustomLineCap
  16. {
  17. private bool isFilled;
  18. private float height;
  19. private float width;
  20. private float middleInset;
  21. //Constructors
  22. public AdjustableArrowCap(float width, float height, bool isFilled) {
  23. this.isFilled = isFilled;
  24. this.height = height;
  25. this.width = width;
  26. middleInset = 0;
  27. }
  28. public AdjustableArrowCap(float width, float height) {
  29. isFilled = true;
  30. this.height = height;
  31. this.width = width;
  32. middleInset = 0;
  33. //AdjustableArrowCap(width, height, true);
  34. }
  35. //Public Properities
  36. [MonoTODO] //redraw on set
  37. public bool Filled {
  38. get {
  39. return isFilled;
  40. }
  41. set {
  42. isFilled = value;
  43. //Redraw!
  44. }
  45. }
  46. [MonoTODO] //redraw on set
  47. public float Width {
  48. get {
  49. return width;
  50. }
  51. set {
  52. width = value;
  53. //Redraw!
  54. }
  55. }
  56. [MonoTODO] //redraw on set
  57. public float Height {
  58. get {
  59. return height;
  60. }
  61. set {
  62. height = value;
  63. //Redraw!
  64. }
  65. }
  66. [MonoTODO] //redraw on set
  67. public float MiddleInset {
  68. get {
  69. return middleInset;
  70. }
  71. set {
  72. middleInset = value;
  73. //Redraw!
  74. }
  75. }
  76. }
  77. }