javazoom.jlgui.player.amp.skin

Class Skin


public class Skin
extends java.lang.Object

This class allows to load all skin (2.0 compliant) features.

Field Summary

static int
BALANCEMAX
static int
POSBARMAX
static String
TITLETEXT
static int
VOLUMEMAX

Constructor Summary

Skin()

Method Summary

SpectrumTimeAnalyzer
getAcAnalyzer()
ActiveJSlider
getAcBalance()
ActiveJLabel
getAcBitRateLabel()
ActiveJButton
getAcEject()
ActiveJToggleButton
getAcEqAuto()
ActiveJToggleButton
getAcEqOnOff()
ActiveJButton
getAcEqPresets()
ActiveJSlider[]
getAcEqSliders()
ActiveJToggleButton
getAcEqualizer()
ActiveJButton
getAcExit()
ActiveJButton
getAcMinimize()
ActiveJNumberLabel
getAcMinuteH()
ActiveJNumberLabel
getAcMinuteL()
ActiveJIcon
getAcMonoIcon()
ActiveJButton
getAcNext()
ActiveJButton
getAcPause()
ActiveJButton
getAcPlAdd()
ActiveJPopup
getAcPlAddPopup()
ActiveJButton
getAcPlDown()
ActiveJButton
getAcPlList()
ActiveJPopup
getAcPlListPopup()
ActiveJButton
getAcPlMisc()
ActiveJPopup
getAcPlMiscPopup()
ActiveJButton
getAcPlRemove()
ActiveJPopup
getAcPlRemovePopup()
ActiveJButton
getAcPlSelect()
ActiveJPopup
getAcPlSelectPopup()
ActiveJSlider
getAcPlSlider()
ActiveJButton
getAcPlUp()
ActiveJButton
getAcPlay()
ActiveJIcon
getAcPlayIcon()
ActiveJToggleButton
getAcPlaylist()
ActiveJSlider
getAcPosBar()
ActiveJButton
getAcPrevious()
ActiveJToggleButton
getAcRepeat()
ActiveJLabel
getAcSampleRateLabel()
ActiveJNumberLabel
getAcSecondH()
ActiveJNumberLabel
getAcSecondL()
ActiveJToggleButton
getAcShuffle()
ActiveJIcon
getAcStereoIcon()
ActiveJButton
getAcStop()
ActiveJIcon
getAcTimeIcon()
ActiveJBar
getAcTitleBar()
ActiveJLabel
getAcTitleLabel()
ActiveJSlider
getAcVolume()
Config
getConfig()
Image
getEqualizerImage()
int
getMainHeight()
Image
getMainImage()
int
getMainWidth()
String
getPath()
Return skin path.
PlaylistUIDelegate
getPlaylistPanel()
String
getReadme()
Return readme content from skin.
String
getResource(String key)
Return I18N value of a given key.
String
getSkinVersion()
SplinePanel
getSpline()
String
getVisColors()
Return visual colors from skin.
boolean
isDspEnabled()
void
loadSkin(InputStream skinStream)
Loads a new skin from any input stream.
void
loadSkin(String skinName)
Loads a new skin from local file system.
void
loadSkin(SkinLoader skl)
Loads a skin from a SkinLoader.
void
readPanel(Image[] releasedImage, int[] releasedPanel, Image[] pressedImage, int[] pressedPanel, Image imPanel)
Crop Panel Features from image file.
void
setConfig(Config config)
void
setDspEnabled(boolean dspEnabled)
protected void
setExitPanel()
Instantiate Exit Panel with ActiveComponent.
protected void
setMinimizePanel()
Instantiate Minimize Panel with ActiveComponent.
void
setOnOffAutoPanel()
Set On/Off and Auto checkbox.
void
setPath(String path)
void
setPlaylistPanel()
Instantiate playlist panel.
protected void
setPosBarPanel()
Instantiate PosBar Panel with ActiveComponent.
void
setPresetsPanel()
Set presets button.
void
setSkinVersion(String skinVersion)
void
setSplinePanel()
Instantiate equalizer spline panel.
protected void
setTitleBarPanel()
Instantiate Title Panel with ActiveComponent.

Field Details

BALANCEMAX

public static final int BALANCEMAX
Field Value:
5

POSBARMAX

public static final int POSBARMAX
Field Value:
1000

TITLETEXT

public static final String TITLETEXT

VOLUMEMAX

public static final int VOLUMEMAX
Field Value:
100

Constructor Details

Skin

public Skin()

Method Details

getAcAnalyzer

public SpectrumTimeAnalyzer getAcAnalyzer()

getAcBalance

public ActiveJSlider getAcBalance()

getAcBitRateLabel

public ActiveJLabel getAcBitRateLabel()

getAcEject

public ActiveJButton getAcEject()

getAcEqAuto

public ActiveJToggleButton getAcEqAuto()

getAcEqOnOff

public ActiveJToggleButton getAcEqOnOff()

getAcEqPresets

public ActiveJButton getAcEqPresets()

getAcEqSliders

public ActiveJSlider[] getAcEqSliders()

getAcEqualizer

public ActiveJToggleButton getAcEqualizer()

getAcExit

public ActiveJButton getAcExit()

getAcMinimize

public ActiveJButton getAcMinimize()

getAcMinuteH

public ActiveJNumberLabel getAcMinuteH()

getAcMinuteL

public ActiveJNumberLabel getAcMinuteL()

getAcMonoIcon

public ActiveJIcon getAcMonoIcon()

getAcNext

public ActiveJButton getAcNext()

getAcPause

public ActiveJButton getAcPause()

getAcPlAdd

public ActiveJButton getAcPlAdd()

getAcPlAddPopup

public ActiveJPopup getAcPlAddPopup()

getAcPlDown

public ActiveJButton getAcPlDown()

getAcPlList

public ActiveJButton getAcPlList()

getAcPlListPopup

public ActiveJPopup getAcPlListPopup()

getAcPlMisc

public ActiveJButton getAcPlMisc()

getAcPlMiscPopup

public ActiveJPopup getAcPlMiscPopup()

getAcPlRemove

public ActiveJButton getAcPlRemove()

getAcPlRemovePopup

public ActiveJPopup getAcPlRemovePopup()

getAcPlSelect

public ActiveJButton getAcPlSelect()

getAcPlSelectPopup

public ActiveJPopup getAcPlSelectPopup()

getAcPlSlider

public ActiveJSlider getAcPlSlider()

getAcPlUp

public ActiveJButton getAcPlUp()

getAcPlay

public ActiveJButton getAcPlay()

getAcPlayIcon

public ActiveJIcon getAcPlayIcon()

getAcPlaylist

public ActiveJToggleButton getAcPlaylist()

getAcPosBar

public ActiveJSlider getAcPosBar()

getAcPrevious

public ActiveJButton getAcPrevious()

getAcRepeat

public ActiveJToggleButton getAcRepeat()

getAcSampleRateLabel

public ActiveJLabel getAcSampleRateLabel()

getAcSecondH

public ActiveJNumberLabel getAcSecondH()

getAcSecondL

public ActiveJNumberLabel getAcSecondL()

getAcShuffle

public ActiveJToggleButton getAcShuffle()

getAcStereoIcon

public ActiveJIcon getAcStereoIcon()

getAcStop

public ActiveJButton getAcStop()

getAcTimeIcon

public ActiveJIcon getAcTimeIcon()

getAcTitleBar

public ActiveJBar getAcTitleBar()

getAcTitleLabel

public ActiveJLabel getAcTitleLabel()

getAcVolume

public ActiveJSlider getAcVolume()

getConfig

public Config getConfig()

getEqualizerImage

public Image getEqualizerImage()

getMainHeight

public int getMainHeight()

getMainImage

public Image getMainImage()

getMainWidth

public int getMainWidth()

getPath

public String getPath()
Return skin path.
Returns:

getPlaylistPanel

public PlaylistUIDelegate getPlaylistPanel()

getReadme

public String getReadme()
Return readme content from skin.
Returns:

getResource

public String getResource(String key)
Return I18N value of a given key.
Parameters:
key -
Returns:

getSkinVersion

public String getSkinVersion()

getSpline

public SplinePanel getSpline()

getVisColors

public String getVisColors()
Return visual colors from skin.
Returns:

isDspEnabled

public boolean isDspEnabled()

loadSkin

public void loadSkin(InputStream skinStream)
Loads a new skin from any input stream.
Parameters:
skinStream -

loadSkin

public void loadSkin(String skinName)
Loads a new skin from local file system.
Parameters:
skinName -

loadSkin

public void loadSkin(SkinLoader skl)
            throws Exception
Loads a skin from a SkinLoader.
Parameters:
skl -

readPanel

public void readPanel(Image[] releasedImage,
                      int[] releasedPanel,
                      Image[] pressedImage,
                      int[] pressedPanel,
                      Image imPanel)
Crop Panel Features from image file.
Parameters:
releasedImage -
releasedPanel -
pressedImage -
pressedPanel -
imPanel -

setConfig

public void setConfig(Config config)

setDspEnabled

public void setDspEnabled(boolean dspEnabled)

setExitPanel

protected void setExitPanel()
Instantiate Exit Panel with ActiveComponent.

setMinimizePanel

protected void setMinimizePanel()
Instantiate Minimize Panel with ActiveComponent.

setOnOffAutoPanel

public void setOnOffAutoPanel()
Set On/Off and Auto checkbox.

setPath

public void setPath(String path)

setPlaylistPanel

public void setPlaylistPanel()
Instantiate playlist panel.

setPosBarPanel

protected void setPosBarPanel()
Instantiate PosBar Panel with ActiveComponent.

setPresetsPanel

public void setPresetsPanel()
Set presets button.

setSkinVersion

public void setSkinVersion(String skinVersion)

setSplinePanel

public void setSplinePanel()
Instantiate equalizer spline panel.

setTitleBarPanel

protected void setTitleBarPanel()
Instantiate Title Panel with ActiveComponent.

JavaZOOM 1999-2006