Question

How can I create a hollow arrow at the end of a PolylineConnection?

Currently I have a solid arrow using:

PolylineConnection c
PolygonDecoration decoration = new PolygonDecoration();
PointList decorationPointList = new PointList();
decorationPointList.addPoint(0, 0);
decorationPointList.addPoint(-2, 2);
decorationPointList.addPoint(-2, 0);
decorationPointList.addPoint(-2, -2);
decoration.setTemplate(decorationPointList);
c.setSourceDecoration(decoration);

But I need only the outline of an arrow, with the center hollow.

Was it helpful?

Solution

Didn't have the time to test it, but setFill(boolean) should do it:

decoration.setTemplate(decorationPointList);
decoration.setFill(false);

OTHER TIPS

Have you tried using drawPolyline? It seems to after having a brief look at the docs that it should do what you are after.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top