|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.systems.application.visual.editor.utils.GraphicalUtils
public class GraphicalUtils
Helper class for graphical functions.
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
GraphicalUtils()
Constructor. |
Method Summary | |
---|---|
static void |
drawLine(Graphics graphics,
Point p1,
Point p2,
Image image)
Draw line. |
ColorRegistry |
getColorRegistry()
Get color registry. |
Image |
getImage(String id,
String size)
Get image from icon service. |
ImageDescriptor |
getImageDescriptor(String id,
String size)
Get image descriptor. |
ImageRegistry |
getImageRegistry()
Get image registry. |
Color |
getSystemColor(String color)
Get system color. |
Image |
getSystemImage(String id,
String size)
Get image. |
ImageDescriptor |
getSystemImageDescriptor(String id,
String size)
Get system image descriptor. |
Image |
retrieveIcon(Artifact artifact,
int flags)
Retrieve icon from icon service. |
static boolean |
setHelpId(Control control,
String helpId)
Set help ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public GraphicalUtils()
Method Detail |
---|
public static void drawLine(Graphics graphics, Point p1, Point p2, Image image)
public Image getSystemImage(String id, String size)
id
- size
-
public ImageDescriptor getSystemImageDescriptor(String id, String size)
id
- size
-
public Color getSystemColor(String color)
color
-
public Image getImage(String id, String size)
getImage
in interface IconRetriever
id
- size
-
public ImageRegistry getImageRegistry()
public ColorRegistry getColorRegistry()
public ImageDescriptor getImageDescriptor(String id, String size)
id
- size
-
public static boolean setHelpId(Control control, String helpId)
control
- helpId
-
public Image retrieveIcon(Artifact artifact, int flags)
retrieveIcon
in interface IconRetriever
artifact
- the artifact whose icon to be retrievedflags
- the size hint
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |