|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.klafbang.tincpn.gui.sheet.Sheet
dk.klafbang.tincpn.animation.AnimationSheet
dk.klafbang.tincpn.animation.plugin.SceneBeans
public class SceneBeans
Makes custom animations using SceneBeans.
SceneBeans allows you to create elaborate animations, but is also quite complex to use. For more information on writing SceneBeans animations, check the SceneBeans homepage.
SceneBeans animations are particularily usefull when you want to animate some physical process or protocol. Good examples include a protocol in a mobile ad-hoc network, a workflow at a bank etc.
Constructor Summary | |
---|---|
SceneBeans(java.lang.String name,
java.lang.String id)
Constructs a SceneBeans object. |
Method Summary | |
---|---|
void |
animationEvent(uk.ac.ic.doc.scenebeans.event.AnimationEvent ev)
|
javax.swing.JComponent |
createAnimation()
|
java.lang.String |
getNextEvent()
Wait for, remove and return the next event. |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getValue(java.lang.String object,
java.lang.String name)
Get the value of a parameter vith the given name on the given object. |
boolean |
hasMoreEvents()
Return whether more events are currently available. |
void |
invokeCommand(java.lang.String name)
Invoke the command with the given name. |
java.lang.String |
peekNextEvent()
Wait for and return the next event. |
void |
reset()
Reload this animation. |
void |
setAnimation(java.lang.String filename)
Loads and displays a new animation. |
void |
setAnimationFile(java.io.File file)
|
void |
setValue(java.lang.String object,
java.lang.String name,
java.lang.String value)
Set the value of a parameter with the given name on the given object. |
void |
waitForEvent(java.lang.String name)
Wait for and remove the next event with the given name. |
Methods inherited from class dk.klafbang.tincpn.animation.AnimationSheet |
---|
canCoexistWith, getComponentImpl |
Methods inherited from class dk.klafbang.tincpn.gui.sheet.Sheet |
---|
addSheetHook, getComponent, getIndexNode, getText, removeComponent, setText |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SceneBeans(java.lang.String name, java.lang.String id)
name
- the name of the SceneBeans animationid
- Method Detail |
---|
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class dk.klafbang.tincpn.gui.sheet.Sheet
Sheet.getPreferredSize()
public javax.swing.JComponent createAnimation()
createAnimation
in class dk.klafbang.tincpn.animation.AnimationSheet
AnimationSheet.createAnimation()
public void animationEvent(uk.ac.ic.doc.scenebeans.event.AnimationEvent ev)
animationEvent
in interface uk.ac.ic.doc.scenebeans.event.AnimationListener
AnimationListener.animationEvent(uk.ac.ic.doc.scenebeans.event.AnimationEvent)
public void setAnimation(java.lang.String filename) throws java.lang.Exception
filename
- the name of a file containing the animation description
java.lang.Exception
public void setAnimationFile(java.io.File file) throws java.lang.Exception
file
-
java.lang.Exception
public void setValue(java.lang.String object, java.lang.String name, java.lang.String value) throws java.lang.Exception
object
- the objectname
- the namevalue
- the value
java.lang.Exception
getValue(java.lang.String, java.lang.String)
public java.lang.String getValue(java.lang.String object, java.lang.String name) throws java.lang.Exception
object
- the objectname
- the name
java.lang.Exception
setValue(java.lang.String, java.lang.String, java.lang.String)
public java.lang.String getNextEvent()
public java.lang.String peekNextEvent()
public void waitForEvent(java.lang.String name)
name
- the name of the event to wait forpublic boolean hasMoreEvents()
public void invokeCommand(java.lang.String name) throws java.lang.Exception
name
- the name of the command to invoke
java.lang.Exception
public void reset()
|
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |