예제 #1
0
 /**
  * Erases and remarks this on the specified tracker panel. Remarking creates a new mark for the
  * step and adds both the old and new bounds to the tracker panel's dirty region.
  *
  * @param trackerPanel the tracker panel
  */
 public void remark(TrackerPanel trackerPanel) {
   erase(trackerPanel);
   trackerPanel.addDirtyRegion(getBounds(trackerPanel)); // new bounds
 }
예제 #2
0
 /**
  * Erases this on the specified tracker panel. Erasing adds the current bounds to the dirty region
  * and nulls the step's mark to trigger creation of a new one.
  *
  * @param trackerPanel the tracker panel
  */
 public void erase(TrackerPanel trackerPanel) {
   if (marks.get(trackerPanel) == null) return; // already dirty
   trackerPanel.addDirtyRegion(getBounds(trackerPanel)); // old bounds
   marks.put(trackerPanel, null); // triggers new mark
 }