Package org.jungrapht.samples
Sample applications created using JUNG, largely focused on visualization. Current features demonstrated in the samples include:
- visualization of changing graphs
- visualization animation
- layouts: BalloonLayout, TreeLayout, RadialTreeLayout
- clustering, shortest path, minimum spanning tree
- sublayouts
- label variations: orientation, position
- customization of color, shape, stroke
- on-the-fly visualization filtering
- graph editor
- node 'collapsing'
- multiple models, multiple views with the same model
- nodes as Icons
- magnifying lens overlay
- satellite view
-
Class Summary Class Description AddVertexDemo A variation of old AddVertexDemo that animates transitions between graph algorithms.AnnotationsDemo Demonstrates annotation of graph elements.DrawnIconVertexDemo A demo that shows drawn Icons as verticesEdgeLabelDemo Demonstrates jung support for drawing edge labels that can be positioned at any point along the edge, and can be rotated to be parallel with the edge.GraphEditorDemo Shows how to create a graph editor with JUNG.ImageEdgeLabelDemo Demonstrates the use of images on graph edge labels.InternalFrameSatelliteViewDemo Similar to the SatelliteViewDemo, but using JInternalFrame.LensDemo Demonstrates the use ofHyperbolicTransformandMagnifyTransformapplied to either the model (graph layout) or the view (VisualizationViewer) The hyperbolic transform is applied in an elliptical lens that affects that part of the visualization.LensVertexImageFromLabelShaperDemo LensVertexImageShaperDemo Demonstrates the use of images to represent graph vertices.LensVertexImageShaperDemo.PickWithIconListener MinimalVisualization A demo that shows a minimal visualizationMultiViewDemo Demonstrates 3 views of one graph in one model with one layout.SatelliteViewDemo Demonstrates the construction of a graph visualization with a main and a satellite view.ShortestPathDemo Demonstrates use of the JGrapht shortest path algorithm and visualization of the results.ShowLayouts Demonstrates several of the graph layout algorithms.ShowLayoutsWithGuavaGraphs Demonstrates several of the graph layout algorithms.SubLayoutDemo Demonstrates the AggregateLayout class.TwoModelDemo Demonstrates a single graph with 2 layouts in 2 views.UnicodeLabelDemo A demo that shows flag images as vertices, and uses unicode to render vertex labels.VertexCollapseDemo A demo that shows how collections of vertices can be collapsed into a single vertex.VertexCollapseDemoWithLayouts A demo that shows how collections of vertices can be collapsed into a single vertex.VertexImageShaperDemo Demonstrates the use of images to represent graph vertices.VertexImageShaperDemo.DemoIconShapeFunction<V> this class exists only to provide settings to turn on/off shapes and image fill in this demo.VertexImageShaperDemo.DemoVertexIconTransformer<V> This class exists only to provide settings to turn on/off shapes and image fill in this demo.VertexImageShaperDemo.PickWithIconListener<V> When Vertices are selected, add a checkmark icon to the imager.VertexImageShaperDemo.VertexStringerImpl<V> A simple implementation of Function that gets Vertex labels from a MapVertexLabelAsShapeDemo This demo shows how to use the vertex labels themselves as the vertex shapes.VertexLabelPositionDemo Demonstrates vertex label positioning controlled by the user.VisualizationImageServerDemo Demonstrates VisualizationImageServer.VisualizationScrollPaneDemo Demonstrates the use ofVisualizationScrollPane.WorldMapGraphDemo Shows a graph overlaid on a world map image.