visualweightededgepainterimpl.java
来自「OpenJGraph是一个开源的Java库」· Java 代码 · 共 28 行
JAVA
28 行
package salvo.jesus.graph.visual.drawing;import salvo.jesus.graph.*;import salvo.jesus.graph.visual.*;import java.awt.*;/** * An implementation of <tt>VisualWeightedEdgePainter</tt> that draws * the <tt>VisualEdge</tt> based on its attributes, and the paints the * weight of the edge. * * @author Jesus M. Salvo Jr. */public class VisualWeightedEdgePainterImpl extends VisualEdgePainterImpl implements VisualWeightedEdgePainter { /** * Delegate responsible for painting the weight of the <tt>WeightedEdge</tt>. */ private VisualWeightedEdgePainterWeakImpl weightPainterDelegate = new VisualWeightedEdgePainterWeakImpl(); public VisualWeightedEdgePainterImpl() {} public void paint( VisualGraphComponent component, Graphics2D g2d ) { super.paint( component, g2d ); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?