Class MultiLineFootprint
java.lang.Object
org.opensourcephysics.cabrillo.tracker.LineFootprint
org.opensourcephysics.cabrillo.tracker.MultiLineFootprint
A MultiLineFootprint returns a set of line segments for a Point array of any
length > 1.
- Author:
- Douglas Brown
-
Field Summary
FieldsFields inherited from class org.opensourcephysics.cabrillo.tracker.LineFootprint
baseStroke, color, DASHED_LINE, DOTTED_LINE, highlight, hitLine, hitShapes, line, name, path, rotatorStroke, stroke, transform, WIDE_DOTTED_LINE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiLineFootprint
getFootprint
(String name) Gets a predefined MultiLineFootprint.int
Gets the minimum point array length required by this footprint.org.opensourcephysics.cabrillo.tracker.MultiShape
Gets the shape of this footprint.boolean
isClosed()
Determine if this draws closed paths.void
setClosed
(boolean closed) Sets the closed property.Methods inherited from class org.opensourcephysics.cabrillo.tracker.LineFootprint
checkStrokes, getColor, getDisplayName, getFootprint, getHighlightShape, getHitShapes, getIcon, getMark, getName, getRotatorShape, getStroke, setColor, setDashArray, setLineWidth, setStroke
-
Field Details
-
closed
protected boolean closed
-
-
Constructor Details
-
MultiLineFootprint
Constructs a MultiLineFootprint.- Parameters:
name
- the name
-
-
Method Details
-
getFootprint
Gets a predefined MultiLineFootprint.- Parameters:
name
- the name of the footprint- Returns:
- the footprint
-
getLength
public int getLength()Gets the minimum point array length required by this footprint.- Specified by:
getLength
in interfaceFootprint
- Overrides:
getLength
in classLineFootprint
- Returns:
- the length
-
isClosed
public boolean isClosed()Determine if this draws closed paths.- Returns:
- true if closed
-
setClosed
public void setClosed(boolean closed) Sets the closed property.- Parameters:
true
- to draw closed paths
-
getShape
Gets the shape of this footprint.- Specified by:
getShape
in interfaceFootprint
- Overrides:
getShape
in classLineFootprint
- Parameters:
points
- an array of Pointsscale
- an integer magnification- Returns:
- the shape
-