|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.jperdian.rss2.RssHelper
Several small helpers
| Constructor Summary | |
RssHelper()
|
|
| Method Summary | |
static java.lang.String |
computeFileSizeString(long bytes)
Computes the title for the given file size |
static java.lang.String |
computeTimeString(long time)
Formats the given time span |
static javax.swing.JButton |
createButton(char mnemonic,
javax.swing.Action action,
javax.swing.Icon icon)
Creates a JButton |
static javax.swing.JMenuItem |
createMenuItem(javax.swing.Action action,
javax.swing.Icon icon)
Creates a JMenuItem |
static java.awt.Image |
getImage(java.io.File file)
Gets the image from the given File |
static java.awt.Image |
getResourceImage(java.lang.String imageName)
Creates an image icon for the given name. |
static javax.swing.Icon |
getResourceImageIcon(java.lang.String imageName)
Creates a text for the given name. |
static java.lang.String |
getResourceText(java.lang.String imageName)
Creates an image icon for the given name. |
static java.awt.Image |
scaleImageProportional(java.awt.Image sourceImage,
java.awt.Dimension maxDimension,
boolean highQuality)
|
static java.awt.Image |
waitFor(java.awt.Image image)
Wait until the image has been loaded completely |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RssHelper()
| Method Detail |
public static java.lang.String getResourceText(java.lang.String imageName)
"org/jperdian/rss2/res/images"
public static javax.swing.Icon getResourceImageIcon(java.lang.String imageName)
"braintags/elacarte/imageassist/res/texts"
public static java.awt.Image getResourceImage(java.lang.String imageName)
"org/jperdian/rss2/res/images"
public static java.awt.Image getImage(java.io.File file)
throws java.io.IOException
java.io.IOException
public static java.awt.Image scaleImageProportional(java.awt.Image sourceImage,
java.awt.Dimension maxDimension,
boolean highQuality)
public static java.awt.Image waitFor(java.awt.Image image)
public static java.lang.String computeFileSizeString(long bytes)
public static java.lang.String computeTimeString(long time)
public static javax.swing.JMenuItem createMenuItem(javax.swing.Action action,
javax.swing.Icon icon)
JMenuItem
action - the action to be performedicon - the icon to be used
public static javax.swing.JButton createButton(char mnemonic,
javax.swing.Action action,
javax.swing.Icon icon)
JButton
action - the action to be performedicon - the icon to be used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||