Package com.sun.pdfview
Class BaseWatchable.Gate
- java.lang.Object
-
- com.sun.pdfview.BaseWatchable.Gate
-
- Enclosing class:
- BaseWatchable
class BaseWatchable.Gate extends java.lang.Object
A 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 boolean
iterate()
Notify the gate of one iteration.void
setStopIterations(int iterations)
set the number of iterations until we stopvoid
setStopTime(long millisFromNow)
set the stop timeboolean
stop()
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
-
-