Search this API

y.view
Interface GenericEdgeRealizer.Painter

All Known Implementing Classes:
FramedEdgePainter, GenericEdgePainter
Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.Painter

This interface is used as a callback by GenericEdgeRealizer to perform the painting.

See Also:
EdgeRealizer.paint(java.awt.Graphics2D), EdgeRealizer.paintSloppy(java.awt.Graphics2D)
 

Method Summary
 void paint(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, java.awt.Graphics2D gfx, boolean selected)
          Paint the edge, including all of its decorations (bends, labels, ports, etc.)
 void paintSloppy(EdgeRealizer context, BendList bends, java.awt.geom.GeneralPath path, java.awt.Graphics2D gfx, boolean selected)
          Paints the edge sloppily.
 

Method Detail

paint

void paint(EdgeRealizer context,
           BendList bends,
           java.awt.geom.GeneralPath path,
           java.awt.Graphics2D gfx,
           boolean selected)
Paint the edge, including all of its decorations (bends, labels, ports, etc.)

Parameters:
context - the EdgeRealizer context that is used for the painting
bends - the list of bends that the current context holds
path - the GeneralPath instance that is associated with the current context
selected - whether the edge should be painted in selected state

paintSloppy

void paintSloppy(EdgeRealizer context,
                 BendList bends,
                 java.awt.geom.GeneralPath path,
                 java.awt.Graphics2D gfx,
                 boolean selected)
Paints the edge sloppily.

Parameters:
context - the EdgeRealizer context that is used for the painting
bends - the list of bends that the current context holds
path - the GeneralPath instance that is associated with the current context
selected - whether the edge should be painted in selected state

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