Class VertexImageShaperDemo.VertexStringerImpl<V,​S>

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

    public static class VertexImageShaperDemo.VertexStringerImpl<V,​S>
    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
    Author:
    Tom Nelson
    • 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
    • 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,​S>
        Specified by:
        apply in interface java.util.function.Function<V,​S>
      • isEnabled

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

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