The Graph Class II

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]

Graph.java
/**
 * Set the character that is to be used by the pen.
 *
 * @ch  pen character.
 */
public void setPen(char ch) {
   pen = ch;
}

/**
 * Set the current range for the x coordinates.
 *
 * @lowerLimit    lower limit of the interval (inclusive).
 * @upperLimit    upper limit of the interval (exclusive).
 */
public void setRangeX(double lowerLimit, double upperLimit) {
   x0 = lowerLimit;
   x1 = upperLimit;
}

/**
 * Set the current range for the x coordinates.
 *
 * @lowerLimit    lower limit of the interval (inclusive).
 * @upperLimit    upper limit of the interval (exclusive).
 */
public void setRangeY(double lowerLimit, double upperLimit) {
   y0 = lowerLimit;
   y1 = upperLimit;
}

 [Previous Chapter]  [Previous Page]  [Contents]  [Next Page]  [Next Chapter]
Copyright © 2001, 2002 Andreas Borchert, converted to HTML on February 11, 2002