Search this API

y.view
Interface NodePort.Painter

All Known Implementing Classes:
PortConfigurationAdapter, SelectionPortPainter, ShapePortConfiguration
Enclosing class:
NodePort

public static interface NodePort.Painter

This interface is used by NodePort to delegate the work of the NodePort.paint(java.awt.Graphics2D) method to.

Classes implementing this interface should query the given context port instance for the necessary information each time the methods are called since instances of this interface will be shared for multiple NodePort instances.

 
Your browser does not support SVG content.

Method Summary
 void paint(NodePort port, java.awt.Graphics2D g)
          Paints the specified port.
 

Method Detail

paint

void paint(NodePort port,
           java.awt.Graphics2D g)
Paints the specified port.

Callback method for NodePort.paint(java.awt.Graphics2D).

Parameters:
port - the port instance to paint.
g - the graphics context to paint upon.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.