|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object speedscheduler.ImageUtils
public class ImageUtils
This class allows us to conveniently draw images on SWT widgets (like composites).
Constructor Summary | |
---|---|
private |
ImageUtils()
No instantiations. |
Method Summary | |
---|---|
static org.eclipse.swt.graphics.Image |
getImage(org.eclipse.swt.widgets.Display display,
java.lang.Class classIn,
java.lang.String location)
Constructs and returns an Image object based on the specified Display object, Class that will use the image, and location of the image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ImageUtils()
Method Detail |
---|
public static org.eclipse.swt.graphics.Image getImage(org.eclipse.swt.widgets.Display display, java.lang.Class classIn, java.lang.String location)
display
- The SWT DisplayclassIn
- The class that will make use of the object (use this.getClass())location
- The URL of the image relative to the specified class, ie
"images/clock.png". This may be inside a jar. That's okay, if it's
in the same jar as the specified class.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |