|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IVisualResource
An interface representing single visual resource which contains of:
ImageSize
,
ImageVariants
, although one can extend the constant list.
Field Summary | |
---|---|
static char |
NAME_SEPARATOR
A character used to separate parts of image name such as size, variant and right name. |
Method Summary | |
---|---|
void |
dispose()
Disposes the resource. |
String |
getDescription()
Gets localized resource description. |
String |
getGroupId()
Returns group id. |
String |
getId()
Gets resource id. |
org.eclipse.swt.graphics.Image |
getImage()
Gets default image associated with the resource. |
org.eclipse.swt.graphics.Image |
getImage(ImageSize size)
Gets default image associated with this resource with specified size. |
org.eclipse.swt.graphics.Image |
getImage(String variant)
Gets a given variant of image in default size (see getImage() method java doc for more details about how
default size is chosen). |
org.eclipse.swt.graphics.Image |
getImage(String variant,
ImageSize size)
Gets a given variant of image in specified size. |
String |
getLabel()
Gets localized resource label. |
List<String> |
getTags()
Returns tags associated with the resource. |
Type |
getType()
Returns type of element represented by the resource. |
Field Detail |
---|
static final char NAME_SEPARATOR
Method Detail |
---|
String getId()
Type.toString()
. In other cases the id should be unique string in Java package style.
List<String> getTags()
String getGroupId()
null
if the resource has no group.Type getType()
null
if the resource is not associated with any elementString getLabel()
String getDescription()
org.eclipse.swt.graphics.Image getImage()
ImageSize.getDefaultSize()
is searched and
returned, if not found null
is returned
null
if image not existsorg.eclipse.swt.graphics.Image getImage(ImageSize size)
size
- image size
null
if image not existsorg.eclipse.swt.graphics.Image getImage(String variant)
getImage()
method java doc for more details about how
default size is chosen).
variant
- image variant
null
if variant of image not existsorg.eclipse.swt.graphics.Image getImage(String variant, ImageSize size)
variant
- image variantsize
- image size
null
if image not existsvoid dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |