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

📄 lens.java

📁 JPowerGraph is a Java library for creating directed graphs for SWT. It supports graph movement, sele
💻 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 + -