コード例 #1
0
ファイル: Progressor.java プロジェクト: RichardMyers/fiji-1
  /** 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
ファイル: Progressor.java プロジェクト: RichardMyers/fiji-1
  /** Indicates whether repainting of the progress bar is enforced. */
  public boolean enforce() {

    if (parent != null) return parent.enforce();
    else return enforce;
  }
コード例 #3
0
ファイル: Progressor.java プロジェクト: RichardMyers/fiji-1
  /** Indicates whether progress is displayed. */
  public boolean display() {

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