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

📄 visualdirectededgepainterimpl.java

📁 OpenJGraph是一个开源的Java库
💻 JAVA
字号:
package salvo.jesus.graph.visual.drawing;import salvo.jesus.graph.*;import salvo.jesus.graph.visual.*;import java.awt.*;/** * An implementation of <tt>VisualDirectedEdgePainter</tt> that draws * the <tt>VisualEdge</tt> based on its attributes, then draws the arrowhead * indicating the directio of the edge. * * @author Jesus M. Salvo Jr. */public class VisualDirectedEdgePainterImpl extends VisualEdgePainterImpl implements VisualDirectedEdgePainter{    /**     * Delegate responsible for the actual drawing of the arrowhead.     */    VisualDirectedEdgePainterWeakImpl  arrowHeadPainterDelegate = new VisualDirectedEdgePainterWeakImpl();    public VisualDirectedEdgePainterImpl() {}    public void paint( VisualGraphComponent component , Graphics2D g2d ) {        super.paint( component, g2d );        this.paintArrowHead( (VisualEdge) component, g2d );    }    /**     * Draws the arrow head    */    public void paintArrowHead( VisualEdge ve, Graphics2D g2d ) {        this.arrowHeadPainterDelegate.paintArrowHead( ve, g2d );    }}

⌨️ 快捷键说明

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