Class LensVertexImageShaperDemo.VertexStringerImpl<V>

java.lang.Object
edu.uci.ics.jung.samples.LensVertexImageShaperDemo.VertexStringerImpl<V>
All Implemented Interfaces:
com.google.common.base.Function<V,String>, Function<V,String>
Enclosing class:
LensVertexImageShaperDemo

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

  • Constructor Details

    • VertexStringerImpl

      public VertexStringerImpl(Map<V,String> map)
  • Method Details

    • apply

      public String apply(V v)
      Specified by:
      apply in interface com.google.common.base.Function<V,String>
      Specified by:
      apply in interface Function<V,String>
      See Also:
      • invalid reference
        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.