|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.PointShapeFootprint
org.opensourcephysics.cabrillo.tracker.PositionVectorFootprint
public class PositionVectorFootprint
A PositionVectorFootprint returns a vector shape for a Point[] of length 2, but creates a hit shape only at the tip of the vector.
| Field Summary |
|---|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.PointShapeFootprint |
|---|
color, defaultWidth, footprints, highlight, hitShapes, name, shape, stroke, transform |
| Constructor Summary | |
|---|---|
PositionVectorFootprint(TTrack track,
java.lang.String name,
int w)
Constructs a PositionVectorFootprint. |
|
| Method Summary | |
|---|---|
javax.swing.Icon |
getIcon(int w,
int h)
Gets the icon. |
java.awt.Shape |
getShape(java.awt.Point[] points)
Gets the fill shape for a specified point. |
java.awt.BasicStroke |
getStroke()
Gets the stroke. |
void |
setLineWidth(double w)
Sets the line width. |
void |
setStroke(java.awt.BasicStroke stroke)
Sets the stroke. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.PointShapeFootprint |
|---|
getColor, getDisplayName, getFootprint, getHitShapes, getLength, getMark, getName, setColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionVectorFootprint(TTrack track,
java.lang.String name,
int w)
track - the (PointMass) track that will use this footprintname - the name of the footprintw - the stroke line width| Method Detail |
|---|
public java.awt.Shape getShape(java.awt.Point[] points)
getShape in interface FootprintgetShape in class PointShapeFootprintpoints - an array of points
public javax.swing.Icon getIcon(int w,
int h)
getIcon in interface FootprintgetIcon in class PointShapeFootprintw - width of the iconh - height of the icon
public void setStroke(java.awt.BasicStroke stroke)
setStroke in interface FootprintsetStroke in class PointShapeFootprintstroke - the desired strokepublic java.awt.BasicStroke getStroke()
getStroke in interface FootprintgetStroke in class PointShapeFootprintpublic void setLineWidth(double w)
setLineWidth in class PointShapeFootprintw - the desired line width
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||