Package org.jungrapht.samples.util
Class ControlHelpers
- java.lang.Object
-
- org.jungrapht.samples.util.ControlHelpers
-
public class ControlHelpers extends Object
helpers for sample demos. Not included/supported in jungrapht-visualization jar Copy and modify at will for use in other applications.- Author:
- Tom Nelson
-
-
Constructor Summary
Constructors Constructor Description ControlHelpers()
-
Method Summary
-
-
-
Method Detail
-
getZoomControls
public static JComponent getZoomControls(String title, VisualizationServer vv)
-
getZoomControls
public static JComponent getZoomControls(VisualizationServer vv)
-
getZoomControls
public static JComponent getZoomControls(String title, VisualizationServer vv, LayoutManager buttonContainerLayoutManager)
-
getZoomControls
public static JComponent getZoomControls(VisualizationServer vv, LayoutManager buttonContainerLayoutManager)
-
getMultiselectPanel
public static JComponent getMultiselectPanel(String title, VisualizationViewer vv)
Demo helper to make a titled toggle button to choose free-form multiselection- Parameters:
title
-vv
-- Returns:
-
getModeControls
public static JComponent getModeControls(String title, VisualizationViewer vv)
-
getModeControls
public static JComponent getModeControls(VisualizationViewer vv)
-
getModeControls
public static JComponent getModeControls(String title, DefaultModalGraphMouse graphMouse)
-
getModeControls
public static JComponent getModeControls(DefaultModalGraphMouse graphMouse)
-
getModeRadio
public static JComponent getModeRadio(String title, DefaultModalGraphMouse graphMouse)
-
getModeRadio
public static JComponent getModeRadio(DefaultModalGraphMouse graphMouse)
-
getCenteredContainer
public static JComponent getCenteredContainer(String title, JComponent child)
-
getGridContainer
public static JComponent getGridContainer(String title, int rows, JComponent... children)
-
getContainer
public static JComponent getContainer(String title, Box box, JComponent... children)
-
getContainer
public static JComponent getContainer(Box box, JComponent... children)
-
getCenteredContainer
public static JComponent getCenteredContainer(String title, Box box, JComponent... children)
-
getCenteredContainer
public static JComponent getCenteredContainer(Box box, JComponent... children)
-
-