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 BasicStroke
protected Color
protected static Collection<PointShapeFootprint>
protected Shape
protected BasicStroke
protected Shape[]
protected String
protected Shape
protected BasicStroke
protected 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 PointShapeFootprint
getFootprint
(String name) Gets a named footprint.Shape[]
Gets the hit shapes.getIcon
(int w, int h) Gets the icon.int
Gets the minimum point array length required by this footprint.Gets the footprint mark.getName()
Gets the name of this footprint.org.opensourcephysics.cabrillo.tracker.MultiShape
Gets the fill shape for a specified point.Gets the stroke.void
Sets the color.protected void
Sets the shape.void
setStroke
(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:
getDisplayName
in 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:
getHitShapes
in 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.
-