soc.client
Class SOCBoardPanel.DelayedRepaint

java.lang.Object
  extended by java.lang.Thread
      extended by soc.client.SOCBoardPanel.DelayedRepaint
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
SOCBoardPanel

protected static class SOCBoardPanel.DelayedRepaint
extends java.lang.Thread

With a recent board resize, one or more rescaled images still hasn't been completed after 7 seconds. We've asked for a new scaled copy of this image. Wait 3 seconds and repaint the board. (The delay gives time for the new scaling to complete.)

Since:
1.1.00
Author:
Jeremy D Monin <jeremy@nand.net>
See Also:
SOCBoardPanel.scaledMissedImage, SOCBoardPanel.drawHex(Graphics, int)

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private static boolean alreadyActive
          Are we already waiting in another thread? Assumes since boolean is a simple var, will have atomic access.
private  SOCBoardPanel bp
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SOCBoardPanel.DelayedRepaint(SOCBoardPanel bp)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

alreadyActive

private static boolean alreadyActive
Are we already waiting in another thread? Assumes since boolean is a simple var, will have atomic access.


bp

private SOCBoardPanel bp
Constructor Detail

SOCBoardPanel.DelayedRepaint

public SOCBoardPanel.DelayedRepaint(SOCBoardPanel bp)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread