how i draw a Arrow and set the Starting point and end point in word for java!
thanks!
how i draw a Arrow and set the Starting point and end point in word for java!
thanks!
Hi juao,
Thanks for your query. Please use the following code snippet to draw an arrow shape. Please also read following documentation links for your kind reference.
http://www.aspose.com/docs/display/wordsjava/Shape
http://www.aspose.com/docs/display/wordsjava/ShapeType
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
Shape arrowShape = new Shape(doc, ShapeType.ARROW);
arrowShape.setLeft(100);
arrowShape.setTop(200);
arrowShape.setWidth(100);
arrowShape.setHeight(10);
arrowShape.setFillColor(Color.blue);
//arrowShape.getStroke().setStartArrowType(ArrowType.OPEN);
//arrowShape.getStroke().setStartArrowWidth(ArrowWidth.MEDIUM);
//arrowShape.getStroke().setStartArrowLength(ArrowLength.SHORT);
builder.insertNode(arrowShape);