Class VertexImageShaperDemo.PickWithIconListener<V>

  • All Implemented Interfaces:
    java.awt.event.ItemListener, java.util.EventListener
    Enclosing class:
    VertexImageShaperDemo

    public static class VertexImageShaperDemo.PickWithIconListener<V>
    extends java.lang.Object
    implements java.awt.event.ItemListener
    When Vertices are picked, add a checkmark icon to the imager. Remove the icon when a Vertex is unpicked
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.Icon checked  
      (package private) com.google.common.base.Function<V,​javax.swing.Icon> imager  
    • Constructor Summary

      Constructors 
      Constructor Description
      PickWithIconListener​(com.google.common.base.Function<V,​javax.swing.Icon> imager)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void itemStateChanged​(java.awt.event.ItemEvent e)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • imager

        com.google.common.base.Function<V,​javax.swing.Icon> imager
      • checked

        javax.swing.Icon checked
    • Constructor Detail

      • PickWithIconListener

        public PickWithIconListener​(com.google.common.base.Function<V,​javax.swing.Icon> imager)
    • Method Detail

      • itemStateChanged

        public void itemStateChanged​(java.awt.event.ItemEvent e)
        Specified by:
        itemStateChanged in interface java.awt.event.ItemListener