Interface Footprint

All Known Implementing Classes:
ArrowFootprint, CircleFitterFootprint, CircleFootprint, DoubleArrowFootprint, DoubleCrosshairFootprint, LineFootprint, MultiLineFootprint, OutlineFootprint, PointShapeFootprint, PositionVectorFootprint, ProtractorFootprint

public interface Footprint
A Footprint creates a mark for a track step.
Author:
Douglas Brown
  • Method Details

    • getName

      String getName()
      Gets the name of the footprint.
      Returns:
      the name
    • getDisplayName

      String getDisplayName()
      Gets the display name of the footprint.
      Returns:
      the name
    • getLength

      int getLength()
      Gets the point array length required by this footprint.
      Returns:
      the length
    • getIcon

      ResizableIcon getIcon(int w, int h)
      Gets an icon representing the footprint.
      Parameters:
      w - width of the icon
      h - height of the icon
      Returns:
      the icon
    • getHitShapes

      Shape[] getHitShapes()
      Gets the hit shapes associated with the footprint.
      Returns:
      an array of hit shapes
    • getMark

      Mark getMark(Point[] points)
      Gets the footprint mark.
      Parameters:
      points - a Point array
      Returns:
      the mark
    • getShape

      org.opensourcephysics.cabrillo.tracker.MultiShape getShape(Point[] points, int scale)
      Gets the footprint shape.
      Parameters:
      points - a Point array
      scale - an integer magnification
      Returns:
      the shape
    • setStroke

      void setStroke(BasicStroke stroke)
      Sets the stroke. Accepts only basic strokes.
      Parameters:
      stroke - the desired stroke
    • getStroke

      BasicStroke getStroke()
      Gets the stroke.
      Returns:
      the basic stroke
    • setColor

      void setColor(Color color)
      Sets the color.
      Parameters:
      color - the desired color
    • getColor

      Color getColor()
      Gets the color.
      Returns:
      the color