📄 manipulator.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -