use of edu.uci.ics.jung.visualization.control.CrossoverScalingControl in project titan.EclipsePlug-ins by eclipse.
the class GraphHandler method zoom.
/**
* This function does zooming on the graph (both satellite and main views).
*
* @param scale
* : The zooming multiplier (zoom out if <1 and zoom in if >1, no
* change in case of 1)
*/
public void zoom(final float scale) {
if (actVisualisator == null) {
return;
}
final CrossoverScalingControl control = new CrossoverScalingControl();
control.scale(actVisualisator, scale, actVisualisator.getCenter());
}
use of edu.uci.ics.jung.visualization.control.CrossoverScalingControl in project titan.EclipsePlug-ins by eclipse.
the class GraphHandler method initSatView.
private void initSatView() {
if (actVisualisator == null) {
return;
}
satView = new CustomSatelliteViewer(actVisualisator);
satView.getRenderContext().setVertexLabelTransformer(NODE_LABELER);
satView.getRenderer().getVertexLabelRenderer().setPosition(Position.CNTR);
satView.getRenderContext().setVertexShapeTransformer(renderer.getShape());
satView.getRenderContext().setVertexFillPaintTransformer(renderer.getVertexColour());
satView.scaleToLayout(new CrossoverScalingControl());
}
Aggregations