| java.lang.Object org.jperdian.rss2.RssHelper
RssHelper | public class RssHelper (Code) | | Several small helpers
author: Christian Robert |
computeFileSizeString | public static String computeFileSizeString(long bytes)(Code) | | Computes the title for the given file size
|
computeTimeString | public static String computeTimeString(long time)(Code) | | Formats the given time span
|
createButton | public static JButton createButton(char mnemonic, Action action, Icon icon)(Code) | | Creates a JButton
Parameters: action - the action to be performed Parameters: icon - the icon to be used |
createMenuItem | public static JMenuItem createMenuItem(Action action, Icon icon)(Code) | | Creates a JMenuItem
Parameters: action - the action to be performed Parameters: icon - the icon to be used |
getResourceImage | public static Image getResourceImage(String imageName)(Code) | | Creates an image icon for the given name. The image for this icon
must be located in the resource path
"org/jperdian/rss2/res/images"
|
getResourceImageIcon | public static Icon getResourceImageIcon(String imageName)(Code) | | Creates a text for the given name. The text must be located in the
resource path "braintags/elacarte/imageassist/res/texts"
|
getResourceText | public static String getResourceText(String imageName)(Code) | | Creates an image icon for the given name. The image for this icon
must be located in the resource path
"org/jperdian/rss2/res/images"
|
scaleImageProportional | public static Image scaleImageProportional(Image sourceImage, Dimension maxDimension, boolean highQuality)(Code) | | |
waitFor | public static Image waitFor(Image image)(Code) | | Wait until the image has been loaded completely
|
|
|