Interface Display


public interface Display
  • Method Summary

    Modifier and Type Method Description
    Viewer display​(Graph graph, boolean autoLayout)  
    static Display getDefault()
    Try to get the default display according to the "org.graphstream.ui" property.
  • Method Details

    • getDefault

      static Display getDefault() throws MissingDisplayException
      Try to get the default display according to the "org.graphstream.ui" property.

      It will look for three class candidates: 1. name defined in the property; 2. #1 one with a ".util.Display" suffix; 3. #2 one with a "org.graphstream.ui." prefix.

      If the property is not set, or if no valid candidate can be found, a MissingDisplayException will be thrown.

      Returns:
      the Display object linked to the UI property
      Throws:
      MissingDisplayException - if no Display can be found
    • display

      Viewer display​(Graph graph, boolean autoLayout)