net.sourceforge.atunes.kernel.handlers
Class VisualHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.VisualHandler

public class VisualHandler
extends java.lang.Object

The Class VisualHandler.


Method Summary
 void finish()
          Finish.
 AudioScrobblerPanel getAudioScrobblerPanel()
          Gets the audio scrobbler panel.
 CopyProgressDialog getCopyProgressDialog()
          Gets the copy progress dialog.
 CustomSearchDialog getCustomSearchDialog()
          Gets the custom search dialog.
 EditPreferencesDialog getEditPreferencesDialog()
          Gets the edits the preferences dialog.
 EditTagDialog getEditTagDialog()
          Gets the edits the tag dialog.
 EditTitlesDialog getEditTitlesDialog()
          Gets the edits the titles dialog.
 EqualizerDialog getEqualizerDialog()
          Gets the equalizer dialog.
 ExportOptionsDialog getExportDialog()
          Gets the export dialog.
 CopyProgressDialog getExportProgressDialog()
          Gets the export progress dialog.
 FileSelectionDialog getFileSelectionDialog(boolean dirOnly)
          Gets the file selection dialog.
 Frame getFrame()
          Gets the frame.
 FullScreenDialog getFullScreenFrame()
          Gets the full screen frame.
static VisualHandler getInstance()
          Gets the single instance of VisualHandler.
 ApplicationMenuBar getMenuBar()
          Gets the menu bar.
 MultiFolderSelectionDialog getMultiFolderSelectionDialog()
          Gets the multi folder selection dialog.
 NavigationPanel getNavigationPanel()
          Gets the navigation panel.
 PodcastFeedEntryDownloadProgressDialog getNewPodcastFeedEntryDownloadProgressDialog(java.lang.String title)
          Gets the new podcast feed entry download progress dialog.
 OSDDialog getOSDDialog()
          Gets the oSD dialog.
 PlayerControlsPanel getPlayerControls()
          Gets the player controls.
 PlayListColumnSelector getPlayListColumnSelector()
          Gets the play list column selector.
 PlayListPanel getPlayListPanel()
          Gets the play list panel.
 PlayListTable getPlayListTable()
          Gets the play list table.
 PlayListTableModel getPlayListTableModel()
          Gets the play list table model.
 RepositoryProgressDialog getProgressDialog()
          Gets the progress dialog.
 FilePropertiesPanel getPropertiesPanel()
          Gets the properties panel.
 RadioBrowserDialog getRadioBrowserDialog()
          Gets the radio browser dialog.
 RipCdDialog getRipCdDialog()
          Gets the rip cd dialog.
 RipperProgressDialog getRipperProgressDialog()
          Gets the ripper progress dialog.
 SearchDialog getSearchDialog()
          Gets the search dialog.
 SearchResultsDialog getSearchResultsDialog()
          Gets the search results dialog.
 java.awt.event.ComponentListener getStandardWindowListener()
          Gets the standard window listener.
 StatsDialog getStatsDialog()
          Gets the stats dialog.
 ToolBar getToolBar()
          Gets the tool bar.
 java.awt.Point getWindowLocation()
          Gets the window location.
 java.awt.Dimension getWindowSize()
          Gets the window size.
 java.awt.event.WindowAdapter getWindowStateListener()
          Gets the window state listener.
 void hideDeviceInfoOnStatusBar()
           
 void hideIndeterminateProgressDialog()
          Hide indeterminate progress dialog.
 void hideSplashScreen()
          Hide splash screen.
 void hideWindows()
          Hides all windows.
 boolean isMaximized()
          Checks if is maximized.
 boolean isMultipleWindow()
          Checks if is multiple window.
 void repaint()
          Repaint.
 void setCenterStatusBarText(java.lang.String text, java.lang.String toolTip)
          Sets the center status bar text.
 void setFrameDefaultCloseOperation(int op)
          Sets the frame default close operation.
 void setFullFrameExtendedState(int state)
          Sets the full frame extended state.
 void setFullFrameLocation(java.awt.Point location)
          Sets the full frame location.
 void setFullFrameLocationRelativeTo(java.awt.Component c)
          Sets the full frame location relative to.
 void setFullFrameVisible(boolean visible)
          Sets the full frame visible.
 void setLeftStatusBarText(java.lang.String text, java.lang.String toolTip)
          Sets the left status bar text.
 void setPlaying(boolean playing)
          Sets the playing.
 void setRightStatusBarText(java.lang.String text, java.lang.String toolTip)
          Sets the right status bar text.
 void setTitleBar(java.lang.String text)
          Sets title bar text, adding app name and version.
 void setVolume(int volume)
          Sets the volume.
 void showAboutDialog()
          Show about dialog.
 PodcastFeed showAddPodcastFeedDialog()
          Show add podcast feed dialog.
 Radio showAddRadioDialog()
          Show add radio dialog.
 void showAudioScrobblerPanel(boolean show, boolean changeSize)
          Show audio scrobbler panel.
 int showConfirmationDialog(java.lang.String message, java.lang.String title)
          Show confirmation dialog.
 void showCoverNavigator()
          Show cover navigator.
 void showDeviceInfoOnStatusBar(java.lang.String text)
          Show icon on status bar.
 void showErrorDialog(java.lang.String message)
          Show error dialog.
 void showErrorDialog(java.lang.String message, java.awt.Component parent)
          Show error dialog.
 void showFilter(boolean show)
          Switches playlist filter on and off.
 void showImageDialog(AudioObject file)
          Show image dialog.
 void showIndeterminateProgressDialog(java.lang.String text)
          Show indeterminate progress dialog.
 void showInfo()
          Show info.
 java.lang.String showInputDialog(java.lang.String title, java.lang.String text)
          Show input dialog.
 java.lang.String showInputDialog(java.lang.String title, java.lang.String text, java.awt.Image icon)
          Show input dialog.
 void showMessage(java.lang.String message)
          Show message.
 void showNavigationPanel(boolean show, boolean changeSize)
          Show navigation panel.
 void showNavigationTable(boolean show)
          Show navigation table.
 void showNewPodcastFeedEntriesInfo()
           
 int showOpenDialog(javax.swing.JFileChooser fileChooser, javax.swing.filechooser.FileFilter filter)
          Show open dialog.
 void showOSDDialog()
          Show osd dialog.
 void showPlayListInformation(PlayList playList)
          Show play list information.
 void showProgressBar(boolean show, java.lang.String tooltip)
          Show progress bar.
 void showPropertiesDialog(AudioObject file)
          Show properties dialog.
 void showRepositorySelectionInfoDialog()
          Show repository selection info dialog.
 void showRepositorySongNumber(long size, long sizeInBytes, long duration)
          Show repository song number.
 int showSaveDialog(javax.swing.JFileChooser fileChooser, javax.swing.filechooser.FileFilter filter)
          Show save dialog.
 void showSongProperties(boolean show, boolean update)
          Show song properties.
 void showSplashScreen()
          Show splash screen.
 void showStatusBar(boolean show)
          Show status bar.
 void showToolBar(boolean show)
           
 void startVisualization()
          Start visualization.
 void toggleWindowVisibility()
          Toggle window visibility.
 void updatePlayState(PlayListTable.PlayState state)
          Update play state.
 void updateStatusBar(AudioObject song)
          Update status bar.
 void updateStatusBar(java.lang.String text)
          Update status bar.
 void updateTitleBar(AudioObject song)
          Update title bar.
 void updateTitleBar(java.lang.String text)
          Update title bar.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VisualHandler getInstance()
Gets the single instance of VisualHandler.

Returns:
single instance of VisualHandler

finish

public void finish()
Finish.


getAudioScrobblerPanel

public AudioScrobblerPanel getAudioScrobblerPanel()
Gets the audio scrobbler panel.

Returns:
the audio scrobbler panel

getCopyProgressDialog

public CopyProgressDialog getCopyProgressDialog()
Gets the copy progress dialog.

Returns:
the copy progress dialog

getEditPreferencesDialog

public EditPreferencesDialog getEditPreferencesDialog()
Gets the edits the preferences dialog.

Returns:
the edits the preferences dialog

getEditTagDialog

public EditTagDialog getEditTagDialog()
Gets the edits the tag dialog.

Returns:
the edits the tag dialog

getEditTitlesDialog

public EditTitlesDialog getEditTitlesDialog()
Gets the edits the titles dialog.

Returns:
the edits the titles dialog

getEqualizerDialog

public EqualizerDialog getEqualizerDialog()
Gets the equalizer dialog.

Returns:
the equalizer dialog

getExportDialog

public ExportOptionsDialog getExportDialog()
Gets the export dialog.

Returns:
the export dialog

getExportProgressDialog

public CopyProgressDialog getExportProgressDialog()
Gets the export progress dialog.

Returns:
the export progress dialog

getFileSelectionDialog

public FileSelectionDialog getFileSelectionDialog(boolean dirOnly)
Gets the file selection dialog.

Parameters:
dirOnly - the dir only
Returns:
the file selection dialog

getFrame

public Frame getFrame()
Gets the frame.

Returns:
the frame

getFullScreenFrame

public FullScreenDialog getFullScreenFrame()
Gets the full screen frame.

Returns:
the fullScreenFrame

getMenuBar

public ApplicationMenuBar getMenuBar()
Gets the menu bar.

Returns:
the menu bar

getMultiFolderSelectionDialog

public MultiFolderSelectionDialog getMultiFolderSelectionDialog()
Gets the multi folder selection dialog.

Returns:
the multi folder selection dialog

getNavigationPanel

public NavigationPanel getNavigationPanel()
Gets the navigation panel.

Returns:
the navigation panel

getNewPodcastFeedEntryDownloadProgressDialog

public PodcastFeedEntryDownloadProgressDialog getNewPodcastFeedEntryDownloadProgressDialog(java.lang.String title)
Gets the new podcast feed entry download progress dialog.

Parameters:
title - the title
Returns:
the new podcast feed entry download progress dialog

getOSDDialog

public OSDDialog getOSDDialog()
Gets the oSD dialog.

Returns:
the oSD dialog

getPlayerControls

public PlayerControlsPanel getPlayerControls()
Gets the player controls.

Returns:
the player controls

getPlayListColumnSelector

public PlayListColumnSelector getPlayListColumnSelector()
Gets the play list column selector.

Returns:
the play list column selector

getPlayListPanel

public PlayListPanel getPlayListPanel()
Gets the play list panel.

Returns:
the play list panel

getPlayListTable

public PlayListTable getPlayListTable()
Gets the play list table.

Returns:
the play list table

getPlayListTableModel

public PlayListTableModel getPlayListTableModel()
Gets the play list table model.

Returns:
the play list table model

getProgressDialog

public RepositoryProgressDialog getProgressDialog()
Gets the progress dialog.

Returns:
the progress dialog

getPropertiesPanel

public FilePropertiesPanel getPropertiesPanel()
Gets the properties panel.

Returns:
the properties panel

getRadioBrowserDialog

public RadioBrowserDialog getRadioBrowserDialog()
Gets the radio browser dialog.

Returns:
the radio browser dialog

getRipCdDialog

public RipCdDialog getRipCdDialog()
Gets the rip cd dialog.

Returns:
the rip cd dialog

getRipperProgressDialog

public RipperProgressDialog getRipperProgressDialog()
Gets the ripper progress dialog.

Returns:
the ripper progress dialog

getSearchDialog

public SearchDialog getSearchDialog()
Gets the search dialog.

Returns:
the search dialog

getStandardWindowListener

public java.awt.event.ComponentListener getStandardWindowListener()
Gets the standard window listener.

Returns:
the standard window listener

getStatsDialog

public StatsDialog getStatsDialog()
Gets the stats dialog.

Returns:
the stats dialog

getToolBar

public ToolBar getToolBar()
Gets the tool bar.

Returns:
the tool bar

getWindowLocation

public java.awt.Point getWindowLocation()
Gets the window location.

Returns:
the window location

getWindowSize

public java.awt.Dimension getWindowSize()
Gets the window size.

Returns:
the window size

getWindowStateListener

public java.awt.event.WindowAdapter getWindowStateListener()
Gets the window state listener.

Returns:
the window state listener

hideIndeterminateProgressDialog

public void hideIndeterminateProgressDialog()
Hide indeterminate progress dialog.


hideSplashScreen

public void hideSplashScreen()
Hide splash screen.


hideWindows

public void hideWindows()
Hides all windows.


isMaximized

public boolean isMaximized()
Checks if is maximized.

Returns:
true, if is maximized

isMultipleWindow

public boolean isMultipleWindow()
Checks if is multiple window.

Returns:
true, if is multiple window

repaint

public void repaint()
Repaint.


setCenterStatusBarText

public void setCenterStatusBarText(java.lang.String text,
                                   java.lang.String toolTip)
Sets the center status bar text.

Parameters:
text - the text
toolTip - the tool tip

setFrameDefaultCloseOperation

public void setFrameDefaultCloseOperation(int op)
Sets the frame default close operation.

Parameters:
op - the new frame default close operation

setFullFrameExtendedState

public void setFullFrameExtendedState(int state)
Sets the full frame extended state.

Parameters:
state - the new full frame extended state

setFullFrameLocation

public void setFullFrameLocation(java.awt.Point location)
Sets the full frame location.

Parameters:
location - the new full frame location

setFullFrameLocationRelativeTo

public void setFullFrameLocationRelativeTo(java.awt.Component c)
Sets the full frame location relative to.

Parameters:
c - the new full frame location relative to

setFullFrameVisible

public void setFullFrameVisible(boolean visible)
Sets the full frame visible.

Parameters:
visible - the new full frame visible

setLeftStatusBarText

public void setLeftStatusBarText(java.lang.String text,
                                 java.lang.String toolTip)
Sets the left status bar text.

Parameters:
text - the text
toolTip - the tool tip

setPlaying

public void setPlaying(boolean playing)
Sets the playing.

Parameters:
playing - the new playing

setRightStatusBarText

public void setRightStatusBarText(java.lang.String text,
                                  java.lang.String toolTip)
Sets the right status bar text.

Parameters:
text - the text
toolTip - the tool tip

setTitleBar

public void setTitleBar(java.lang.String text)
Sets title bar text, adding app name and version.

Parameters:
text - the text

setVolume

public void setVolume(int volume)
Sets the volume.

Parameters:
volume - the new volume

showAboutDialog

public void showAboutDialog()
Show about dialog.


getCustomSearchDialog

public CustomSearchDialog getCustomSearchDialog()
Gets the custom search dialog.

Returns:
the custom search dialog

getSearchResultsDialog

public SearchResultsDialog getSearchResultsDialog()
Gets the search results dialog.

Returns:
the search results dialog

showAddPodcastFeedDialog

public PodcastFeed showAddPodcastFeedDialog()
Show add podcast feed dialog.

Returns:
the podcast feed

showAddRadioDialog

public Radio showAddRadioDialog()
Show add radio dialog.

Returns:
the radio

showAudioScrobblerPanel

public void showAudioScrobblerPanel(boolean show,
                                    boolean changeSize)
Show audio scrobbler panel.

Parameters:
show - the show
changeSize - the change size

showConfirmationDialog

public int showConfirmationDialog(java.lang.String message,
                                  java.lang.String title)
Show confirmation dialog.

Parameters:
message - the message
title - the title
Returns:
the int

showCoverNavigator

public void showCoverNavigator()
Show cover navigator.


showErrorDialog

public void showErrorDialog(java.lang.String message)
Show error dialog.

Parameters:
message - the message

showErrorDialog

public void showErrorDialog(java.lang.String message,
                            java.awt.Component parent)
Show error dialog.

Parameters:
message - the message
parent - the parent

showFilter

public void showFilter(boolean show)
Switches playlist filter on and off. Does not take into account the paramter passed! It will just show (if hidden) or hide (if visible) the filter each time called.

Parameters:
show - Gets ignored. You can either pass true or false with same result

showDeviceInfoOnStatusBar

public void showDeviceInfoOnStatusBar(java.lang.String text)
Show icon on status bar.

Parameters:
img - the img
text - the text

hideDeviceInfoOnStatusBar

public void hideDeviceInfoOnStatusBar()

showNewPodcastFeedEntriesInfo

public void showNewPodcastFeedEntriesInfo()

showImageDialog

public void showImageDialog(AudioObject file)
Show image dialog.

Parameters:
file - the file

showIndeterminateProgressDialog

public void showIndeterminateProgressDialog(java.lang.String text)
Show indeterminate progress dialog.

Parameters:
text - the text

showInfo

public void showInfo()
Show info.


showInputDialog

public java.lang.String showInputDialog(java.lang.String title,
                                        java.lang.String text)
Show input dialog.

Parameters:
title - the title
text - the text
Returns:
the string

showInputDialog

public java.lang.String showInputDialog(java.lang.String title,
                                        java.lang.String text,
                                        java.awt.Image icon)
Show input dialog.

Parameters:
title - the title
text - the text
icon - the icon
Returns:
the string

showMessage

public void showMessage(java.lang.String message)
Show message.

Parameters:
message - the message

showNavigationPanel

public void showNavigationPanel(boolean show,
                                boolean changeSize)
Show navigation panel.

Parameters:
show - the show
changeSize - the change size

showNavigationTable

public void showNavigationTable(boolean show)
Show navigation table.

Parameters:
show - the show

showOpenDialog

public int showOpenDialog(javax.swing.JFileChooser fileChooser,
                          javax.swing.filechooser.FileFilter filter)
Show open dialog.

Parameters:
fileChooser - the file chooser
filter - the filter
Returns:
the int

showOSDDialog

public void showOSDDialog()
Show osd dialog.


showPlayListInformation

public void showPlayListInformation(PlayList playList)
Show play list information.

Parameters:
playList - the play list

showProgressBar

public void showProgressBar(boolean show,
                            java.lang.String tooltip)
Show progress bar.

Parameters:
show - the show
tooltip - the tooltip

showPropertiesDialog

public void showPropertiesDialog(AudioObject file)
Show properties dialog.

Parameters:
file - the file

showRepositorySelectionInfoDialog

public void showRepositorySelectionInfoDialog()
Show repository selection info dialog.


showRepositorySongNumber

public void showRepositorySongNumber(long size,
                                     long sizeInBytes,
                                     long duration)
Show repository song number.

Parameters:
size - the size
sizeInBytes - the size in bytes
duration - the duration

showSaveDialog

public int showSaveDialog(javax.swing.JFileChooser fileChooser,
                          javax.swing.filechooser.FileFilter filter)
Show save dialog.

Parameters:
fileChooser - the file chooser
filter - the filter
Returns:
the int

showSongProperties

public void showSongProperties(boolean show,
                               boolean update)
Show song properties.

Parameters:
show - the show
update - the update

showSplashScreen

public void showSplashScreen()
Show splash screen.


showStatusBar

public void showStatusBar(boolean show)
Show status bar.

Parameters:
show - the show

showToolBar

public void showToolBar(boolean show)

startVisualization

public void startVisualization()
Start visualization.


toggleWindowVisibility

public void toggleWindowVisibility()
Toggle window visibility.


updatePlayState

public void updatePlayState(PlayListTable.PlayState state)
Update play state.

Parameters:
state - the state

updateStatusBar

public void updateStatusBar(AudioObject song)
Update status bar.

Parameters:
song - the song

updateStatusBar

public void updateStatusBar(java.lang.String text)
Update status bar.

Parameters:
text - the text

updateTitleBar

public void updateTitleBar(AudioObject song)
Update title bar.

Parameters:
song - the song

updateTitleBar

public void updateTitleBar(java.lang.String text)
Update title bar.

Parameters:
text - the text


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.