Why do nodes and edges sometimes look rather simple? |
| Applies to: yFiles 2.6, yFiles 2.5, yFiles 2.4 |
Type: Questions & Answers
Categories this article belongs to:
| yFiles for Java | > yFiles Viewer | > Displaying and Editing Graphs | > Realizer-Related Features |
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.)
| Keywords: | rendering - sloppy - sloppy painting - paintDetailThreshold - setPaintDetailThreshold - getPaintDetailThreshold |


