示例#1
0
  /** Returns the maximum displayed progress value. */
  public double max() {

    if (parent != null) {
      final double pmin = parent.min();
      final double pmax = parent.max();
      return pmin + max * (pmax - pmin);
    } else return max;
  }
示例#2
0
  /** Indicates whether repainting of the progress bar is enforced. */
  public boolean enforce() {

    if (parent != null) return parent.enforce();
    else return enforce;
  }
示例#3
0
  /** Indicates whether progress is displayed. */
  public boolean display() {

    if (parent != null) return parent.display();
    else return display;
  }