Why do nodes and edges sometimes look rather simple?

Questions & Answers

Summary

yFiles' viewer framework is able to switch between high-detail and low-detail rendering strategies.
For a better user experience, please go to the integrated documentation viewer to read this article.

Description

yFiles' realizer classes EdgeRealizer and NodeRealizer are responsible for providing implementations of the two strategies. Method

public void paint(Graphics2D)
is responsible for high-detail rendering and method
public void paintSloppy(Graphics2D)
for low-detail rendering.

Graph2DView's paintDetailThreshold property determines when to use the "regular" high-detail rendering and when to switch to sloppy painting. By default, for zoom levels below 30% sloppy painting is used. (Setting this property to 0 effectively disables sloppy painting.)

Regular, i.e. high-detail, rendering of standard yFiles node realizers:
Regular, i.e. high-detail, rendering of standard yFiles node realizers
Sloppy, i.e. low-detail, rendering of the above node realizers:
Sloppy, i.e. low-detail, rendering of standard yFiles node realizers
Regular rendering of standard yFiles edge realizers:
Regular rendering of standard yFiles edge realizers
Sloppy rendering of the above edge realizers:
Sloppy rendering of standard yFiles edge realizers
Since yFiles for Java 2.9 class YRenderingHints defines rendering hints that enable fine-grained control over what gets painted in a view.

Categories this article belongs to:
yFiles for Java > yFiles Viewer > Displaying and Editing Graphs > Realizer-Related Features
Applies to:
yFiles for Java 2: 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 2.10, 2.11, 2.12, 2.13, 2.14, 2.15, 2.16, 2.17, 2.18
Keywords:
rendering - sloppy - sloppy painting - paintDetailThreshold - setPaintDetailThreshold - getPaintDetailThreshold