|
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 NodeFigure com.ibm.etools.systems.application.visual.editor.ui.figures.impl.DefaultSingleEntryFigure
public class DefaultSingleEntryFigure
Single entry child figure in a container figure. It has 1. An image 2. A WrappingLabel to display the text.
Field Summary | |
---|---|
int |
arcHeight
|
int |
arcWidth
|
static String |
copyright
|
RGB |
defaultOuterLineColor
|
int |
imageHeight
|
int |
imageWidth
|
int |
Label_margin_bottom
|
int |
Label_margin_left
|
int |
Label_margin_right
|
int |
Label_margin_top
|
Fields inherited from interface com.ibm.etools.systems.application.visual.editor.ui.figures.IFeedbackFigure |
---|
STATE_ASSOCIATED_CLEAR, STATE_ASSOCIATED_SOURCE, STATE_ASSOCIATED_TARGET, STATE_HOVER, STATE_NONE, STATE_SELECTED, STATE_TARGET, STATE_TARGET_HOVER |
Constructor Summary | |
---|---|
DefaultSingleEntryFigure(String name,
Image image,
IMapMode mapMode,
IGraphicalEditPart editPart)
Constructor. |
Method Summary | |
---|---|
protected void |
drawBorder(Graphics graphics,
Rectangle outRect,
String feedbackState)
Draw border according to the state. |
IGraphicalEditPart |
getEditPart()
Return editpart for this figure. |
Rectangle |
getFeedbackFigureBounds()
Return feedback figure bound. |
String |
getFeedbackState()
Return feedback state. |
String |
getName()
Return name displayed in figure. |
WrappingLabel |
getNameLabel()
Get name label. |
protected void |
init()
Initialize the figure. |
void |
paintFigure(Graphics graphics)
|
void |
restoreFromIndicator()
Restore to normal state. |
void |
setAsIndicator()
Set as indicator state. |
void |
setFeedbackState(String state,
EditPart requester)
Set feedback state which is requested by the requester. |
void |
setFillColor(RGB shapeFillRGB)
Set fill color |
void |
setFont(Font newFont)
Set the font. |
void |
setFontColor(Color color)
Set font color. |
void |
setForegroundColor(Color color)
Set ForegroundColor. |
void |
setName(String newName)
Set name displayed in figure. |
void |
setOutLineColor(RGB outerLineRGB)
Set line color that is used in round rectangle border. |
protected void |
setupDefaultColors()
Setup default colors |
protected void |
setupLayout()
Setup layuout. |
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
public RGB defaultOuterLineColor
public int arcWidth
public int arcHeight
public int imageHeight
public int imageWidth
public int Label_margin_left
public int Label_margin_right
public int Label_margin_top
public int Label_margin_bottom
Constructor Detail |
---|
public DefaultSingleEntryFigure(String name, Image image, IMapMode mapMode, IGraphicalEditPart editPart)
name:
- nameimg:
- icon imageMethod Detail |
---|
protected void init()
protected void setupLayout()
protected void setupDefaultColors()
public String getName()
public void setName(String newName)
public IGraphicalEditPart getEditPart()
public void restoreFromIndicator()
public void setAsIndicator()
public void paintFigure(Graphics graphics)
org.eclipse.draw2d.Figure#paintFigure(org.eclipse.draw2d.Graphics)
protected void drawBorder(Graphics graphics, Rectangle outRect, String feedbackState)
feedbackState
- public void setOutLineColor(RGB outerLineRGB)
outerLineRGB:
- given color of outer line.public void setFillColor(RGB shapeFillRGB)
shapeFillRGB
- public Rectangle getFeedbackFigureBounds()
IFeedbackFigure
getFeedbackFigureBounds
in interface IFeedbackFigure
public String getFeedbackState()
IFeedbackFigure
getFeedbackState
in interface IFeedbackFigure
public void setFontColor(Color color)
public void setFeedbackState(String state, EditPart requester)
IFeedbackFigure
setFeedbackState
in interface IFeedbackFigure
public void setForegroundColor(Color color)
public WrappingLabel getNameLabel()
INamedFigure
getNameLabel
in interface INamedFigure
public void setFont(Font newFont)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |