|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.cabrillo.tracker.LineFootprint
org.opensourcephysics.cabrillo.tracker.DoubleCrosshairFootprint
public class DoubleCrosshairFootprint
A double crosshair footprint for a Point array of length 2.
| Field Summary | |
|---|---|
protected java.awt.Shape |
hitShape
|
protected int |
size
|
protected java.awt.Shape |
targetShape
|
| Fields inherited from class org.opensourcephysics.cabrillo.tracker.LineFootprint |
|---|
color, DASHED_LINE, DOTTED_LINE, highlight, HIGHLIGHT, hitShapes, line, name, path, stroke, transform |
| Constructor Summary | |
|---|---|
DoubleCrosshairFootprint(java.lang.String name)
Constructs a DoubleCrosshairFootprint. |
|
| Method Summary | |
|---|---|
javax.swing.Icon |
getIcon(int w,
int h)
Gets the icon. |
java.awt.Shape |
getShape(java.awt.Point[] points)
Gets the shape of this footprint. |
void |
setCrosshairSize(int out,
int in)
/** Sets the size of the crosshair. |
void |
setStroke(java.awt.BasicStroke stroke)
Sets the stroke. |
| Methods inherited from class org.opensourcephysics.cabrillo.tracker.LineFootprint |
|---|
getColor, getDisplayName, getFootprint, getHitShapes, getLength, getMark, getName, getStroke, setColor, setDashArray, setLineWidth |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.awt.Shape targetShape
protected int size
protected java.awt.Shape hitShape
| Constructor Detail |
|---|
public DoubleCrosshairFootprint(java.lang.String name)
name - the name| Method Detail |
|---|
public void setCrosshairSize(int out,
int in)
out - the outside end of the crosshairin - the inside end of the crosshair
public javax.swing.Icon getIcon(int w,
int h)
getIcon in interface FootprintgetIcon in class LineFootprintw - width of the iconh - height of the icon
public void setStroke(java.awt.BasicStroke stroke)
setStroke in interface FootprintsetStroke in class LineFootprintstroke - the desired strokepublic java.awt.Shape getShape(java.awt.Point[] points)
getShape in interface FootprintgetShape in class LineFootprintpoints - an array of Points
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||