Package ipsk.audio.arr.clip.ui
Class AudioSignalRenderer
- java.lang.Object
-
- ipsk.audio.arr.clip.ui.AudioSignalRenderer
-
- All Implemented Interfaces:
java.lang.Runnable
public class AudioSignalRenderer extends java.lang.Object implements java.lang.Runnable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAudioSignalRenderer.RenderResultclassAudioSignalRenderer.Request
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_BASELOG_LEVEL
-
Constructor Summary
Constructors Constructor Description AudioSignalRenderer(AudioSource audioSource, AudioSignalRendererListener listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()java.awt.ColorgetBackgroundColor()intgetNotifyOnPixels()java.awt.ColorgetSignalColor()AudioSignalRenderer.RenderResultrender(int fromPixel, int toPixel, double framesPerPixel, boolean useThread, boolean forceRendering)java.awt.image.RenderedImagerenderImage(int width, int imgHeight, double framesPerPixel)java.awt.image.RenderedImagerenderImage(int fromPixel, int toPixel, int height, double framesPerPixel, boolean useThread, boolean forceRendering)voidrun()voidsetBackgroundColor(java.awt.Color backgroundColor)voidsetNotifyOnPixels(int notifyOnPixels)voidsetSignalColor(java.awt.Color signalColor)ipsk.audio.arr.clip.ui.AudioSignalRenderer.Value[]startRender(int fromPixel, int toPixel, double framesPerPixel)
-
-
-
Field Detail
-
DEFAULT_BASELOG_LEVEL
public static final int DEFAULT_BASELOG_LEVEL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AudioSignalRenderer
public AudioSignalRenderer(AudioSource audioSource, AudioSignalRendererListener listener) throws AudioFormatNotSupportedException, AudioSourceException
-
-
Method Detail
-
renderImage
public java.awt.image.RenderedImage renderImage(int width, int imgHeight, double framesPerPixel) throws AudioSourceException- Throws:
AudioSourceException
-
renderImage
public java.awt.image.RenderedImage renderImage(int fromPixel, int toPixel, int height, double framesPerPixel, boolean useThread, boolean forceRendering) throws AudioSourceException- Throws:
AudioSourceException
-
render
public AudioSignalRenderer.RenderResult render(int fromPixel, int toPixel, double framesPerPixel, boolean useThread, boolean forceRendering) throws AudioSourceException
- Throws:
AudioSourceException
-
startRender
public ipsk.audio.arr.clip.ui.AudioSignalRenderer.Value[] startRender(int fromPixel, int toPixel, double framesPerPixel) throws AudioSourceException- Throws:
AudioSourceException
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
close
public void close()
-
getNotifyOnPixels
public int getNotifyOnPixels()
-
setNotifyOnPixels
public void setNotifyOnPixels(int notifyOnPixels)
-
setBackgroundColor
public void setBackgroundColor(java.awt.Color backgroundColor)
- Parameters:
backgroundColor- the backgroundColor to set
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
- Returns:
- the backgroundColor
-
setSignalColor
public void setSignalColor(java.awt.Color signalColor)
- Parameters:
signalColor- the signalColor to set
-
getSignalColor
public java.awt.Color getSignalColor()
- Returns:
- the signalColor
-
-