| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //
- // System.Drawing.Drawing2D.CustomLineCap.cs
- //
- // Authors:
- // Dennis Hayes ([email protected])
- // Andreas Nahr ([email protected])
- //
- // (C) 2002/3 Ximian, Inc
- //
- using System;
- namespace System.Drawing.Drawing2D {
- /// <summary>
- /// Summary description for CustomLineCap.
- /// </summary>
- public class CustomLineCap : MarshalByRefObject, ICloneable, IDisposable {
- private LineCap baseCap;
- private float baseInset;
- private LineJoin strokeJoin;
- private float widthScale;
- // Constructors
- // Constructor with no parameters is not part of spec. It was needed to get to compile. Bug in compiler?
- protected CustomLineCap() {
- }
- public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePath, LineCap baseCap, float baseInset) {
- this.baseInset = baseInset;
- }
- public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth, LineCap baseCap) {
- this.baseCap = baseCap;
- }
- public CustomLineCap(GraphicsPath fillPAth, GraphicsPath strokePAth) {
- }
- public LineCap BaseCap{
- get {
- return baseCap;
- }
- set {
- baseCap = value;
- }
- }
- public LineJoin StrokeJoin{
- get {
- return strokeJoin;
- }
- set {
- strokeJoin = value;
- }
- }
- public float BaseInset{
- get {
- return baseInset;
- }
- set {
- baseInset = value;
- }
- }
- public float WidthScale{
- get {
- return widthScale;
- }
- set {
- widthScale = value;
- }
- }
- //Public Methods
- // Implment IConeable.Clone
- public object Clone(){
- //FIXME
- return new CustomLineCap();
- }
-
- public virtual void Dispose(){
- Dispose(true);
- }
- public virtual void Dispose(bool disposing){
- }
-
- public void GetStrokeCaps(out LineCap startCap, out LineCap endCap){
- startCap = baseCap;
- endCap = baseCap;
- }
- public void SetStrokeCaps(LineCap startCap, LineCap endCap){
- }
- }
- }
|