Class LensVertexImageShaperDemo.VertexStringerImpl<V>

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

    class LensVertexImageShaperDemo.VertexStringerImpl<V>
    extends java.lang.Object
    implements com.google.common.base.Function<V,​java.lang.String>
    A simple implementation of VertexStringer that gets Vertex labels from a Map
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean enabled  
      (package private) java.util.Map<V,​java.lang.String> map  
    • Constructor Summary

      Constructors 
      Constructor Description
      VertexStringerImpl​(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 v)  
      boolean isEnabled()  
      void setEnabled​(boolean enabled)  
      • 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
      • enabled

        boolean enabled
    • Constructor Detail

      • VertexStringerImpl

        public VertexStringerImpl​(java.util.Map<V,​java.lang.String> map)
    • Method Detail

      • apply

        public java.lang.String apply​(V v)
        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>
        See Also:
        edu.uci.ics.jung.graph.decorators.VertexStringer#getLabel(edu.uci.ics.jung.graph.Vertex)
      • isEnabled

        public boolean isEnabled()
        Returns:
        Returns the enabled.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Parameters:
        enabled - The enabled to set.