Class TreeCollapseDemo.ClusterVertexShapeFunction<V>

  • Type Parameters:
    V - the vertex type
    All Implemented Interfaces:
    com.google.common.base.Function<V,​java.awt.Shape>, SettableVertexShapeTransformer<V>, java.util.function.Function<V,​java.awt.Shape>
    Enclosing class:
    TreeCollapseDemo

    class TreeCollapseDemo.ClusterVertexShapeFunction<V>
    extends EllipseVertexShapeTransformer<V>
    a demo class that will create a vertex shape that is either a polygon or star. The number of sides corresponds to the number of vertices that were collapsed into the vertex represented by this shape.
    • Constructor Detail

      • ClusterVertexShapeFunction

        ClusterVertexShapeFunction()
    • Method Detail

      • apply

        public java.awt.Shape apply​(V v)
        Specified by:
        apply in interface com.google.common.base.Function<V,​java.awt.Shape>
        Specified by:
        apply in interface java.util.function.Function<V,​java.awt.Shape>
        Overrides:
        apply in class EllipseVertexShapeTransformer<V>