| java.lang.Object edu.hws.jcm.draw.Drawable edu.hws.jcm.draw.DrawGeometric edu.hws.jcm.draw.Crosshair
Crosshair | public class Crosshair extends DrawGeometric (Code) | | A Crosshair is a small cross, 15 pixels wide and high, that is drawn in
a CoordinateRect at a specified point.
A Crosshair is a Computable object, so should be added to a Controller to be
recomputed when the coordinates of the point change.
|
Constructor Summary | |
public | Crosshair(Value x, Value y) Create a cross that appears at the point with coordinates (x,y). | public | Crosshair(Value x, Function f) Create a cross that appears on the graph of the function y=f(x)
at the point with coordinates (x,f(x)). |
Crosshair | public Crosshair(Value x, Value y)(Code) | | Create a cross that appears at the point with coordinates (x,y).
|
Crosshair | public Crosshair(Value x, Function f)(Code) | | Create a cross that appears on the graph of the function y=f(x)
at the point with coordinates (x,f(x)). f should be a function
of one variable.
|
|
|