How to implement fast preview?
Abstract: This bit of code will allow you to cause JGraph to use the cell renderer’s paint method to paint on preview. This is usually used in the MarqueeHandler, but could be applicable elsewhere. The call to port.getParentView() actually causes the UI to paint the cell. The paintBoolean is the preview flag. In the renderer, you would check the preview flag to see if set. If the preview flag is set, you would paint the cell differently (eg. quicker). protected void…