Esempio n. 1
0
 private void setLineDash(java.awt.BasicStroke s)
 {
     float[] dash = J2C.ConvertDashArray(s.getDashArray(), s.getLineWidth());
     if (dash != null)
     {
         pen.DashPattern = dash;
     }
 }
Esempio n. 2
0
        public override void setStroke(java.awt.Stroke stroke)
        {
            if (this.stroke != null && this.stroke.Equals(stroke))
            {
                return;
            }
            this.stroke = stroke;
            if (stroke is java.awt.BasicStroke)
            {
                java.awt.BasicStroke s = (java.awt.BasicStroke)stroke;

                pen = new Pen(pen.Brush, s.getLineWidth());

                setLineJoin(s);

                setLineCap(s);

                setLineDash(s);
            }
        }