Why do nodes and edges sometimes look rather simple?
Applies to: yFiles 2.6, yFiles 2.5, yFiles 2.4 print article email article

Type: Questions & Answers

yFiles' viewer framework is able to switch between high-detail and low-detail rendering strategies.

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:
Sloppy, i.e. low-detail, rendering of the above node realizers:
Regular rendering of standard yFiles edge realizers:
Sloppy rendering of the above edge realizers:

Keywords: rendering - sloppy - sloppy painting - paintDetailThreshold - setPaintDetailThreshold - getPaintDetailThreshold

Provide feedback:
How useful was this article?    less 1 2 3 4 5 more
Email address (optional):
COPYRIGHT © 2008 yWorks · ALL RIGHTS RESERVED imprint | top | home