Package fr.formiko.views.gui2d
Class FPanelPrincipal.ThreadMessagesDesc
java.lang.Object
java.lang.Thread
fr.formiko.views.gui2d.FPanelPrincipal.ThreadMessagesDesc
- All Implemented Interfaces:
Runnable
- Enclosing class:
FPanelPrincipal
Thread used to print a description message at mouse location.
Message is print only after 0.5s if mouse don't move.
Message is print only after 0.5s if mouse don't move.
- Author:
- Hydrolien
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
Main function that update message if needed every 50ms.void
setMessage
(String s) void
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
message
-
timeFromLastMove
private long timeFromLastMove -
needToUpdateTimeFromLastMove
private boolean needToUpdateTimeFromLastMove
-
-
Constructor Details
-
ThreadMessagesDesc
ThreadMessagesDesc()
-
-
Method Details