public void setOrientation(final int orientation) {
this.orientation = orientation;
synchronized(vis) {
DefaultRendererFactory drf = new DefaultRendererFactory();
drf.setDefaultRenderer(new CustomShapeRenderer());
drf.add(new InGroupPredicate(Constants.NODE_DECORATORS),
new MyLabelRenderer());
drf.add(new InGroupPredicate(Constants.TREE_EDGES),
getEdgeTypeRenderer(orientation));
vis.setRendererFactory(drf);
vis.cancel("filter");
graphLayout.setOrientation(orientation);