|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel net.sourceforge.webcompmath.awt.Animator net.sourceforge.webcompmath.awt.beans.WCMAnimatorBean
public class WCMAnimatorBean
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
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 |
---|
Fields inherited from class net.sourceforge.webcompmath.awt.Animator |
---|
BACK_AND_FORTH, HORIZONTAL, LOOP, LOOP_CHOICE, NEXT_BUTTON, ONCE, PAUSE_BUTTON, PREV_BUTTON, SPEED_CHOICE, START_BUTTON, START_STOP_BUTTON, STOP_BUTTON, VERTICAL |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
WCMAnimatorBean()
Default constructor, going from 0 to 1 in 10 steps. |
Method Summary | |
---|---|
Value |
getIntervals()
Get the number of intervals. |
int |
getLoopStyle()
Get the loop style. |
MathObject |
getMathObject()
return the embedded variable. |
Value |
getMax()
Get the maximum value. |
int |
getMillisPerFrame()
Get the number of milliseconds per frame. |
Value |
getMin()
Get the minimum value. |
java.lang.String |
getName()
Get the animator's name, which is the same as it's variable, which defaults to "k". |
int |
getOrientation()
Get the orientation. |
java.lang.String |
getStartButtonName()
Get the start button name. |
java.lang.String |
getStopButtonName()
Get the text of the stop button. |
boolean |
getUndefinedWhenNotRunning()
Get whether value is Double.NaN when not running. |
double |
getVal()
Get the value. |
boolean |
isLoopChoice()
Get whether the choice has been added. |
boolean |
isNextButton()
Get whether the button has been added. |
boolean |
isPauseButton()
Get whether the button has been added. |
boolean |
isPrevButton()
Get whether the button has been added. |
boolean |
isSpeedChoice()
Get whether the choice has been added. |
boolean |
isStartButton()
Get whether the button has been added. |
boolean |
isStartStopButton()
Get whether the button has been added. |
boolean |
isStopButton()
Get whether the button has been added. |
void |
setIntervals(Value intervals)
Set the number of intervals. |
void |
setLoopChoice(boolean b)
Set whether to use the choice. |
void |
setLoopStyle(int style)
Set the loop style to ONCE, LOOP, or BACK_AND_FORTH. |
void |
setMax(Value max)
Set the maximum value. |
void |
setMillisPerFrame(int millis)
Set the number of milliseconds per animation step. |
void |
setMin(Value min)
Set the minimum value. |
void |
setName(java.lang.String name)
Set the animator's name, which is the same as it's variable, which defaults to "k" if it isn't set explicitly. |
void |
setNextButton(boolean b)
Set whether to use the button. |
void |
setOrientation(int orientation)
Set the orientation to Animator.HORIZONTAL or Animator.VERTICAL |
void |
setPauseButton(boolean b)
Set whether to use the button. |
void |
setPrevButton(boolean b)
Set whether to use the button. |
void |
setSpeedChoice(boolean b)
Set whether to use the choice. |
void |
setStartButton(boolean b)
Set whether to use the button. |
void |
setStartButtonName(java.lang.String s)
Set the start button name. |
void |
setStartStopButton(boolean b)
Set whether to use the button. |
void |
setStopButton(boolean b)
Set whether to use the button. |
void |
setStopButtonName(java.lang.String name)
Set the text for the stop button. |
void |
setUndefinedWhenNotRunning(boolean undefinedWhenNotRunning)
Set whether value is Double.NaN when not running. |
void |
setVal(double val)
Set the value (typically used to set the initial value). |
Methods inherited from class net.sourceforge.webcompmath.awt.Animator |
---|
actionPerformed, addControl, checkInput, getControl, getOnChange, getSerialNumber, getValueAsVariable, getValueAsVariable, hasControl, itemStateChanged, next, notifyControllerOnChange, pause, prev, removeControl, run, setForeground, setIntervals, setMax, setMin, setOnChange, start, stop, sync |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, 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, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
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, 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, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sourceforge.webcompmath.data.beans.ParserMathObject |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public WCMAnimatorBean()
Method Detail |
---|
public MathObject getMathObject()
getMathObject
in interface ParserMathObject
ParserMathObject.getMathObject()
public java.lang.String getName()
getName
in interface MathObject
getName
in class java.awt.Component
Component.getName()
public void setName(java.lang.String name)
setName
in interface MathObject
setName
in class java.awt.Component
name
- object's nameComponent.setName(java.lang.String)
public void setStartStopButton(boolean b)
b
- true or falsepublic boolean isStartStopButton()
public void setStartButton(boolean b)
b
- true or falsepublic boolean isStartButton()
public void setStopButton(boolean b)
b
- true or falsepublic boolean isStopButton()
public void setPauseButton(boolean b)
b
- true or falsepublic boolean isPauseButton()
public void setNextButton(boolean b)
b
- true or falsepublic boolean isNextButton()
public void setPrevButton(boolean b)
b
- true or falsepublic boolean isPrevButton()
public void setSpeedChoice(boolean b)
b
- true or falsepublic boolean isSpeedChoice()
public void setLoopChoice(boolean b)
b
- true or falsepublic boolean isLoopChoice()
public void setStartButtonName(java.lang.String s)
setStartButtonName
in class Animator
s
- the name of the buttonAnimator.setStartButtonName(java.lang.String)
public java.lang.String getStartButtonName()
getStartButtonName
in class Animator
Animator.getStartButtonName()
public void setLoopStyle(int style)
setLoopStyle
in class Animator
style
- the desired looping styleAnimator.setLoopStyle(int)
public int getLoopStyle()
getLoopStyle
in class Animator
Animator.getLoopStyle()
public void setMillisPerFrame(int millis)
setMillisPerFrame
in class Animator
millis
- the desired milliseconds per frameAnimator.setMillisPerFrame(int)
public int getMillisPerFrame()
getMillisPerFrame
in class Animator
Animator.getMillisPerFrame()
public void setOrientation(int orientation)
setOrientation
in class Animator
orientation
- vertical or horizontalAnimator.setOrientation(int)
public int getOrientation()
getOrientation
in class Animator
Animator.getOrientation()
public void setStopButtonName(java.lang.String name)
setStopButtonName
in class Animator
name
- the name of the buttonAnimator.setStopButtonName(java.lang.String)
public java.lang.String getStopButtonName()
getStopButtonName
in class Animator
Animator.getStopButtonName()
public void setUndefinedWhenNotRunning(boolean undefinedWhenNotRunning)
setUndefinedWhenNotRunning
in class Animator
undefinedWhenNotRunning
- true or falseAnimator.setUndefinedWhenNotRunning(boolean)
public boolean getUndefinedWhenNotRunning()
getUndefinedWhenNotRunning
in class Animator
Animator.getUndefinedWhenNotRunning()
public void setVal(double val)
setVal
in class Animator
val
- the desired valueAnimator.setVal(double)
public double getVal()
getVal
in interface Value
getVal
in class Animator
Animator.getVal()
public void setIntervals(Value intervals)
setIntervals
in class Animator
intervals
- the desired number of framesAnimator.setIntervals(net.sourceforge.webcompmath.data.Value)
public Value getIntervals()
getIntervals
in class Animator
Animator.getIntervals()
public void setMax(Value max)
setMax
in class Animator
max
- value object specifying the max valueAnimator.setMax(net.sourceforge.webcompmath.data.Value)
public Value getMax()
getMax
in class Animator
Animator.getMax()
public void setMin(Value min)
setMin
in class Animator
min
- the desired min valueAnimator.setMin(net.sourceforge.webcompmath.data.Value)
public Value getMin()
getMin
in class Animator
Animator.getMin()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |