Class DoubleCrosshairFootprint
java.lang.Object
org.opensourcephysics.cabrillo.tracker.LineFootprint
org.opensourcephysics.cabrillo.tracker.DoubleCrosshairFootprint
A double crosshair footprint for a Point array of length 2.
- 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
ConstructorsConstructorDescriptionConstructs a DoubleCrosshairFootprint. -
Method Summary
Modifier and TypeMethodDescriptiongetIcon
(int w, int h) Gets the icon.org.opensourcephysics.cabrillo.tracker.MultiShape
Gets the shape of this footprint.void
setCrosshairSize
(int out, int in) /** Sets the size of the crosshair.void
setStroke
(BasicStroke stroke) Sets the stroke.Methods inherited from class org.opensourcephysics.cabrillo.tracker.LineFootprint
checkStrokes, getColor, getDisplayName, getFootprint, getFootprint, getHighlightShape, getHitShapes, getLength, getMark, getName, getRotatorShape, getStroke, setColor, setDashArray, setLineWidth
-
Field Details
-
targetShape
-
size
protected int size -
hitShape
-
-
Constructor Details
-
DoubleCrosshairFootprint
Constructs a DoubleCrosshairFootprint.- Parameters:
name
- the name
-
-
Method Details
-
setCrosshairSize
public void setCrosshairSize(int out, int in) /** Sets the size of the crosshair.- Parameters:
out
- the outside end of the crosshairin
- the inside end of the crosshair
-
getIcon
Gets the icon.- Specified by:
getIcon
in interfaceFootprint
- Overrides:
getIcon
in classLineFootprint
- Parameters:
w
- width of the iconh
- height of the icon- Returns:
- the icon
-
setStroke
Sets the stroke.- Specified by:
setStroke
in interfaceFootprint
- Overrides:
setStroke
in classLineFootprint
- Parameters:
stroke
- the desired stroke
-
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
-