|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.openmath.jome.ctrlview.bidim.images.ImageLoader
This class is a little tool to load images.
| Constructor Summary | |
ImageLoader(java.awt.Component component)
The Constructor. |
|
| Method Summary | |
static boolean |
exists(java.lang.String idImage)
Checks if there exist an image with the specified identifier. |
static float |
getBaseline(java.lang.String idImage)
Returns the baseline of the wanted image. |
static float |
getBottomInset(java.lang.String idImage)
|
static float |
getHeightFactor(java.lang.String idImage)
Returns the height factor to apply to the orignal size of the wanted image. |
static java.awt.Image |
getImage(java.lang.String name)
Returns the image with the specified name. |
static float |
getLeftInset(java.lang.String idImage)
|
static float |
getRightInset(java.lang.String idImage)
|
static float |
getTopInset(java.lang.String idImage)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ImageLoader(java.awt.Component component)
component - the component which needs the images to load.| Method Detail |
public static java.awt.Image getImage(java.lang.String name)
name - the name of the desired image.
public static float getHeightFactor(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static float getBaseline(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static float getTopInset(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static float getBottomInset(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static float getLeftInset(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static float getRightInset(java.lang.String idImage)
idImage - the identifier of the wanted imagepublic static boolean exists(java.lang.String idImage)
idImage - the identifier of the wanted image
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||