Class VertexImageShaperDemo.DemoVertexIconTransformer<V>

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

    public static class VertexImageShaperDemo.DemoVertexIconTransformer<V>
    extends java.lang.Object
    implements com.google.common.base.Function<V,​javax.swing.Icon>
    This class exists only to provide settings to turn on/off shapes and image fill in this demo.

    For a real application, just use Functions.forMap(iconMap) to provide a Function<V, Icon>.

    • Constructor Summary

      Constructors 
      Constructor Description
      DemoVertexIconTransformer​(java.util.Map<V,​javax.swing.Icon> iconMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon apply​(V v)  
      boolean isFillImages()  
      boolean isOutlineImages()  
      void setFillImages​(boolean fillImages)  
      void setOutlineImages​(boolean outlineImages)  
      • 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

      • DemoVertexIconTransformer

        public DemoVertexIconTransformer​(java.util.Map<V,​javax.swing.Icon> iconMap)
    • Method Detail

      • isFillImages

        public boolean isFillImages()
        Returns:
        Returns the fillImages.
      • setFillImages

        public void setFillImages​(boolean fillImages)
        Parameters:
        fillImages - The fillImages to set.
      • isOutlineImages

        public boolean isOutlineImages()
      • setOutlineImages

        public void setOutlineImages​(boolean outlineImages)
      • apply

        public javax.swing.Icon apply​(V v)
        Specified by:
        apply in interface com.google.common.base.Function<V,​javax.swing.Icon>
        Specified by:
        apply in interface java.util.function.Function<V,​javax.swing.Icon>