|
|||||||||
| Home >> All >> com >> flexstor >> common >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.flexstor.common.awt
Class AWTUtil

java.lang.Objectcom.flexstor.common.awt.AWTUtil
- public class AWTUtil
- extends java.lang.Object
| Field Summary | |
private static java.awt.Panel |
dummyPanel
|
private static java.util.Hashtable |
imageCache
|
| Constructor Summary | |
AWTUtil()
|
|
| Method Summary | |
static void |
addImage(java.lang.String sKey,
java.awt.Image img)
Adds an image to the cache. |
static java.awt.Image |
checkImage(java.lang.String sKey)
Checks if an image is in the cache. |
static java.awt.Image |
combineImage(java.awt.Image[] images)
Combines images horizontally into a new image. |
static java.awt.GridBagConstraints |
getGbc(int x,
int y,
double weightx,
double weighty,
int anchor,
int fill)
Create a new GridBagConstraints object in one step. |
static java.awt.Image |
getImage(java.lang.String sName)
Gets an image from the default image location. |
static java.awt.Image |
getImage(java.lang.String sName,
boolean bCached,
boolean bWait)
Gets an image from the default image location. |
static com.flexstor.common.awt.dialogs.ModalDlg |
getParentDialog(java.awt.Component c)
Utility method to get to the top dialog of a component. |
static FlexFrame |
getParentFrame(java.awt.Component c)
Utility method to get to the top frame of a component. |
static void |
removeAllRecursive(java.awt.Container c)
Removes all components and subcomponents from the container. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
imageCache
private static java.util.Hashtable imageCache
dummyPanel
private static java.awt.Panel dummyPanel
| Constructor Detail |
AWTUtil
public AWTUtil()
| Method Detail |
getGbc
public static java.awt.GridBagConstraints getGbc(int x, int y, double weightx, double weighty, int anchor, int fill)
- Create a new GridBagConstraints object in one step.
getParentFrame
public static FlexFrame getParentFrame(java.awt.Component c)
- Utility method to get to the top frame of a component.
getParentDialog
public static com.flexstor.common.awt.dialogs.ModalDlg getParentDialog(java.awt.Component c)
- Utility method to get to the top dialog of a component.
getImage
public static java.awt.Image getImage(java.lang.String sName)
- Gets an image from the default image location. This method returns
immediately and loads the image asynchronously.
getImage
public static java.awt.Image getImage(java.lang.String sName, boolean bCached, boolean bWait)
- Gets an image from the default image location.
addImage
public static void addImage(java.lang.String sKey, java.awt.Image img)
- Adds an image to the cache.
checkImage
public static java.awt.Image checkImage(java.lang.String sKey)
- Checks if an image is in the cache.
removeAllRecursive
public static void removeAllRecursive(java.awt.Container c)
- Removes all components and subcomponents from the container.
combineImage
public static java.awt.Image combineImage(java.awt.Image[] images)
- Combines images horizontally into a new image. The new image dimension is
the sum of all widths by the maximum height. This method waits until all
images are completely loaded.
|
|||||||||
| Home >> All >> com >> flexstor >> common >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.flexstor.common.awt.AWTUtil