/** <i>Description:</i> clear buffered image, so we will redraw it */ public void updateGraph() { graphOutline.updateImage(); if (popupOutline != null) { if (popupWindow.isVisible()) { popupOutline.updateImage(); dirtyPopup = false; } else { dirtyPopup = true; } } }
public void showOutlineWindow() { JFrame frame = getPopupWindow(); if (frame.isVisible()) { if (popupBound != null) { frame.setBounds(popupBound); } frame.setExtendedState(popupState); frame.toFront(); } else { frame.setLocationRelativeTo(SwingUtilities.getRoot(this)); frame.setVisible(true); } if (dirtyPopup) { popupOutline.setImage(graphOutline.getImage()); popupOutline.updateImage(); dirtyPopup = false; } }