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 class
AudioSignalRenderer.RenderResult
class
AudioSignalRenderer.Request
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_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 void
close()
java.awt.Color
getBackgroundColor()
int
getNotifyOnPixels()
java.awt.Color
getSignalColor()
AudioSignalRenderer.RenderResult
render(int fromPixel, int toPixel, double framesPerPixel, boolean useThread, boolean forceRendering)
java.awt.image.RenderedImage
renderImage(int width, int imgHeight, double framesPerPixel)
java.awt.image.RenderedImage
renderImage(int fromPixel, int toPixel, int height, double framesPerPixel, boolean useThread, boolean forceRendering)
void
run()
void
setBackgroundColor(java.awt.Color backgroundColor)
void
setNotifyOnPixels(int notifyOnPixels)
void
setSignalColor(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:
run
in 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
-
-