|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.ui.util.swing.SwingRcpUtilities
public class SwingRcpUtilities
Utilities for working with Swing and SWT
Constructor Summary | |
---|---|
SwingRcpUtilities()
|
Method Summary | |
---|---|
static BufferedImage |
convertToAWT(org.eclipse.swt.graphics.ImageData data)
Convert a SWT Image to a BufferedImage
"http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java?view=co" |
static Color |
convertToColor(org.eclipse.swt.graphics.RGB rgb)
Convert a RGB to an AWT color |
static org.eclipse.swt.graphics.ImageData |
convertToSWT(BufferedImage bufferedImage)
Convert a BufferedImage to a SWT Image. |
static org.eclipse.swt.graphics.ImageData |
convertToSWT(ImageIcon icon)
Create a SWT Image from an ImageIcon
"http://www.eclipseproject.de/modules.php?name=Forums&file=viewtopic&t=5489"
"http://www.9php.com/FAQ/cxsjl/java/2007/11/5033330101296.html" |
static void |
setup()
Swing setup, should be called before any AWT/Swing Component is created |
static void |
setupLookAndFeel()
Setup Look and Feel to match SWT looks |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingRcpUtilities()
Method Detail |
---|
public static void setup()
public static void setupLookAndFeel()
public static BufferedImage convertToAWT(org.eclipse.swt.graphics.ImageData data)
BufferedImage
"http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java?view=co"
data
- the SWT ImageData
BufferedImage
public static org.eclipse.swt.graphics.ImageData convertToSWT(BufferedImage bufferedImage)
BufferedImage
to a SWT Image.
"http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet156.java?view=co"
bufferedImage
- the AWT BufferedImage
ImageData
public static org.eclipse.swt.graphics.ImageData convertToSWT(ImageIcon icon)
ImageIcon
"http://www.eclipseproject.de/modules.php?name=Forums&file=viewtopic&t=5489"
"http://www.9php.com/FAQ/cxsjl/java/2007/11/5033330101296.html"
icon
- the ImageIcon
ImageData
public static Color convertToColor(org.eclipse.swt.graphics.RGB rgb)
RGB
to an AWT color
rgb
- the RGB
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |