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 Summary
Modifier and TypeMethodDescriptiongetColor()
Gets the color.Gets the display name of the footprint.Shape[]
Gets the hit shapes associated with the footprint.getIcon
(int w, int h) Gets an icon representing the footprint.int
Gets the point array length required by this footprint.Gets the footprint mark.getName()
Gets the name of the footprint.org.opensourcephysics.cabrillo.tracker.MultiShape
Gets the footprint shape.Gets the stroke.void
Sets the color.void
setStroke
(BasicStroke stroke) Sets the stroke.
-
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
Gets an icon representing the footprint.- Parameters:
w
- width of the iconh
- 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
Gets the footprint mark.- Parameters:
points
- a Point array- Returns:
- the mark
-
getShape
Gets the footprint shape.- Parameters:
points
- a Point arrayscale
- an integer magnification- Returns:
- the shape
-
setStroke
Sets the stroke. Accepts only basic strokes.- Parameters:
stroke
- the desired stroke
-
getStroke
BasicStroke getStroke()Gets the stroke.- Returns:
- the basic stroke
-
setColor
Sets the color.- Parameters:
color
- the desired color
-
getColor
Color getColor()Gets the color.- Returns:
- the color
-