Interface GraphDisplay


  • public interface GraphDisplay
    Interface for objects that display (or consume) graphs. Normally, a graph display represents a visual component for displaying and interacting with a graph. Some implementation may not be a visual component, but instead consumes/processes the graph (i.e. graph exporter). In this case, there is no interactive element and once the graph has been set on the display, it is closed.
    • Field Detail

      • SELECTED_VERTEX_COLOR NEW

        static final java.lang.String SELECTED_VERTEX_COLOR
        values are color names or rgb in hex '0xFF0000' is red
        See Also:
        Constant Field Values
      • SELECTED_EDGE_COLOR NEW

        static final java.lang.String SELECTED_EDGE_COLOR
        values are color names or rgb in hex '0xFF0000' is red
        See Also:
        Constant Field Values
      • INITIAL_LAYOUT_ALGORITHM NEW

        static final java.lang.String INITIAL_LAYOUT_ALGORITHM
        values are defined as String symbols in LayoutFunction class KAMADA_KAWAI,FRUCTERMAN_REINGOLD,CIRCLE_MINCROSS,TIDIER_TREE,TIDIER_RADIAL_TREE, MIN_CROSS_TOP_DOWN,MIN_CROSS_LONGEST_PATH,MIN_CROSS_NETWORK_SIMPLEX,MIN_CROSS_COFFMAN_GRAHAM, EXP_MIN_CROSS_TOP_DOWN,EXP_MIN_CROSS_LONGEST_PATH,EXP_MIN_CROSS_NETWORK_SIMPLEX, EXP_MIN_CROSS_COFFMAN_GRAHAM,TREE,RADIAL,BALLOON,GEM may have no meaning for a different graph visualization library
        See Also:
        Constant Field Values
      • DISPLAY_VERTICES_AS_ICONS NEW

        static final java.lang.String DISPLAY_VERTICES_AS_ICONS
        true or false may have no meaning for a different graph visualization library
        See Also:
        Constant Field Values
      • VERTEX_LABEL_POSITION NEW

        static final java.lang.String VERTEX_LABEL_POSITION
        values are the strings N,NE,E,SE,S,SW,W,NW,AUTO,CNTR may have no meaning for a different graph visualization library
        See Also:
        Constant Field Values
      • ENABLE_EDGE_SELECTION NEW

        static final java.lang.String ENABLE_EDGE_SELECTION
        true or false, whether edge selection via a mouse click is enabled. May not be supported by another graph visualization library
        See Also:
        Constant Field Values
      • EDGE_TYPE_PRIORITY_LIST NEW

        static final java.lang.String EDGE_TYPE_PRIORITY_LIST
        a comma-separated list of edge type names in priority order
        See Also:
        Constant Field Values
      • FAVORED_EDGES NEW

        static final java.lang.String FAVORED_EDGES
        a comma-separated list of edge type names. any will be considered a favored edge for the min-cross layout algorithms. May have no meaning with a different graph visualization library
        See Also:
        Constant Field Values

Method Detail

  • setVertexLabelAttribute NEW

    void setVertexLabelAttribute​(java.lang.String attributeName,
                                 int alignment,
                                 int size,
                                 boolean monospace,
                                 int maxLines)
    Sets the name of the attribute which should be used as the primary vertex label
    Parameters:
    attributeName - the name of the attribute to use as the display label for vertices
    alignment - (ALIGN_LEFT, ALIGN_RIGHT, or ALIGN_CENTER)
    size - the font size to use for the display label
    monospace - true if the font should be monospaced
    maxLines - the maximum number lines to display in the vertex labels
  • addAction NEW

    void addAction​(DockingActionIf action)
    Adds the action to the graph display. Not all GraphDisplays support adding custom actions, so this may have no effect.
    Parameters:
    action - the action to add