Package com.sun.pdfview
Class BaseWatchable.Gate
- java.lang.Object
-
- com.sun.pdfview.BaseWatchable.Gate
-
- Enclosing class:
- BaseWatchable
class BaseWatchable.Gate extends java.lang.ObjectA class that lets us give it a target time or number of steps, and will tell us to stop after that much time or that many steps
-
-
Constructor Summary
Constructors Constructor Description Gate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaniterate()Notify the gate of one iteration.voidsetStopIterations(int iterations)set the number of iterations until we stopvoidsetStopTime(long millisFromNow)set the stop timebooleanstop()check whether we should stop.
-
-
-
Method Detail
-
setStopTime
public void setStopTime(long millisFromNow)
set the stop time
-
setStopIterations
public void setStopIterations(int iterations)
set the number of iterations until we stop
-
stop
public boolean stop()
check whether we should stop.
-
iterate
public boolean iterate()
Notify the gate of one iteration. Returns true if we should stop or false if not
-
-