Class Crosshair

  • All Implemented Interfaces:
    Computable, java.io.Serializable

    public class Crosshair
    extends DrawGeometric
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • Crosshair

        public Crosshair​(Value x,
                         Value y)
        Create a cross that appears at the point with coordinates (x,y).
      • Crosshair

        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)). f should be a function of one variable.