public class ItemConfiguration extends Object implements CustomLabelSpec
| Constructor and Description |
|---|
ItemConfiguration(org.eclipse.swt.graphics.Image image,
String text,
int width)
Create a ItemConfiguration object
|
| Modifier and Type | Method and Description |
|---|---|
CustomLabelSpec |
dup() |
boolean |
equals(Object obj) |
org.eclipse.swt.graphics.Color |
getBackground() |
org.eclipse.swt.graphics.Font |
getFont() |
org.eclipse.swt.graphics.Image |
getImage() |
String |
getText() |
int |
getWidth() |
int |
hashCode() |
void |
setBackground(org.eclipse.swt.graphics.Color bgColor)
Set the background color
|
void |
setFont(org.eclipse.swt.graphics.Font font)
Set the font
|
void |
setImage(org.eclipse.swt.graphics.Image image)
Set image
|
void |
setText(String text)
Set the text
|
void |
setWidth(int width)
Set width hint
|
public ItemConfiguration(org.eclipse.swt.graphics.Image image,
String text,
int width)
image - Label mage or nulltext - Label text or nullwidth - Width of Label in characterspublic org.eclipse.swt.graphics.Image getImage()
getImage in interface CustomLabelSpecCustomLabelSpec.getImage()public String getText()
getText in interface CustomLabelSpecCustomLabelSpec.getText()public int getWidth()
getWidth in interface CustomLabelSpecCustomLabelSpec.getWidth()public void setImage(org.eclipse.swt.graphics.Image image)
CustomLabelSpecsetImage in interface CustomLabelSpecimage - Image objectCustomLabelSpec.setImage(org.eclipse.swt.graphics.Image)public void setText(String text)
CustomLabelSpecsetText in interface CustomLabelSpectext - StringCustomLabelSpec.setText(java.lang.String)public void setWidth(int width)
CustomLabelSpecsetWidth in interface CustomLabelSpecwidth - Width in number of charactersCustomLabelSpec.setWidth(int)public org.eclipse.swt.graphics.Font getFont()
getFont in interface CustomLabelSpecCustomLabelSpec.getFont()public void setFont(org.eclipse.swt.graphics.Font font)
CustomLabelSpecsetFont in interface CustomLabelSpecfont - Font objectCustomLabelSpec.setFont(org.eclipse.swt.graphics.Font)public org.eclipse.swt.graphics.Color getBackground()
getBackground in interface CustomLabelSpecCustomLabelSpec.getBackground()public void setBackground(org.eclipse.swt.graphics.Color bgColor)
CustomLabelSpecsetBackground in interface CustomLabelSpecbgColor - Color objectCustomLabelSpec.setBackground(org.eclipse.swt.graphics.Color)public CustomLabelSpec dup()
dup in interface CustomLabelSpecCustomLabelSpec.dup()Copyright © 2016. All rights reserved.