Class AbstractLayoutProvider<V extends VisualVertex,​E extends VisualEdge<V>,​G extends VisualGraph<V,​E>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Icon getActionIcon()
      Returns an icon that can be used to show the provider a menu or toolbar.
      int getPriorityLevel()
      Returns an arbitrary value that is relative to other LayoutProviders.
      protected void initVertexLocations​(G g, edu.uci.ics.jung.algorithms.layout.Layout<V,​E> layout)
      Gives all vertices of the graph an initial, non-null location.
      • Methods inherited from class java.lang.Object

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

      • AbstractLayoutProvider

        public AbstractLayoutProvider()
    • Method Detail

      • getActionIcon

        public javax.swing.Icon getActionIcon()
        Description copied from interface: LayoutProvider
        Returns an icon that can be used to show the provider a menu or toolbar. This may return null, as an icon is not a requirement.
        Specified by:
        getActionIcon in interface LayoutProvider<V extends VisualVertex,​E extends VisualEdge<V>,​G extends VisualGraph<V,​E>>
        Returns:
        an icon that can be used to show the provider a menu or toolbar
      • getPriorityLevel

        public int getPriorityLevel()
        Description copied from interface: LayoutProvider
        Returns an arbitrary value that is relative to other LayoutProviders. The higher the value the more preferred the provider will be over other providers.
        Specified by:
        getPriorityLevel in interface LayoutProvider<V extends VisualVertex,​E extends VisualEdge<V>,​G extends VisualGraph<V,​E>>
        Returns:
        the priority
      • initVertexLocations

        protected void initVertexLocations​(G g,
                                           edu.uci.ics.jung.algorithms.layout.Layout<V,​E> layout)
        Gives all vertices of the graph an initial, non-null location. This only works if the graph has been built before this method is called.

        Some graphs that have a layout will perform this same function as vertices are added.

        Parameters:
        g - the graph
        layout - the graph layout