|
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.AbstractFeedbackNodeFigure com.ibm.etools.systems.application.visual.editor.ui.figures.impl.DefaultArtifactNodeFigure
public class DefaultArtifactNodeFigure
Default figure for Artifact. The figure has: 1. an icon to represent Artifact's type 2. a name label
Field Summary | |
---|---|
int |
arcHeight_outer
|
int |
arcWidth_outer
|
Color |
background_gradient
|
static String |
copyright
|
RGB |
defaultInnerStroke
|
RGB |
defaultOuterStroke
|
Color |
foreground_gradient
|
int |
Label_margin_bottom
|
int |
Label_margin_left
|
int |
Label_margin_right
|
int |
Label_margin_top
|
int |
max_outer_borderline_width
|
int |
outerRectangle_shiftX
|
int |
outerRectangle_shiftY
|
int |
shapeImage_height
|
int |
shapeImage_width
|
Fields inherited from class com.ibm.etools.systems.application.visual.editor.ui.figures.impl.AbstractFeedbackNodeFigure |
---|
editPart, feedbackStateManager, mapMode |
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 | |
---|---|
DefaultArtifactNodeFigure(Image shapeImage,
String shapeTitle,
IMapMode mapMode,
IGraphicalEditPart editPart)
Creat an OPM program figure. |
Method Summary | |
---|---|
protected void |
drawBorder(Graphics graphics,
Rectangle outRect,
String feedbackState)
Draw border according to the state. |
Rectangle |
getFeedbackFigureBounds()
Return feedback figure bound. |
String |
getName()
Return name displayed in figure. |
WrappingLabel |
getNameLabel()
Get name label. |
protected void |
init()
Initialize the figure. |
void |
paintFigure(Graphics graphics)
|
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 |
setGradientBackgroundColor(Color backgroundColor)
Set background color for gradient |
void |
setGradientForegroundColor(Color foregroundColor)
Set foreground color for gradient |
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 com.ibm.etools.systems.application.visual.editor.ui.figures.impl.AbstractFeedbackNodeFigure |
---|
blendColor, getAssociatedSourceColor, getAssociatedTargetColor, getFeedbackState, setFeedbackState, setFeedbackStateManager |
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 defaultOuterStroke
public RGB defaultInnerStroke
public Color foreground_gradient
public Color background_gradient
public int arcWidth_outer
public int arcHeight_outer
public int outerRectangle_shiftX
public int outerRectangle_shiftY
public int max_outer_borderline_width
public int shapeImage_width
public int shapeImage_height
public int Label_margin_left
public int Label_margin_right
public int Label_margin_top
public int Label_margin_bottom
Constructor Detail |
---|
public DefaultArtifactNodeFigure(Image shapeImage, String shapeTitle, IMapMode mapMode, IGraphicalEditPart editPart)
shapeImage:
- the icon displays in shape top-left corner.shapeTitle:
- the text displays in figure.mapMode:
- the map mode is used by the diagram.Method Detail |
---|
protected void init()
protected void setupLayout()
protected void setupDefaultColors()
public String getName()
public void paintFigure(Graphics graphics)
org.eclipse.draw2d.Figure#paintFigure(org.eclipse.draw2d.Graphics)
protected void drawBorder(Graphics graphics, Rectangle outRect, String feedbackState)
graphics
- outRect
- feedbackState
- public void setOutLineColor(RGB outerLineRGB)
outerLineRGB:
- given color of outer line.public void setFillColor(RGB shapeFillRGB)
shapeFillRGB
- public void setGradientForegroundColor(Color foregroundColor)
public void setGradientBackgroundColor(Color backgroundColor)
public Rectangle getFeedbackFigureBounds()
IFeedbackFigure
getFeedbackFigureBounds
in interface IFeedbackFigure
getFeedbackFigureBounds
in class AbstractFeedbackNodeFigure
public void setForegroundColor(Color color)
public void setFontColor(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 |