Search in sources :

Example 1 with CustomSatelliteViewer

use of org.eclipse.titanium.graph.gui.common.CustomSatelliteViewer 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());
}
Also used : CustomSatelliteViewer(org.eclipse.titanium.graph.gui.common.CustomSatelliteViewer) CrossoverScalingControl(edu.uci.ics.jung.visualization.control.CrossoverScalingControl)

Aggregations

CrossoverScalingControl (edu.uci.ics.jung.visualization.control.CrossoverScalingControl)1 CustomSatelliteViewer (org.eclipse.titanium.graph.gui.common.CustomSatelliteViewer)1