/** interface for objects considered to be plottable on a 2-d coordinate plane */ public interface Plottable { /** gets x-coordinate of a Plottable object @return x-coordinate of calling object */ public double getX(); /** gets y-coordinate of a Plottable object @return y-coordinate of calling object */ public double getY(); /** gets name of a Plottable object (to serve as a label) @return name of calling object */ public String getName(); /** computes the distance between two Plottable objects @param aPlottable another Plottable object @return the distance between the calling object and the given Plottable object */ public double distFrom(Plottable aPlottable); }