org.jmol.viewer

Class RepaintManager

class RepaintManager extends Object

Nested Class Summary
classRepaintManager.AnimationThread
Field Summary
static intANIMATION_LOOP
static intANIMATION_ONCE
static intANIMATION_PALINDROME
intanimationDirection
intanimationFps
booleananimationOn
booleananimationPaused
intanimationReplayMode
RepaintManager.AnimationThreadanimationThread
intbackgroundModelIndex
BitSetbsVisibleFrames
intcurrentDirection
intcurrentModelIndex
floatfirstFrameDelay
intfirstFrameDelayMs
intfirstModelIndex
Animation support
FrameRendererframeRenderer
intframeStep
intholdRepaint
booleaninMotion
intintAnimThread
floatlastFrameDelay
intlastFrameDelayMs
intlastModelIndex
booleanrepaintPending
Viewerviewer
Constructor Summary
RepaintManager(Viewer viewer)
Method Summary
voidanimationOn(boolean TF)
voidclear()
voidclearAnimation()
StringgenerateOutput(String type, Graphics3D g3d, ModelSet modelSet, String fileName)
HashtablegetAnimationInfo()
StringgetAnimationModeName()
StringgetState(StringBuffer sfunc)
BitSetgetVisibleFramesBitSet()
voidinitializePointers(int frameStep)
voidpauseAnimation()
voidpopHoldRepaint()
voidpushHoldRepaint()
booleanrefresh()
voidrender(Graphics3D g3d, ModelSet modelSet)
voidrepaintDone()
voidrequestRepaintAndWait()
voidresumeAnimation()
voidreverseAnimation()
voidrewindAnimation()
voidsetAnimationDirection(int animationDirection)
voidsetAnimationFps(int animationFps)
voidsetAnimationLast()
booleansetAnimationNext()
voidsetAnimationOff(boolean isPaused)
voidsetAnimationOn(boolean animationOn)
booleansetAnimationPrevious()
voidsetAnimationRange(int framePointer, int framePointer2)
booleansetAnimationRelative(int direction)
voidsetAnimationReplayMode(int animationReplayMode, float firstFrameDelay, float lastFrameDelay)
voidsetBackgroundModelIndex(int modelIndex)
voidsetCurrentModelIndex(int modelIndex)
voidsetCurrentModelIndex(int modelIndex, boolean clearBackgroundModel)
voidsetFrameRangeVisible()
voidsetInMotion(boolean inMotion)
voidsetStatusFrameChanged()

Field Detail

ANIMATION_LOOP

static final int ANIMATION_LOOP

ANIMATION_ONCE

static final int ANIMATION_ONCE

ANIMATION_PALINDROME

static final int ANIMATION_PALINDROME

animationDirection

int animationDirection

animationFps

int animationFps

animationOn

boolean animationOn

animationPaused

boolean animationPaused

animationReplayMode

int animationReplayMode

animationThread

RepaintManager.AnimationThread animationThread

backgroundModelIndex

int backgroundModelIndex

bsVisibleFrames

private BitSet bsVisibleFrames

currentDirection

int currentDirection

currentModelIndex

int currentModelIndex

firstFrameDelay

float firstFrameDelay

firstFrameDelayMs

int firstFrameDelayMs

firstModelIndex

int firstModelIndex
Animation support

frameRenderer

FrameRenderer frameRenderer

frameStep

int frameStep

holdRepaint

int holdRepaint

inMotion

boolean inMotion

intAnimThread

int intAnimThread

lastFrameDelay

float lastFrameDelay

lastFrameDelayMs

int lastFrameDelayMs

lastModelIndex

int lastModelIndex

repaintPending

boolean repaintPending

viewer

Viewer viewer

Constructor Detail

RepaintManager

RepaintManager(Viewer viewer)

Method Detail

animationOn

private void animationOn(boolean TF)

clear

void clear()

clearAnimation

void clearAnimation()

generateOutput

String generateOutput(String type, Graphics3D g3d, ModelSet modelSet, String fileName)

getAnimationInfo

Hashtable getAnimationInfo()

getAnimationModeName

String getAnimationModeName()

getState

String getState(StringBuffer sfunc)

getVisibleFramesBitSet

BitSet getVisibleFramesBitSet()

initializePointers

void initializePointers(int frameStep)

pauseAnimation

void pauseAnimation()

popHoldRepaint

void popHoldRepaint()

pushHoldRepaint

void pushHoldRepaint()

refresh

boolean refresh()

render

void render(Graphics3D g3d, ModelSet modelSet)

repaintDone

void repaintDone()

requestRepaintAndWait

void requestRepaintAndWait()

resumeAnimation

void resumeAnimation()

reverseAnimation

void reverseAnimation()

rewindAnimation

void rewindAnimation()

setAnimationDirection

void setAnimationDirection(int animationDirection)

setAnimationFps

void setAnimationFps(int animationFps)

setAnimationLast

void setAnimationLast()

setAnimationNext

boolean setAnimationNext()

setAnimationOff

void setAnimationOff(boolean isPaused)

setAnimationOn

void setAnimationOn(boolean animationOn)

setAnimationPrevious

boolean setAnimationPrevious()

setAnimationRange

void setAnimationRange(int framePointer, int framePointer2)

setAnimationRelative

boolean setAnimationRelative(int direction)

setAnimationReplayMode

void setAnimationReplayMode(int animationReplayMode, float firstFrameDelay, float lastFrameDelay)

setBackgroundModelIndex

void setBackgroundModelIndex(int modelIndex)

setCurrentModelIndex

void setCurrentModelIndex(int modelIndex)

setCurrentModelIndex

void setCurrentModelIndex(int modelIndex, boolean clearBackgroundModel)

setFrameRangeVisible

private void setFrameRangeVisible()

setInMotion

void setInMotion(boolean inMotion)

setStatusFrameChanged

private void setStatusFrameChanged()