Class RMSoundShape

    • Constructor Detail

      • RMSoundShape

        public RMSoundShape()
        Creates an empty sound shape.
      • RMSoundShape

        public RMSoundShape​(java.lang.Object aSource)
        Creates a sound shape from a given source (File, String path, InputStream, byte array, etc.).
    • Method Detail

      • getSource

        public java.lang.Object getSource()
        For the moment, this has to be here for binding.
      • setSource

        public void setSource​(java.lang.Object aSource)
        Sets the source of the sound (File, String path, InputStream, byte array, etc.).
      • getSoundData

        public RMSoundData getSoundData()
        Returns the sound data for this sound shape.
      • setSoundData

        public void setSoundData​(RMSoundData aSoundData)
        Sets the sound data for this sound shape.
      • getKey

        public java.lang.String getKey()
        Returns the RPG key for this sound shape.
      • setKey

        public void setKey​(java.lang.String aKey)
        Sets the RPG key for this sound shape.
      • getDelay

        public float getDelay()
        Returns the delay after which this sound is supposed to start to play.
      • setDelay

        public void setDelay​(float aValue)
        Sets the delay after which this sound is supposed to start to play.
      • getLoopCount

        public int getLoopCount()
        Returns the number of loops that this sound should play before stopping.
      • setLoopCount

        public void setLoopCount​(int aValue)
        Returns the number of loops that this sound should play before stopping.
      • getOverlap

        public boolean getOverlap()
        Returns whether this sound should overlap other sounds.
      • setOverlap

        public void setOverlap​(boolean aValue)
        Returns whether this sound should overlap other sounds.
      • getSoundName

        public java.lang.String getSoundName()
        Returns the name of the sound.
      • getPlaying

        public boolean getPlaying()
        Returns whether this sound is currently playing.
      • setPlaying

        public void setPlaying​(boolean aValue)
        Sets whether or not this sound is currently playing.
      • rptShape

        public RMShape rptShape​(ReportOwner anRptOwner)
        Report generation method.
      • getClip

        public javax.sound.sampled.Clip getClip()
        Returns the clip.
      • getClip

        public javax.sound.sampled.Clip getClip​(boolean create)
        Returns the clip, creating it if requested.
      • shapeShown

        protected void shapeShown()
        Overrides shape implementation to start sound if it should be playing.
        Overrides:
        shapeShown in class RMShape
      • shapeHidden

        protected void shapeHidden()
        Overrides shape implementation to stop sound.
        Overrides:
        shapeHidden in class RMShape
      • getPropertyNames

        protected void getPropertyNames​(java.util.List<java.lang.String> aList)
        Overridden to add 'Source' & 'Playing' to the list of property names you can bind to.
        Overrides:
        getPropertyNames in class RMShape