コード例 #1
0
ファイル: Step.java プロジェクト: feldmarshall/tracker
 /**
  * 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
ファイル: Step.java プロジェクト: feldmarshall/tracker
 /**
  * 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
 }