Package edu.uci.ics.jung.samples
Class UnicodeLabelDemo
- java.lang.Object
-
- edu.uci.ics.jung.samples.UnicodeLabelDemo
-
public class UnicodeLabelDemo extends java.lang.Object
A demo that shows flag images as vertices, and uses unicode to render vertex labels.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
UnicodeLabelDemo.UnicodeVertexStringer<V>
-
Field Summary
Fields Modifier and Type Field Description (package private) Graph<java.lang.Integer,java.lang.Number>
graph
the graph(package private) boolean
showLabels
(package private) VisualizationViewer<java.lang.Integer,java.lang.Number>
vv
the visual component and renderer for the graph
-
Constructor Summary
Constructors Constructor Description UnicodeLabelDemo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
createEdges(java.lang.Integer[] v)
create edges for this demo graphprivate java.lang.Integer[]
createVertices(int count)
create some verticesprotected void
loadImages(java.lang.Integer[] vertices, java.util.Map<java.lang.Integer,javax.swing.Icon> imageMap)
static void
main(java.lang.String[] args)
-
-
-
Field Detail
-
graph
Graph<java.lang.Integer,java.lang.Number> graph
the graph
-
vv
VisualizationViewer<java.lang.Integer,java.lang.Number> vv
the visual component and renderer for the graph
-
showLabels
boolean showLabels
-
-
Method Detail
-
createVertices
private java.lang.Integer[] createVertices(int count)
create some vertices- Parameters:
count
- how many to create- Returns:
- the Vertices in an array
-
createEdges
void createEdges(java.lang.Integer[] v)
create edges for this demo graph- Parameters:
v
- an array of Vertices to connect
-
loadImages
protected void loadImages(java.lang.Integer[] vertices, java.util.Map<java.lang.Integer,javax.swing.Icon> imageMap)
-
main
public static void main(java.lang.String[] args)
-
-