/** * Define a Vector legend in the graph window * * @param x data position of the legend. * @param y data position of the legend. * @param text text to display in the legend */ public void legend(double x, double y, String text) { super.legend(x, y, text); drawlegend = true; }
/** * Define a Vector legend in the graph window. The legend will be placed above the data window in * the center * * @param text text to display in the legend */ public void legend(String text) { super.legend(-1, -1, text); drawlegend = true; }
/** * Define a Vector legend in the graph window * * @param x pixel position of the legend. * @param y pixel position of the legend. * @param text text to display in the legend */ public void legend(int x, int y, String text) { super.legend(x, y, text); drawlegend = true; }
/** * Draw a Vector legend in the graph window. The legend will be placed above the data window in * the center */ public void legend() { super.legend(-1, -1, null); drawlegend = true; }