org.opensourcephysics.cabrillo.tracker
Interface Mark


public interface Mark

A Mark draws itself and has rectangular bounds. A track Step has a Mark for each tracker panel on which it is drawn. The Mark is created by the Step's Footprint.

Author:
Douglas Brown

Method Summary
 void draw(java.awt.Graphics2D g, boolean highlighted)
          Draws this object.
 java.awt.Rectangle getBounds(boolean highlighted)
          Gets the bounds of this object.
 

Method Detail

draw

void draw(java.awt.Graphics2D g,
          boolean highlighted)
Draws this object.

Parameters:
g - the Graphics2D context
highlighted - true to draw a highlighted version

getBounds

java.awt.Rectangle getBounds(boolean highlighted)
Gets the bounds of this object.

Parameters:
highlighted - true to get the highlighted bounds
Returns:
the bounding rectangle