visualvertexpainter.java

来自「OpenJGraph是一个开源的Java库」· Java 代码 · 共 37 行

JAVA
37
字号
package salvo.jesus.graph.visual.drawing;import salvo.jesus.graph.*;import salvo.jesus.graph.visual.*;import java.awt.*;import java.awt.geom.*;/** * An interface for drawing a <tt>VisualVertex</tt>. * * @author Jesus M. Salvo Jr. */public interface VisualVertexPainter extends Painter {  /**   * Paints the outline of the <tt>VisualVertex</tt>   */  public void paintOutline( VisualGraphComponent component, Graphics2D g2d );  /**   * Paints the <tt>VisualVertex</tt>'s fill color.   */  public void paintFill( VisualGraphComponent component, Graphics2D g2d );  /**   * Paints the text of the <tt>VisualVertex</tt>.   */  public void paintText( VisualGraphComponent component, Graphics2D g2d );  /**   * Rescales the drawing based on either the font or text of   * the <tt>VisualVertex</tt> being changed. Thus, this method is   * usually called when an end-user changes such properties.   */  public void rescale( VisualVertex vv );}

⌨️ 快捷键说明

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