Search in sources :

Example 11 with Graph2DView

use of y.view.Graph2DView in project binnavi by google.

the class CRootNodeComponent method createGui.

/**
   * Creates the GUI of this component.
   */
private void createGui() {
    final Graph2DView view = new ZyGraph2DView(new Graph2D());
    view.setScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    final DefaultBackgroundRenderer backgroundRenderer = new DefaultBackgroundRenderer(view);
    backgroundRenderer.setImage(BACKGROUND_IMAGE);
    backgroundRenderer.setMode(DefaultBackgroundRenderer.CENTERED);
    backgroundRenderer.setColor(Color.white);
    view.setBackgroundRenderer(backgroundRenderer);
    add(view, BorderLayout.CENTER);
}
Also used : DefaultBackgroundRenderer(y.view.DefaultBackgroundRenderer) ZyGraph2DView(com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.ZyGraph2DView) Graph2DView(y.view.Graph2DView) ZyGraph2DView(com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.ZyGraph2DView) Graph2D(y.view.Graph2D)

Aggregations

Graph2DView (y.view.Graph2DView)11 ImageOutputHandler (y.io.ImageOutputHandler)2 SVGIOHandler (yext.svg.io.SVGIOHandler)2 ZyGraph2DView (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.ZyGraph2DView)1 IOException (java.io.IOException)1 ActionMap (javax.swing.ActionMap)1 InputMap (javax.swing.InputMap)1 DefaultBackgroundRenderer (y.view.DefaultBackgroundRenderer)1 Graph2D (y.view.Graph2D)1 Graph2DViewActions (y.view.Graph2DViewActions)1 HitInfo (y.view.HitInfo)1 HitInfoFactory (y.view.HitInfoFactory)1