|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines the result of decorating an element.
This interface is not meant to be implemented and will be provided to
instances of ILightweightLabelDecorator
.
Field Summary | |
---|---|
static int |
BOTTOM_LEFT
Constant for the bottom left quadrant. |
static int |
BOTTOM_RIGHT
Constant for the bottom right quadrant. |
static int |
TOP_LEFT
Constants for placement of image decorations. |
static int |
TOP_RIGHT
Constant for the top right quadrant. |
static int |
UNDERLAY
Constant for the underlay. |
Method Summary | |
---|---|
void |
addOverlay(ImageDescriptor overlay)
Adds an overlay to the element's image. |
void |
addOverlay(ImageDescriptor overlay,
int quadrant)
Adds an overlay to the element's image. |
void |
addPrefix(String prefix)
Adds a prefix to the element's label. |
void |
addSuffix(String suffix)
Adds a suffix to the element's label. |
void |
setBackgroundColor(Color color)
Set the background color for this decoration. |
void |
setFont(Font font)
Set the font for this decoration. |
void |
setForegroundColor(Color color)
Set the foreground color for this decoration. |
Field Detail |
public static final int TOP_LEFT
public static final int TOP_RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM_RIGHT
public static final int UNDERLAY
Method Detail |
public void addPrefix(String prefix)
prefix
- the prefixpublic void addSuffix(String suffix)
suffix
- the suffixpublic void addOverlay(ImageDescriptor overlay)
overlay
- the overlay image descriptorpublic void addOverlay(ImageDescriptor overlay, int quadrant)
overlay
- the overlay image descriptorquadrant
- The constant for the quadrant to draw the image on.public void setForegroundColor(Color color)
color
- the color to be set for the foregroundpublic void setBackgroundColor(Color color)
color
- the color to be set for the backgroundpublic void setFont(Font font)
font
- the font to use in this decoration
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.