Transparency of NodeRealizers |
| Applies to: yFiles 2.4, yFiles 2.3, yFiles 2.2 |
Type: Tips & Tricks
Categories this article belongs to:
| yFiles for Java | > yFiles Viewer | > Displaying and Editing Graphs | > Bringing Graph Elements to Life: The Realizer Concept |
Describes how to direct NodeRealizer not to paint its background
There are two ways to direct NodeRealizer
not to paint its background. You can either set its transparency to true or you can set the fill color either to null or to a (semi-)transparent color. Note that transparency is not implemented for on ShapeNodeRealizer with shape type RECT_3D
. Also, be aware that enabling transparency also influences the standard hit test for a node. Only the border of a transparent node is sensitive to a regular hit test.
| Keywords: | transparency - hit test - fill color - NodeRealizer |


