• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Stroke类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Stroke的典型用法代码示例。如果您正苦于以下问题:C# Stroke类的具体用法?C# Stroke怎么用?C# Stroke使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Stroke类属于命名空间,在下文中一共展示了Stroke类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ClipPath

 public ClipPath(double[] xValue, double[] yValue, bool clip, bool fillPath, bool drawPath)
 {
   int num1 = clip ? 1 : 0;
   int num2 = fillPath ? 1 : 0;
   int num3 = drawPath ? 1 : 0;
   base.\u002Ector();
   ClipPath clipPath = this;
   this.xValue = (double[]) null;
   this.yValue = (double[]) null;
   this.clip = true;
   this.drawPath = false;
   this.fillPath = false;
   this.fillPaint = (Paint) null;
   this.drawPaint = (Paint) null;
   this.drawStroke = (Stroke) null;
   this.composite = (Composite) null;
   this.xValue = xValue;
   this.yValue = yValue;
   this.clip = num1 != 0;
   this.fillPath = num2 != 0;
   this.drawPath = num3 != 0;
   this.fillPaint = (Paint) Color.gray;
   this.drawPaint = (Paint) Color.blue;
   this.drawStroke = (Stroke) new BasicStroke(1f);
   this.composite = (Composite) AlphaComposite.Src;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:26,代码来源:ClipPath.cs


示例2: StatisticalLineAndShapeRenderer

 public StatisticalLineAndShapeRenderer(bool linesVisible, bool shapesVisible)
   : base(linesVisible, shapesVisible)
 {
   StatisticalLineAndShapeRenderer andShapeRenderer = this;
   this.errorIndicatorPaint = (Paint) null;
   this.errorIndicatorStroke = (Stroke) null;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:7,代码来源:StatisticalLineAndShapeRenderer.cs


示例3: XYLineAnnotation

 public XYLineAnnotation(double x1, double y1, double x2, double y2, Stroke stroke, Paint paint)
 {
   XYLineAnnotation xyLineAnnotation = this;
   if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.x1 = x1;
     this.y1 = y1;
     this.x2 = x2;
     this.y2 = y2;
     this.stroke = stroke;
     this.paint = paint;
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:25,代码来源:XYLineAnnotation.cs


示例4: LineBorder

 public LineBorder(Paint paint, Stroke stroke, RectangleInsets insets)
 {
   base.\u002Ector();
   LineBorder lineBorder = this;
   if (paint == null)
   {
     string str = "Null 'paint' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (stroke == null)
   {
     string str = "Null 'stroke' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (insets == null)
   {
     string str = "Null 'insets' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.paint = paint;
     this.stroke = stroke;
     this.insets = insets;
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:29,代码来源:LineBorder.cs


示例5: MeterInterval

 public MeterInterval(string label, Range range, Paint outlinePaint, Stroke outlineStroke, Paint backgroundPaint)
 {
   base.\u002Ector();
   MeterInterval meterInterval = this;
   if (label == null)
   {
     string str = "Null 'label' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (range == null)
   {
     string str = "Null 'range' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.label = label;
     this.range = range;
     this.outlinePaint = outlinePaint;
     this.outlineStroke = outlineStroke;
     this.backgroundPaint = backgroundPaint;
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:25,代码来源:MeterInterval.cs


示例6: PaintScaleLegend

 public PaintScaleLegend(PaintScale scale, ValueAxis axis)
 {
   PaintScaleLegend paintScaleLegend = this;
   if (axis == null)
   {
     string str = "Null 'axis' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.scale = scale;
     this.axis = axis;
     this.axis.addChangeListener((AxisChangeListener) this);
     this.axisLocation = AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT;
     this.axisOffset = 0.0;
     this.axis.setRange(scale.getLowerBound(), scale.getUpperBound());
     this.stripWidth = 15.0;
     this.stripOutlineVisible = true;
     this.stripOutlinePaint = (Paint) Color.gray;
     this.stripOutlineStroke = (Stroke) new BasicStroke(0.5f);
     this.backgroundPaint = (Paint) Color.white;
     this.subdivisions = 100;
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:25,代码来源:PaintScaleLegend.cs


示例7: XYPolygonAnnotation

 public XYPolygonAnnotation(double[] polygon, Stroke stroke, Paint outlinePaint, Paint fillPaint)
 {
   XYPolygonAnnotation polygonAnnotation = this;
   if (polygon == null)
   {
     string str = "Null 'polygon' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     int length = polygon.Length;
     int num1 = 2;
     int num2 = -1;
     if ((num1 != num2 ? length % num1 : 0) != 0)
     {
       string str = "The 'polygon' array must contain an even number of items.";
       Throwable.__\u003CsuppressFillInStackTrace\u003E();
       throw new IllegalArgumentException(str);
     }
     else
     {
       this.polygon = (double[]) polygon.Clone();
       this.stroke = stroke;
       this.outlinePaint = outlinePaint;
       this.fillPaint = fillPaint;
     }
   }
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:29,代码来源:XYPolygonAnnotation.cs


示例8: StackedXYAreaRenderer

 public StackedXYAreaRenderer(int type, XYToolTipGenerator labelGenerator, XYURLGenerator urlGenerator)
   : base(type, labelGenerator, urlGenerator)
 {
   StackedXYAreaRenderer stackedXyAreaRenderer = this;
   this.shapePaint = (Paint) null;
   this.shapeStroke = (Stroke) null;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:7,代码来源:StackedXYAreaRenderer.cs


示例9: StrokeSample

 public StrokeSample(Stroke stroke)
 {
   base.\u002Ector();
   StrokeSample strokeSample = this;
   this.stroke = stroke;
   this.preferredSize = new Dimension(80, 18);
   this.setPreferredSize(this.preferredSize);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:StrokeSample.cs


示例10: DialCap

 public DialCap()
 {
   DialCap dialCap = this;
   this.radius = 0.05;
   this.fillPaint = (Paint) Color.white;
   this.outlinePaint = (Paint) Color.black;
   this.outlineStroke = (Stroke) new BasicStroke(2f);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:DialCap.cs


示例11: CreateBrush

 public static IBrush CreateBrush(Stroke stroke, string name, Dictionary<string, object> options)
 {
     // try and create the brush
     // if unable to instantiat, return LineBrush by default
     IBrush o = (ScriptableObject.CreateInstance(name) as IBrush) ?? ScriptableObject.CreateInstance<LineBrush>();
     o.Stroke = stroke;
     return o;
 }
开发者ID:ivlab,项目名称:Paint3D,代码行数:8,代码来源:BrushManager.cs


示例12: StandardDialFrame

 public StandardDialFrame()
 {
   StandardDialFrame standardDialFrame = this;
   this.backgroundPaint = (Paint) Color.gray;
   this.foregroundPaint = (Paint) Color.black;
   this.stroke = (Stroke) new BasicStroke(2f);
   this.radius = 0.95;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:StandardDialFrame.cs


示例13: CategoryMarker

 public CategoryMarker(IComparable key, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
   : base(paint, stroke, outlinePaint, outlineStroke, alpha)
 {
   CategoryMarker categoryMarker = this;
   this.drawAsLine = false;
   this.key = key;
   this.setLabelOffsetType(LengthAdjustmentType.__\u003C\u003EEXPAND);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:8,代码来源:CategoryMarker.cs


示例14: IntervalMarker

 public IntervalMarker(double start, double end, Paint paint, Stroke stroke, Paint outlinePaint, Stroke outlineStroke, float alpha)
   : base(paint, stroke, outlinePaint, outlineStroke, alpha)
 {
   IntervalMarker intervalMarker = this;
   this.startValue = start;
   this.endValue = end;
   this.gradientPaintTransformer = (GradientPaintTransformer) null;
   this.setLabelOffsetType(LengthAdjustmentType.__\u003C\u003ECONTRACT);
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:9,代码来源:IntervalMarker.cs


示例15: Start

    void Start()
    {
        prevMousePosition = new Vector3(-1.0f, -1.0f, -1.0f);

        strokes = new ArrayList();
        currentStroke = null;

        strokeMeshes = new ArrayList();
    }
开发者ID:jawa0,项目名称:jabarepo,代码行数:9,代码来源:TrackPen.cs


示例16: XYErrorRenderer

 public XYErrorRenderer()
   : base(false, true)
 {
   XYErrorRenderer xyErrorRenderer = this;
   this.drawXError = true;
   this.drawYError = true;
   this.errorPaint = (Paint) null;
   this.errorStroke = (Stroke) null;
   this.capLength = 4.0;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:10,代码来源:XYErrorRenderer.cs


示例17: getEdge

 //Gets the edge corresponding to the given stroke
 public Edge getEdge(Stroke s)
 {
     for(int i=0; i<list.Count; i++)
     {
         Edge e = list[i] as Edge;
         if(e.strokeEquals(s))
             return e;
     }
     return null;
 }
开发者ID:mdayaram,项目名称:graph-animator,代码行数:11,代码来源:Edges.cs


示例18: StartNewStroke

 public void StartNewStroke()
 {
     if (CurrentStroke == null)
     {
         CurrentStroke = new Stroke();
         strokes.Add(CurrentStroke);
         curIndex = strokes.Count - 1;
         CurrentStroke.Brush = BrushManager.CreateBrush(CurrentStroke, SelectedBrush, null);
         CurrentStroke.Brush.SetOptions(options[CurrentStroke.Brush.BrushName]);
     }
 }
开发者ID:ivlab,项目名称:Paint3D,代码行数:11,代码来源:Painting.cs


示例19: RingPlot

 public RingPlot(PieDataset dataset)
   : base(dataset)
 {
   RingPlot ringPlot = this;
   this.separatorsVisible = true;
   this.separatorStroke = (Stroke) new BasicStroke(0.5f);
   this.separatorPaint = (Paint) Color.gray;
   this.innerSeparatorExtension = 0.2;
   this.outerSeparatorExtension = 0.2;
   this.sectionDepth = 0.2;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:11,代码来源:RingPlot.cs


示例20: XYBoxAnnotation

 public XYBoxAnnotation(double x0, double y0, double x1, double y1, Stroke stroke, Paint outlinePaint, Paint fillPaint)
 {
   XYBoxAnnotation xyBoxAnnotation = this;
   this.x0 = x0;
   this.y0 = y0;
   this.x1 = x1;
   this.y1 = y1;
   this.stroke = stroke;
   this.outlinePaint = outlinePaint;
   this.fillPaint = fillPaint;
 }
开发者ID:NALSS,项目名称:SmartDashboard.NET,代码行数:11,代码来源:XYBoxAnnotation.cs



注:本文中的Stroke类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# StrokeCollection类代码示例发布时间:2022-05-24
下一篇:
C# StripableText类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap