Ejemplo n.º 1
0
 /**
  * Draws this step.
  *
  * @param panel the drawing panel requesting the drawing
  * @param g the graphics context on which to draw
  */
 public void draw(DrawingPanel panel, Graphics g) {
   if (track.trackerPanel == panel) {
     AutoTracker autoTracker = track.trackerPanel.getAutoTracker();
     if (autoTracker.isInteracting(track)) return;
   }
   TrackerPanel trackerPanel = (TrackerPanel) panel;
   boolean highlighted = (trackerPanel.getFrameNumber() == n);
   if (trackerPanel.autoTracker != null
       && trackerPanel.autoTracker.getWizard().isVisible()
       && trackerPanel.autoTracker.getTrack() == track) {
     highlighted = false;
   }
   getMark(trackerPanel).draw((Graphics2D) g, highlighted);
 }
Ejemplo n.º 2
0
 /**
  * Gets the screen bounds of this step on the specified tracker panel.
  *
  * @param trackerPanel the tracker panel drawing the step
  * @return the bounding rectangle
  */
 public Rectangle getBounds(TrackerPanel trackerPanel) {
   boolean highlighted = (trackerPanel.getFrameNumber() == n);
   return getMark(trackerPanel).getBounds(highlighted);
 }