CustomLineCap.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. //
  2. // System.Drawing.Drawing2D.CustomLineCap.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. /// <summary>
  12. /// Summary description for CustomLineCap.
  13. /// </summary>
  14. public class CustomLineCap {// : MarshalByRefObject, ICloneable, IDisposable {
  15. private LineCap baseCap;
  16. private float baseInsert;
  17. private LineJoin strokeJoin;
  18. private float widthScale;
  19. // Constructors
  20. // Constructor with no parameters is not part of spec. It was needed to get to compile. Bug in compiler?
  21. protected CustomLineCap() {
  22. }
  23. public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePath, LineCap baseCap, float baseInset) {
  24. this.baseInsert = baseInsert;
  25. }
  26. public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth, LineCap baseCap) {
  27. this.baseCap = baseCap;
  28. }
  29. public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth) {
  30. }
  31. public LineCap BaseCap{
  32. get {
  33. return baseCap;
  34. }
  35. set {
  36. baseCap = value;
  37. }
  38. }
  39. public LineJoin StrokeJoin{
  40. get {
  41. return strokeJoin;
  42. }
  43. set {
  44. strokeJoin = value;
  45. }
  46. }
  47. public float BaseInsert{
  48. get {
  49. return baseInsert;
  50. }
  51. set {
  52. baseInsert = value;
  53. }
  54. }
  55. public float WidthScale{
  56. get {
  57. return widthScale;
  58. }
  59. set {
  60. widthScale = value;
  61. }
  62. }
  63. //Public Methods
  64. // Implment IConeable.Clone
  65. //public virtural object Clone(){
  66. // //CustomLineCap newcustomlinecap = new CustomLineCap(
  67. //}
  68. public virtual void Dispose(){
  69. Dispose(true);
  70. }
  71. public virtual void Dispose(bool disposing){
  72. }
  73. public void GetStrokeCaps(out LineCap startCap, out LineCap endCap){
  74. startCap = baseCap;
  75. endCap = baseCap;
  76. }
  77. public void SetStrokeCaps(LineCap startCap, LineCap endCap){
  78. }
  79. // Protected Methods
  80. ~CustomLineCap(){
  81. }
  82. }
  83. }