📄 lens.java
字号:
package net.sourceforge.jpowergraph.lens;
import java.awt.geom.Point2D;
import net.sourceforge.jpowergraph.pane.JGraphPane;
/**
* A lens that warps 2D space. This class has been inspired by the <a href="http://www.touchgraph.com/">TouchGraph</a> library.
*/
public interface Lens {
/**
* Applies the lens to the point and modifies it according to the lens equations.
*
* @param point the point that will be modified
*/
void applyLens(JGraphPane theJGraphPane, Point2D point);
/**
* Undoes the lens effect on the point.
*
* @param point the point that will be modified
*/
void undoLens(JGraphPane theJGraphPane, Point2D point);
/**
* Adds a listener to the lens.
*
* @param listener the listener to add
*/
void addLensListener(LensListener listener);
/**
* Removes a listener from the lens.
*
* @param listener the listener to remove
*/
void removeLensListener(LensListener listener);
void dispose();
boolean isDisposed();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -