Class PointShapeFootprint
java.lang.Object
org.opensourcephysics.cabrillo.tracker.PointShapeFootprint
- Direct Known Subclasses:
PositionVectorFootprint
A PointShapeFootprint returns a shape for a Point[] of length 1.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasicStrokeprotected Colorprotected static Collection<PointShapeFootprint>protected Shapeprotected BasicStrokeprotected Shape[]protected Stringprotected Shapeprotected BasicStrokeprotected AffineTransform -
Constructor Summary
ConstructorsConstructorDescriptionPointShapeFootprint(String name, Shape shape) Constructs a PointShapeFootprint with a point shape. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the color.Gets the display name of the footprint.static PointShapeFootprintgetFootprint(String name) Gets a named footprint.Shape[]Gets the hit shapes.getIcon(int w, int h) Gets the icon.intGets the minimum point array length required by this footprint.Gets the footprint mark.getName()Gets the name of this footprint.org.opensourcephysics.cabrillo.tracker.MultiShapeGets the fill shape for a specified point.Gets the stroke.voidSets the color.protected voidSets the shape.voidsetStroke(BasicStroke stroke) Sets the stroke.
-
Field Details
-
name
-
shape
-
highlight
-
transform
-
baseStroke
-
stroke
-
highlightStroke
-
color
-
hitShapes
-
footprints
-
-
Constructor Details
-
PointShapeFootprint
Constructs a PointShapeFootprint with a point shape.- Parameters:
name- the nameshape- point shape of the footprint
-
-
Method Details
-
getFootprint
Gets a named footprint.- Parameters:
name- the name of the footprint- Returns:
- the footprint
-
getName
Gets the name of this footprint. -
getDisplayName
Gets the display name of the footprint.- Specified by:
getDisplayNamein interfaceFootprint- Returns:
- the localized display name
-
getLength
public int getLength()Gets the minimum point array length required by this footprint. -
getIcon
Gets the icon. -
getMark
Gets the footprint mark. -
getHitShapes
Gets the hit shapes.- Specified by:
getHitShapesin interfaceFootprint- Returns:
- the hit shapes
-
setShape
Sets the shape.- Parameters:
shape- the desired shape
-
setStroke
Sets the stroke. May be set to null. -
getStroke
Gets the stroke. May return null; -
setColor
Sets the color. -
getColor
Gets the color. -
getShape
Gets the fill shape for a specified point.
-