manipulator.java

来自「JPowerGraph is a Java library for creati」· Java 代码 · 共 38 行

JAVA
38
字号
package net.sourceforge.jpowergraph.manipulator;

import java.awt.Graphics2D;
import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

import net.sourceforge.jpowergraph.pane.JGraphPane;

/**
 * A manipulator gets to process UI events in the graph pane.
 */
public interface Manipulator extends MouseListener,MouseMotionListener,KeyListener,FocusListener {
    /**
     * Sets the graph pane to the manipulator.
     *
     * @param graphPane                     the graph pane
     */
    void setGraphPane(JGraphPane graphPane);
    /**
     * Returns the manipulator name. This is used to better search manipulators.
     *
     * @return                              the name of the manipulator
     */
    String getName();
    /**
     * Gives the manipulator an opportunity to update the screen.
     *
     * @param g                             the graphics where drawing should be performed
     */
    void paint(Graphics2D g);
    /**
     * Notifies the manipulator that the graph pane has been scrolled.
     */
    void notifyGraphPaneScrolled();
}

⌨️ 快捷键说明

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