Class UnicodeLabelDemo.UnicodeVertexStringer<V>

  • All Implemented Interfaces:
    com.google.common.base.Function<V,​java.lang.String>, java.util.function.Function<V,​java.lang.String>
    Enclosing class:
    UnicodeLabelDemo

    class UnicodeLabelDemo.UnicodeVertexStringer<V>
    extends java.lang.Object
    implements com.google.common.base.Function<V,​java.lang.String>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Map<V,​javax.swing.Icon> iconMap  
      (package private) java.lang.String[] labels  
      (package private) java.util.Map<V,​java.lang.String> map  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(V input)  
      java.lang.String getLabel​(V v)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Field Detail

      • map

        java.util.Map<V,​java.lang.String> map
      • iconMap

        java.util.Map<V,​javax.swing.Icon> iconMap
      • labels

        java.lang.String[] labels
    • Constructor Detail

      • UnicodeVertexStringer

        public UnicodeVertexStringer​(V[] vertices)
    • Method Detail

      • getLabel

        public java.lang.String getLabel​(V v)
        See Also:
        edu.uci.ics.jung.graph.decorators.VertexStringer#getLabel(edu.uci.ics.jung.graph.Vertex)
      • apply

        public java.lang.String apply​(V input)
        Specified by:
        apply in interface com.google.common.base.Function<V,​java.lang.String>
        Specified by:
        apply in interface java.util.function.Function<V,​java.lang.String>