org.jtheque.movies.utils
Class SwingUtils

java.lang.Object
  extended by org.jtheque.movies.utils.SwingUtils

public final class SwingUtils
extends Object

A temporary swing utility class. This class must be moved to JTheque Core/Utils at the next release of this two projects.

Author:
Baptiste Wicht

Method Summary
static void addFilthyButtonBar(org.jtheque.core.utils.ui.PanelBuilder panel, Object constraints, Action... actions)
          Add a button bar.
static JCheckBox addFilthyCheckbox(org.jtheque.core.utils.ui.PanelBuilder panel, String key, Object constraints)
          Add a filthy checkbox to the panel builder.
static Border createFilthyTitledBorder(String key)
          Create a filthy titled border.
static Image paintFilthyBackground(Graphics g, Image gradientImage, org.jtheque.utils.ui.SizeTracker tracker, Component panel)
          Paint a filthy background to a panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

paintFilthyBackground

public static Image paintFilthyBackground(Graphics g,
                                          Image gradientImage,
                                          org.jtheque.utils.ui.SizeTracker tracker,
                                          Component panel)
Paint a filthy background to a panel.

Parameters:
g - The graphics to paint to.
gradientImage - The gradient image to use.
tracker - The size tracker of the panel.
panel - The panel to paint.
Returns:
The current gradient image buffer.

createFilthyTitledBorder

public static Border createFilthyTitledBorder(String key)
Create a filthy titled border.

Parameters:
key - The internationalization key.
Returns:
The border.

addFilthyButtonBar

public static void addFilthyButtonBar(org.jtheque.core.utils.ui.PanelBuilder panel,
                                      Object constraints,
                                      Action... actions)
Add a button bar.

Parameters:
panel - The panel builder to add the button bar to.
constraints - The constraints to use to add to the panel.
actions - The actions to add to the button bar.

addFilthyCheckbox

public static JCheckBox addFilthyCheckbox(org.jtheque.core.utils.ui.PanelBuilder panel,
                                          String key,
                                          Object constraints)
Add a filthy checkbox to the panel builder.

Parameters:
panel - The panel builder to add the check box to.
key - The i18n key of the check box.
constraints - The constraints to use to add the check box to the builder.
Returns:
The added checkbox.


Copyright © 2010 JTheque. All Rights Reserved.