Package com.inductiveautomation.rm.shape
Class RMSoundShape
java.lang.Object
com.inductiveautomation.rm.base.RMListenerList
com.inductiveautomation.rm.base.RMObject
com.inductiveautomation.rm.shape.RMShape
com.inductiveautomation.rm.shape.RMSoundShape
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- RMTypes,- PropertyChangeListener,- Cloneable,- EventListener
This class represents a sound in a document.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfaceA listener interface that can be implemented by anyone that cares.Nested classes/interfaces inherited from interface com.inductiveautomation.rm.base.RMTypesRMTypes.Align, RMTypes.AlignX, RMTypes.AlignY
- 
Field SummaryFields inherited from class com.inductiveautomation.rm.shape.RMShapeBINDING_PROP_NAME, STROKE_BORDER, STROKE_DOUBLE, STROKE_HIDDEN, STROKE_SHAPE
- 
Constructor SummaryConstructorsConstructorDescriptionCreates an empty sound shape.RMSoundShape(Object aSource) Creates a sound shape from a given source (File, String path, InputStream, byte array, etc.).
- 
Method SummaryModifier and TypeMethodDescriptionfromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.getClip()Returns the clip.getClip(boolean create) Returns the clip, creating it if requested.floatgetDelay()Returns the delay after which this sound is supposed to start to play.getKey()Returns the RPG key for this sound shape.intReturns the number of loops that this sound should play before stopping.booleanReturns whether this sound should overlap other sounds.booleanReturns whether this sound is currently playing.protected voidgetPropertyNames(List<String> aList) Overridden to add 'Source' & 'Playing' to the list of property names you can bind to.Returns the sound data for this sound shape.Returns the name of the sound.For the moment, this has to be here for binding.voidpaintShape(RMShapePainter aPntr) Handles painting a sound shape.rptShape(ReportOwner anRptOwner) Report generation method.voidsetDelay(float aValue) Sets the delay after which this sound is supposed to start to play.voidSets the RPG key for this sound shape.voidsetLoopCount(int aValue) Returns the number of loops that this sound should play before stopping.voidsetOverlap(boolean aValue) Returns whether this sound should overlap other sounds.voidsetPlaying(boolean aValue) Sets whether or not this sound is currently playing.voidsetSoundData(RMSoundData aSoundData) Sets the sound data for this sound shape.voidSets the source of the sound (File, String path, InputStream, byte array, etc.).protected voidOverrides shape implementation to stop sound.protected voidOverrides shape implementation to start sound if it should be playing.toXML(RXArchiver anArchiver) XML archival.Methods inherited from class com.inductiveautomation.rm.shape.RMShapeacceptsChildren, acceptsMouse, addBinding, addBinding, addDeepChangeListener, addMouseListener, animUpdate, bounds, childrenSuperSelectImmediately, clone, cloneDeep, computePrefHeight, computePrefWidth, contains, convertedPointFromShape, convertedPointToShape, convertedRectFromShape, convertedRectToShape, convertedVectorFromShape, convertedVectorToShape, convertFromShape, convertPathFromShape, convertPathToShape, convertPointFromShape, convertPointToShape, convertRectFromShape, convertRectToShape, convertToShape, convertVectorFromShape, convertVectorToShape, copyShape, createDivideShapeRemainder, deepChange, divideShapeFromEdge, divideShapeFromTop, get, get, getAlignment, getAlignmentX, getAlignmentY, getAncestor, getAncestorCount, getAncestorInCommon, getAnimator, getAnimator, getAutosizing, getAutosizingDefault, getBestHeight, getBestHeight, getBestWidth, getBestWidth, getBinding, getBinding, getBindingCount, getBindings, getBounds, getBoundsInside, getBoundsMarked, getBoundsMarkedDeep, getChild, getChildAnimator, getChildAnimator, getChildClipShape, getChildCount, getChildren, getClipShape, getColor, getDashArrayString, getDashPhase, getDatasetEntity, getDatasetKey, getDisplayedFill, getDisplayedStroke, getDocument, getEffect, getEventAdapter, getFill, getFont, getFormat, getFrame, getFrameHeight, getFrameMaxX, getFrameMaxY, getFrameWidth, getFrameX, getFrameXY, getFrameY, getHeight, getHover, getLayoutInfo, getMaskPath, getMaxX, getMaxY, getMinHeight, getMinHeight, getMinWidth, getMinWidth, getName, getOpacity, getOpacityDeep, getOutline, getPageBreak, getPageBreakMax, getPageBreakPage, getPageBreakPageMax, getPageShape, getParent, getParent, getPath, getPathInBounds, getPrefHeight, getPrefHeight, getPrefWidth, getPrefWidth, getPropertyNameMapped, getPropertyNames, getRoll, getRootShape, getRSS, getScaleX, getScaleY, getShapesToAncestor, getShapesToDescendant, getShapesToShape, getSize, getSkewX, getSkewY, getStroke, getStrokeColor, getStrokeOnTop, getStrokeStyle, getStrokeWidth, getTextColor, getTimeline, getTimeline, getTransform, getTransformFromShape, getTransformInverse, getTransformToShape, getUndoer, getURL, getVisbileBounds, getVisibleBounds, getVisibleBounds, getVisibleBounds, getWidth, getX, getXY, getXYP, getY, height, indexOf, intersects, isAncestor, isAnimProperty, isDeletable, isDescendant, isEditing, isEnabled, isFontSet, isHittable, isLocked, isMinHeightSet, isMinWidthSet, isPrefHeightSet, isPrefWidthSet, isRoot, isRSS, isShowing, isUnderlined, isUseFill, isUseStroke, isViewing, isVisible, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, offsetXY, page, pageMax, paint, paintShapeAll, paintShapeChildren, paintShapeOver, propertyChange, put, removeBinding, removeBinding, removeDeepChangeListener, removeFromParent, removeMouseListener, repaint, repaint, resolvePageReferences, rpgAll, rpgBindings, rpgShape, setAlignment, setAlignmentX, setAlignmentY, setAutosizing, setBestHeight, setBestSize, setBounds, setBounds, setColor, setDashArrayString, setDashPhase, setEffect, setEnabled, setFill, setFont, setFormat, setFrame, setFrame, setFrameSize, setFrameX, setFrameXY, setFrameXY, setFrameY, setHeight, setHover, setLayoutInfo, setLocked, setMinHeight, setMinSize, setMinWidth, setName, setOpacity, setOutline, setParent, setPrefHeight, setPrefWidth, setRoll, setScaleX, setScaleXY, setScaleY, setShowing, setSize, setSize, setSkewX, setSkewXY, setSkewY, setStroke, setStrokeColor, setStrokeStyle, setStrokeWidth, setTextColor, setTime, setTimeline, setUnderlined, setURL, setUseFill, setUseStroke, setVisible, setWidth, setX, setXY, setXY, setXYP, setY, superSelectable, toString, undoerDisable, undoerEnable, undoerSetUndoTitle, width, x, yMethods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChangeMethods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
- 
Constructor Details- 
RMSoundShapepublic RMSoundShape()Creates an empty sound shape.
- 
RMSoundShapeCreates a sound shape from a given source (File, String path, InputStream, byte array, etc.).
 
- 
- 
Method Details- 
getSourceFor the moment, this has to be here for binding.
- 
setSourceSets the source of the sound (File, String path, InputStream, byte array, etc.).
- 
getSoundDataReturns the sound data for this sound shape.
- 
setSoundDataSets the sound data for this sound shape.
- 
getKeyReturns the RPG key for this sound shape.
- 
setKeySets the RPG key for this sound shape.
- 
getDelaypublic float getDelay()Returns the delay after which this sound is supposed to start to play.
- 
setDelaypublic void setDelay(float aValue) Sets the delay after which this sound is supposed to start to play.
- 
getLoopCountpublic int getLoopCount()Returns the number of loops that this sound should play before stopping.
- 
setLoopCountpublic void setLoopCount(int aValue) Returns the number of loops that this sound should play before stopping.
- 
getOverlappublic boolean getOverlap()Returns whether this sound should overlap other sounds.
- 
setOverlappublic void setOverlap(boolean aValue) Returns whether this sound should overlap other sounds.
- 
getSoundNameReturns the name of the sound.
- 
getPlayingpublic boolean getPlaying()Returns whether this sound is currently playing.
- 
setPlayingpublic void setPlaying(boolean aValue) Sets whether or not this sound is currently playing.
- 
rptShapeReport generation method.
- 
getClipReturns the clip.
- 
getClipReturns the clip, creating it if requested.
- 
shapeShownprotected void shapeShown()Overrides shape implementation to start sound if it should be playing.- Overrides:
- shapeShownin class- RMShape
 
- 
shapeHiddenprotected void shapeHidden()Overrides shape implementation to stop sound.- Overrides:
- shapeHiddenin class- RMShape
 
- 
paintShapeHandles painting a sound shape.- Overrides:
- paintShapein class- RMShape
 
- 
getPropertyNamesOverridden to add 'Source' & 'Playing' to the list of property names you can bind to.- Overrides:
- getPropertyNamesin class- RMShape
 
- 
toXMLXML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMShape
 
- 
fromXMLXML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMShape
 
 
-