Class UnicodeLabelDemo
java.lang.Object
edu.uci.ics.jung.samples.UnicodeLabelDemo
A demo that shows flag images as vertices, and uses unicode
to render vertex labels.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class -
Field Summary
FieldsModifier and TypeFieldDescriptionthe graph(package private) boolean(package private) VisualizationViewer<Integer, Number> the visual component and renderer for the graph -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcreateEdges(Integer[] v) create edges for this demo graphprivate Integer[]createVertices(int count) create some verticesprotected voidloadImages(Integer[] vertices, Map<Integer, Icon> imageMap) static void
-
Field Details
-
graph
-
vv
the visual component and renderer for the graph -
showLabels
boolean showLabels
-
-
Constructor Details
-
UnicodeLabelDemo
public UnicodeLabelDemo()
-
-
Method Details
-
createVertices
create some vertices- Parameters:
count- how many to create- Returns:
- the Vertices in an array
-
createEdges
create edges for this demo graph- Parameters:
v- an array of Vertices to connect
-
loadImages
-
main
-