|
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.srcinfo.ui.figures.CallableBlockFigure
public class CallableBlockFigure
The figure that represents a callable block of source model. The figure includes an icon to represent different types of callable blocks. It also displays the name of callable block. The positions of each child figures follow the media design blueprints.
Field Summary | |
---|---|
Color |
background_gradient
|
static String |
copyright
|
int |
cornerChopHeight
|
int |
cornerChopWidth
|
RGB |
defaultInsideStroke
|
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 | |
---|---|
CallableBlockFigure(Image shapeImage,
String shapeTitle,
IMapMode mapMode,
IGraphicalEditPart editPart)
Creat a callable block figure. |
Method Summary | |
---|---|
protected void |
drawBorder(Graphics graphics,
Rectangle outRect,
Color outerStrokeColor,
Color insideStrokeColor)
Draw border with specified colors. |
protected void |
drawBorder(Graphics graphics,
Rectangle outRect,
String feedbackState)
Draw border according to the state. |
Rectangle |
getFeedbackFigureBounds()
Return feedback figure bound. |
Rectangle |
getHandleBounds()
Returns the Rectangle around which handles are to be placed. |
String |
getName()
Return name displayed in figure. |
WrappingLabel |
getNameLabel()
Get name label. |
protected void |
init()
Initialize the figure. |
void |
paintFigure(Graphics graphics)
|
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 defaultInsideStroke
public Color foreground_gradient
public Color background_gradient
public int cornerChopHeight
public int cornerChopWidth
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 CallableBlockFigure(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
- protected void drawBorder(Graphics graphics, Rectangle outRect, Color outerStrokeColor, Color insideStrokeColor)
public void setOutLineColor(RGB outerLineRGB)
outerLineRGB:
- given color of outer line.public void setGradientForegroundColor(Color foregroundColor)
public void setGradientBackgroundColor(Color backgroundColor)
public Rectangle getHandleBounds()
org.eclipse.gef.handles.HandleBounds
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 |