Search this API

y.view
Interface GenericEdgeRealizer.BendPainter

Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.BendPainter

This interface is used as a callback by GenericEdgeRealizer to paint the bends.

 

Method Summary
 void paintBends(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, java.awt.Graphics2D gfx, boolean selected)
          Used as a callback for the GenericEdgeRealizer.paintBends(java.awt.Graphics2D) method.
 

Method Detail

paintBends

void paintBends(EdgeRealizer context,
                BendList bends,
                java.awt.geom.GeneralPath path,
                java.awt.Graphics2D gfx,
                boolean selected)
Used as a callback for the GenericEdgeRealizer.paintBends(java.awt.Graphics2D) method.

Parameters:
context - the EdgeRealizer context that is used for the current painting
bends - the list of bends that the current context holds
path - the GeneralPath instance that is currently used by the EdgeRealizer
gfx - the graphics context to use
selected - whether the edge should be painted in selected state

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