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 MultiLineFootprintgetFootprint(String name) Gets a predefined MultiLineFootprint.intGets the minimum point array length required by this footprint.org.opensourcephysics.cabrillo.tracker.MultiShapeGets the shape of this footprint.booleanisClosed()Determine if this draws closed paths.voidsetClosed(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:
getLengthin interfaceFootprint- Overrides:
getLengthin 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:
getShapein interfaceFootprint- Overrides:
getShapein classLineFootprint- Parameters:
points- an array of Pointsscale- an integer magnification- Returns:
- the shape
-