|
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.AbstractCollapsableFigure com.ibm.etools.systems.application.visual.editor.srcinfo.ui.figures.SourceContainerFigure
public class SourceContainerFigure
Source Container figure.
Field Summary | |
---|---|
int |
arcHeight_inner
|
int |
arcHeight_outer
|
int |
arcWidth_inner
|
int |
arcWidth_outer
|
Color |
background_gradient
|
int |
childrenPane_top_padding
|
protected boolean |
collapse
|
Image |
collapsedTwistieImage
|
int |
collapseImage_height
|
int |
collapseImage_shiftX
|
int |
collapseImage_shiftY
|
int |
collapseImage_width
|
int |
collapseLine_fill_gap
|
int |
collapseLine_gap
|
Rectangle |
collapseToggleArea
|
static String |
copyright
|
RGB |
defaultInnerLineColor
|
RGB |
defaultOuterLineColor
|
Image |
expandTwistieImage
|
Color |
foreground_gradient
|
int |
inner_item_gap
|
int |
max_outer_borderline_width
|
int |
min_childrenPane_height
|
int |
min_childrenPane_width
|
int |
outer_inner_bottom_gap
|
int |
outer_inner_left_gap
|
int |
outer_inner_right_gap
|
int |
outer_inner_top_gap
|
int |
outerBorderLineStyle
|
int |
outerBorderLineWidth
|
int |
outerRectangle_shiftX
|
int |
outerRectangle_shiftY
|
int |
shapeImage_height
|
int |
shapeImage_width
|
int |
titleLabel_left_padding
|
int |
titleLabel_right_padding
|
int |
titleLabel_top_padding
|
Fields inherited from class com.ibm.etools.systems.application.visual.editor.ui.figures.impl.AbstractCollapsableFigure |
---|
collapsed, hasCollapsedFigure |
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 | |
---|---|
SourceContainerFigure(Image shapeImage,
String shapeTitle,
IMapMode mapMode,
IGraphicalEditPart editPart)
Collapsable figure for source container. |
Method Summary | |
---|---|
void |
cleanUp()
Clean up resources. |
protected void |
drawOuterBorder(Graphics graphics,
Rectangle outRect,
String feedbackState)
Draw outer border for this figure according to the current state. |
protected IFigure |
getChildrenPane()
Get children Pane. |
protected Rectangle |
getCollapseIconArea()
Return the rectangle where collapsable toggler icon is. |
IFigure |
getContentPane()
Get content pane |
Rectangle |
getFeedbackFigureBounds()
Return feedback figure bound. |
Rectangle |
getHandleBounds()
Returns the Rectangle around which handles are to be placed. |
protected IconRetriever |
getIconRetriever()
Get icon retriever. |
protected Image |
getImage(String id,
String size)
Get image. |
WrappingLabel |
getNameLabel()
Get name label. |
protected IFigure |
getTitlePane()
Get title Pane. |
protected Image |
getToggleImage(boolean isCollapsed)
Return collapse twistie image. |
protected void |
init()
Initialize the figure. |
void |
invalidate()
|
protected void |
paintCollapseImageArea(Rectangle collapseImgRect,
Graphics graphics)
Paint toggle area. |
protected void |
paintFigure(Graphics graphics)
Paint figure. |
boolean |
requireCollapseableTwistie()
Return true if there is at least two collapseable children figures, false otherwise. |
void |
setCollapsedImage(Image collapsedImage)
Set collpase twistie image. |
void |
setExpandedImage(Image expandedImage)
Set expand twistie image. |
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 |
setInnerLineColor(RGB innerLineRGB)
Set line color that is used in inner rectangle border. |
void |
setOutBorderLineStyle(int lineStyle)
Set line style of outer border |
void |
setOutBorderLineWidth(int lineWidth)
Set line style of outer border |
void |
setOutLineColor(RGB outerLineRGB)
Set line color that is used in outer rectangle border. |
protected void |
setupChildrenPane()
Setup children pane |
protected void |
setupDefaultColors()
Setup default colors |
protected void |
setupLayout()
Setup layout. |
protected void |
setupTitlePane()
Setup title pane. |
Methods inherited from class com.ibm.etools.systems.application.visual.editor.ui.figures.impl.AbstractCollapsableFigure |
---|
getInitialCollapseState, initCollapseState, isCollapsed, isCollapseIconArea, setCollapsed |
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 String copyright
public int shapeImage_width
public int shapeImage_height
public int arcWidth_outer
public int arcHeight_outer
public int outerRectangle_shiftX
public int outerRectangle_shiftY
public int max_outer_borderline_width
public int outerBorderLineStyle
public int outerBorderLineWidth
public int arcWidth_inner
public int arcHeight_inner
public int outer_inner_top_gap
public int outer_inner_left_gap
public int outer_inner_right_gap
public int outer_inner_bottom_gap
public int inner_item_gap
public int collapseImage_shiftX
public int collapseImage_shiftY
public int collapseImage_width
public int collapseImage_height
public Rectangle collapseToggleArea
public Image collapsedTwistieImage
public Image expandTwistieImage
public int collapseLine_gap
public int collapseLine_fill_gap
public int titleLabel_top_padding
public int titleLabel_left_padding
public int titleLabel_right_padding
public int childrenPane_top_padding
public int min_childrenPane_width
public int min_childrenPane_height
public Color foreground_gradient
public Color background_gradient
public RGB defaultOuterLineColor
public RGB defaultInnerLineColor
protected boolean collapse
Constructor Detail |
---|
public SourceContainerFigure(Image shapeImage, String shapeTitle, IMapMode mapMode, IGraphicalEditPart editPart)
Method Detail |
---|
protected void init()
protected void setupTitlePane()
protected void setupChildrenPane()
protected IFigure getTitlePane()
protected IFigure getChildrenPane()
public IFigure getContentPane()
protected void setupLayout()
protected void setupDefaultColors()
protected void paintFigure(Graphics graphics)
protected void drawOuterBorder(Graphics graphics, Rectangle outRect, String feedbackState)
graphics
- outRect
- feedbackState2
- public void setFillColor(RGB shapeFillRGB)
shapeFillRGB
- public void setOutLineColor(RGB outerLineRGB)
outerLineRGB:
- given color of outer line.public void setInnerLineColor(RGB innerLineRGB)
innerLineRGB:
- given color of outer line.public void setGradientForegroundColor(Color foregroundColor)
public void setGradientBackgroundColor(Color backgroundColor)
public boolean requireCollapseableTwistie()
public void setOutBorderLineStyle(int lineStyle)
public void setOutBorderLineWidth(int lineWidth)
public Rectangle getHandleBounds()
org.eclipse.gef.handles.HandleBounds
protected Image getToggleImage(boolean isCollapsed)
public void setCollapsedImage(Image collapsedImage)
public void setExpandedImage(Image expandedImage)
protected void paintCollapseImageArea(Rectangle collapseImgRect, Graphics graphics)
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 invalidate()
IFigure#invalidate()
protected Rectangle getCollapseIconArea()
AbstractCollapsableFigure
getCollapseIconArea
in class AbstractCollapsableFigure
public void cleanUp()
protected Image getImage(String id, String size)
id
- id string used in image registry.size
- size of imageprotected IconRetriever getIconRetriever()
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 |