|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Canvas
net.sf.jame.twister.swing.TwisterCanvas
public class TwisterCanvas
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.Canvas |
|---|
java.awt.Canvas.AccessibleAWTCanvas |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
STATE_EDIT
|
static int |
STATE_INIT
|
static int |
STATE_PLAY
|
static int |
STATE_SCRIPT
|
static int |
SYMBOL_NONE
|
static int |
SYMBOL_PAUSE
|
static int |
SYMBOL_PLAY
|
static int |
SYMBOL_RECORD
|
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
TwisterCanvas(int hcells,
int vcells,
javax.swing.SingleSelectionModel model)
|
|
| Method Summary | |
|---|---|
void |
acquire()
|
void |
addBookmark(TwisterBookmark bookmark)
|
void |
addChangeListener(javax.swing.event.ChangeListener listener)
|
void |
addRenderContextListener(RenderContextListener listener)
|
protected void |
fireChangeEvent()
|
TwisterClip |
getClip()
|
TwisterConfig |
getConfig()
|
long |
getFrameRate()
|
IntegerVector2D |
getImageSize()
|
RenderListener |
getListener()
|
TwisterBookmark |
getSelectedBookmark()
|
int |
getState()
|
int |
getSymbol()
|
boolean |
isDragEnabled()
|
boolean |
isDropEnabled()
|
boolean |
isShowBookmarkIcons()
|
boolean |
isStarted()
|
boolean |
isSuspended()
|
void |
paint(java.awt.Graphics g)
|
void |
refresh()
|
void |
release()
|
void |
removeBookmark()
|
void |
removeChangeListener(javax.swing.event.ChangeListener listener)
|
void |
removeRenderContextListener(RenderContextListener listener)
|
void |
resume()
|
void |
setDragEnabled(boolean dragEnabled)
|
void |
setDropEnabled(boolean dropEnabled)
|
void |
setListener(RenderListener listener)
|
void |
setShowBookmarkIcons(boolean showBookmarks)
|
void |
setSymbol(int symbol)
|
void |
showMessage(java.lang.String message,
float size,
float x,
float y,
long time,
boolean hasBackground)
|
void |
start()
|
void |
start(TwisterClip clip)
|
void |
start(TwisterConfig config)
|
void |
startRenderers()
|
void |
startScript()
|
void |
stop()
|
void |
stopRenderers()
|
void |
stopScript()
|
void |
submitCommand(java.lang.Runnable command)
|
void |
suspend()
|
void |
update(java.awt.Graphics g)
|
| Methods inherited from class java.awt.Canvas |
|---|
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy |
| Methods inherited from class java.awt.Component |
|---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SYMBOL_NONE
public static final int SYMBOL_PLAY
public static final int SYMBOL_PAUSE
public static final int SYMBOL_RECORD
public static final int STATE_INIT
public static final int STATE_EDIT
public static final int STATE_PLAY
public static final int STATE_SCRIPT
| Constructor Detail |
|---|
public TwisterCanvas(int hcells,
int vcells,
javax.swing.SingleSelectionModel model)
throws ExtensionException
hcells - vcells - model -
ExtensionException| Method Detail |
|---|
public void addChangeListener(javax.swing.event.ChangeListener listener)
listener - public void removeChangeListener(javax.swing.event.ChangeListener listener)
listener - protected void fireChangeEvent()
public void showMessage(java.lang.String message,
float size,
float x,
float y,
long time,
boolean hasBackground)
message - size - x - y - time - hasBackground - public void submitCommand(java.lang.Runnable command)
command -
public void acquire()
throws java.lang.InterruptedException
acquire in interface RenderContextjava.lang.InterruptedExceptionRenderContext.acquire()public void release()
release in interface RenderContextRenderContext.release()public void addRenderContextListener(RenderContextListener listener)
addRenderContextListener in interface RenderContextRenderContext.addRenderContextListener(net.sf.jame.core.util.RenderContextListener)public void removeRenderContextListener(RenderContextListener listener)
removeRenderContextListener in interface RenderContextRenderContext.removeRenderContextListener(net.sf.jame.core.util.RenderContextListener)public void refresh()
refresh in interface RenderContextpublic TwisterConfig getConfig()
public TwisterClip getClip()
public boolean isDragEnabled()
public void setDragEnabled(boolean dragEnabled)
dragEnabled - the dragEnabled to setpublic boolean isDropEnabled()
public void setDropEnabled(boolean dropEnabled)
dropEnabled - the dropEnabled to setpublic void update(java.awt.Graphics g)
update in class java.awt.CanvasCanvas.update(java.awt.Graphics)public boolean isStarted()
public void start(TwisterClip clip)
public void start(TwisterConfig config)
public void start()
public void stop()
public void startScript()
public void stopScript()
public boolean isSuspended()
public void resume()
ExtensionExceptionpublic void suspend()
public IntegerVector2D getImageSize()
getImageSize in interface RenderContextRenderContext.getImageSize()public long getFrameRate()
public void paint(java.awt.Graphics g)
paint in class java.awt.CanvasCanvas.paint(java.awt.Graphics)public void startRenderers()
startRenderers in interface RenderContextRenderContext.startRenderers()public void stopRenderers()
stopRenderers in interface RenderContextRenderContext.stopRenderers()public void addBookmark(TwisterBookmark bookmark)
bookmark - public void removeBookmark()
bookmark - public TwisterBookmark getSelectedBookmark()
public boolean isShowBookmarkIcons()
public void setShowBookmarkIcons(boolean showBookmarks)
showBookmarks - the showBookmarks to setpublic int getState()
public int getSymbol()
public void setSymbol(int symbol)
symbol - the symbol to setpublic RenderListener getListener()
public void setListener(RenderListener listener)
listener - the listener to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||