public class MovieDisplay extends BasePanel implements ModeSettable, MovieOperator
Modifier and Type | Class and Description |
---|---|
(package private) class |
MovieDisplay.MDThreadRunner |
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.Color |
bgColor |
(package private) BasePanel |
controlPanel |
(package private) boolean |
isPaused |
(package private) MovieFramePlayer |
movieFramePlayer |
(package private) MoviePaintInstructor |
moviePaintInstructor |
(package private) MovieStateDisplay |
movieStateDisplay |
(package private) int |
nFrame |
(package private) java.awt.Dimension |
prefDim |
(package private) PickWorldCanvas |
pwCanvas |
(package private) static long |
serialVersionUID |
(package private) int |
shownFrame |
(package private) double |
speed |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
MovieDisplay(int w,
int h) |
Modifier and Type | Method and Description |
---|---|
void |
advance() |
void |
advanceToFrame(int ifr) |
void |
attach(java.lang.Object obj) |
boolean |
canAdvance() |
void |
dePause() |
private void |
displayFrame() |
void |
faster() |
java.awt.image.BufferedImage |
getBufferedImage(int ithick) |
int |
getNFrame() |
java.awt.Dimension |
getPreferredSize() |
double |
getSpeed() |
double[] |
getXRange() |
double[] |
getYRange() |
void |
pause() |
void |
pauseDePause() |
void |
play() |
void |
record(java.io.File f,
Logger l) |
void |
reframe() |
void |
reluctantReframe() |
private void |
rePause() |
void |
reset() |
void |
resume() |
void |
setBg(java.awt.Color c) |
void |
setFixedAspectRatio(double ar) |
void |
setLimits(double[] xyxy) |
void |
setMode(java.lang.String dom,
boolean b) |
void |
setMode(java.lang.String dom,
java.lang.String mod) |
void |
setMovie(SpriteAnimation sanim) |
void |
setMoviePaintInstructor(MoviePaintInstructor mpi) |
void |
setMovieStateDisplay(MovieStateDisplay msd) |
void |
setXRange(double low,
double high) |
void |
showFrame(int ifr) |
void |
slower() |
void |
start() |
void |
stop() |
protected void |
threadRecord(java.io.File f,
Logger l) |
void |
viewChanged() |
setTooltip
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
static final long serialVersionUID
MoviePaintInstructor moviePaintInstructor
MovieStateDisplay movieStateDisplay
PickWorldCanvas pwCanvas
BasePanel controlPanel
java.awt.Dimension prefDim
java.awt.Color bgColor
double speed
boolean isPaused
MovieFramePlayer movieFramePlayer
int nFrame
int shownFrame
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class javax.swing.JComponent
public void setMode(java.lang.String dom, java.lang.String mod)
setMode
in interface ModeSettable
public void setMode(java.lang.String dom, boolean b)
setMode
in interface ModeSettable
public void setMovie(SpriteAnimation sanim)
public void setMoviePaintInstructor(MoviePaintInstructor mpi)
public void attach(java.lang.Object obj)
public void setLimits(double[] xyxy)
public void setXRange(double low, double high)
public double[] getXRange()
public double[] getYRange()
public void setFixedAspectRatio(double ar)
public void viewChanged()
public void reframe()
public void advanceToFrame(int ifr)
public void showFrame(int ifr)
showFrame
in interface MovieOperator
private void displayFrame()
public int getNFrame()
getNFrame
in interface MovieOperator
public void reset()
reset
in interface MovieOperator
public void play()
public void resume()
resume
in interface MovieOperator
public void pause()
public void pauseDePause()
pauseDePause
in interface MovieOperator
public void dePause()
private void rePause()
public void start()
start
in interface MovieOperator
public void stop()
stop
in interface MovieOperator
public void faster()
faster
in interface MovieOperator
public void slower()
slower
in interface MovieOperator
public boolean canAdvance()
public void advance()
public double getSpeed()
public void setMovieStateDisplay(MovieStateDisplay msd)
setMovieStateDisplay
in interface MovieOperator
public void reluctantReframe()
public java.awt.image.BufferedImage getBufferedImage(int ithick)
public void record(java.io.File f, Logger l)
record
in interface MovieOperator
protected void threadRecord(java.io.File f, Logger l)
Copyright © 2013. All Rights Reserved.