if (!crsEqual) {
fGeom = JTS.transform(fGeom, mathTransform);
}
Coordinate[] coords = fGeom.getCoordinates();
java.awt.Point start = viewPort.worldToPixel(coords[0]);
java.awt.Point end = viewPort.worldToPixel(coords[coords.length - 1]);
commands.add(new ArrowDrawCommand(new Coordinate(start.x, start.y), new Coordinate(end.x, end.y)));
}
IToolContext toolContext = ApplicationGIS.createContext(ApplicationGIS.getActiveMap());
IDrawCommand compositeCommand = toolContext.getDrawFactory().createCompositeDrawCommand(commands);