⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 graph.java

📁 JPowerGraph is a Java library for creating directed graphs for SWT. It supports graph movement, sele
💻 JAVA
字号:
package net.sourceforge.jpowergraph;

import java.util.List;

/**
 * Models a graph.
 */
public interface Graph {
    /**
     * Adds a listener to the graph.
     *
     * @param listener              the listener added to the graph
     */
    void addGraphListener(GraphListener listener);
    /**
     * Removes a listener from the graph.
     *
     * @param listener              the listener removed from the graph
     */
    void removeGraphListener(GraphListener listener);
    /**
     * Notifies the graph that its layout has been updated.
     */
    void notifyLayoutUpdated();
    /**
     * Notifies the graph that its nodes have been updated, but that no node has changed position.
     */
    void notifyUpdated();
    /**
     * Returns a list the nodes in the graph. The order of the list reflects the Z-order of nodes in the graph.
     * Elements with lower indices are lower in the Z-order.
     *
     * @return                      the list of the nodes in the graph
     */
    List getNodes();
    /**
     * Returns a collection of the edges in the graph. The order of the list reflects the Z-order of nodes in the graph.
     *
     * @return                      the list of the edges in the graph
     */
    List getEdges();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -