/** * set the stroke width * @param w the width of the stroke */ public void addStrokeWidth(float w) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); // if (w == 0) { // w = 0.1f; // } sc.setWidth(w); addCommand(sc); }
/** * set the miter limit */ public void addMiterLimit(float limit) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setMiterLimit(limit); addCommand(sc); }
/** * set the miter limit */ public void addMiterLimit(float limit) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setMiterLimit(limit); addCommand(sc); }
/** * set the stroke width * @param w the width of the stroke */ public void addStrokeWidth(float w) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); // if (w == 0) { // w = 0.1f; // } sc.setWidth(w); addCommand(sc); }
/** * set the dash style * @param dashary the array of on-off lengths * @param phase offset of the array at the start of the line drawing */ public void addDash(float[] dashary, float phase) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setDash(dashary, phase); addCommand(sc); }
/** * set the stroke width * @param w the width of the stroke */ public void addStrokeWidth(float w) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); // if (w == 0) { // w = 0.1f; // } sc.setWidth(w); addCommand(sc); }
/** * set the dash style * @param dashary the array of on-off lengths * @param phase offset of the array at the start of the line drawing */ public void addDash(float[] dashary, float phase) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setDash(dashary, phase); addCommand(sc); }
/** * set the miter limit */ public void addMiterLimit(float limit) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setMiterLimit(limit); addCommand(sc); }
/** * set the dash style * @param dashary the array of on-off lengths * @param phase offset of the array at the start of the line drawing */ public void addDash(float[] dashary, float phase) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); sc.setDash(dashary, phase); addCommand(sc); }
/** * set the line join style * @param joinstyle the join style: 0 = MITER, 1 = ROUND, 2 = BEVEL */ public void addLineJoin(int joinstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int join = BasicStroke.JOIN_MITER; switch (joinstyle) { case 0: join = BasicStroke.JOIN_MITER; break; case 1: join = BasicStroke.JOIN_ROUND; break; case 2: join = BasicStroke.JOIN_BEVEL; break; } sc.setLineJoin(join); addCommand(sc); }
/** * set the end cap style * @param capstyle the cap style: 0 = BUTT, 1 = ROUND, 2 = SQUARE */ public void addEndCap(int capstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int cap = BasicStroke.CAP_BUTT; switch (capstyle) { case 0: cap = BasicStroke.CAP_BUTT; break; case 1: cap = BasicStroke.CAP_ROUND; break; case 2: cap = BasicStroke.CAP_SQUARE; break; } sc.setEndCap(cap); addCommand(sc); }
/** * set the end cap style * @param capstyle the cap style: 0 = BUTT, 1 = ROUND, 2 = SQUARE */ public void addEndCap(int capstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int cap = BasicStroke.CAP_BUTT; switch (capstyle) { case 0: cap = BasicStroke.CAP_BUTT; break; case 1: cap = BasicStroke.CAP_ROUND; break; case 2: cap = BasicStroke.CAP_SQUARE; break; } sc.setEndCap(cap); addCommand(sc); }
/** * set the line join style * @param joinstyle the join style: 0 = MITER, 1 = ROUND, 2 = BEVEL */ public void addLineJoin(int joinstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int join = BasicStroke.JOIN_MITER; switch (joinstyle) { case 0: join = BasicStroke.JOIN_MITER; break; case 1: join = BasicStroke.JOIN_ROUND; break; case 2: join = BasicStroke.JOIN_BEVEL; break; } sc.setLineJoin(join); addCommand(sc); }
/** * set the end cap style * @param capstyle the cap style: 0 = BUTT, 1 = ROUND, 2 = SQUARE */ public void addEndCap(int capstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int cap = BasicStroke.CAP_BUTT; switch (capstyle) { case 0: cap = BasicStroke.CAP_BUTT; break; case 1: cap = BasicStroke.CAP_ROUND; break; case 2: cap = BasicStroke.CAP_SQUARE; break; } sc.setEndCap(cap); addCommand(sc); }
/** * set the line join style * @param joinstyle the join style: 0 = MITER, 1 = ROUND, 2 = BEVEL */ public void addLineJoin(int joinstyle) { PDFChangeStrokeCmd sc = new PDFChangeStrokeCmd(); int join = BasicStroke.JOIN_MITER; switch (joinstyle) { case 0: join = BasicStroke.JOIN_MITER; break; case 1: join = BasicStroke.JOIN_ROUND; break; case 2: join = BasicStroke.JOIN_BEVEL; break; } sc.setLineJoin(join); addCommand(sc); }