|
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.ui.figures.impl.BinaryContainerFigure
public class BinaryContainerFigure
Default containment figure for BinaryArtifact of Application Diagram. Logically, this composite figure has following children figures: 1. ShapeTitleLabel to display the shape title text. 2. Shape image to represent the model type. 3. A set of resizable compartment figures to render the children of BinaryArtifact, ie, modules. 4. A collapse toggle image to toggle collapse / expand state of the figure. These children figures are organized as two subpanes. ShapeTitlePane: hold ShapeTitleLabel ShapeChildrenPane: hold resizable compartment figures. This pane is also used as the contentPane of the BinaryContainerFigure, in order for the model children figures to be added into it. The shape image and collapse toggle image will be drawn directly in paintFigure instead of being separate figures. The positions of each child figures follow the media design blueprints.
Field Summary | |
---|---|
int |
arcHeight_inner
|
int |
arcHeight_outer
|
int |
arcWidth_inner
|
int |
arcWidth_outer
|
Color |
background_gradient
|
int |
childrenPane_top_padding
|
Image |
collapsedTwistieImage
|
int |
collapseImage_height
|
int |
collapseImage_shiftX
|
int |
collapseImage_shiftY
|
int |
collapseImage_width
|
int |
collapseLine_fill_gap
|
int |
collapseLine_gap
|
Rectangle |
collapseTwistieArea
|
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 |
---|
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 | |
---|---|
BinaryContainerFigure(Image shapeImage,
String shapeTitle,
IMapMode mapMode,
IGraphicalEditPart editPart)
Creat a container figure. |
Method Summary | |
---|---|
protected void |
changeCollapseState(boolean collapsed)
Change collpase state of figure. |
void |
cleanUp()
Clean up resources. |
void |
collapse()
|
protected void |
drawOuterBorder(Graphics graphics,
Rectangle outRect,
String feedbackState)
Draw outer border for this figure according to the current state. |
void |
expand()
|
protected IFigure |
getChildrenPane()
Get children Pane. |
protected Rectangle |
getCollapseIconArea()
Return the rectangle where collapsable toggler icon is. |
protected Rectangle |
getCollapseTwistieArea()
Return collapse twistie area. |
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 |
getTwistieImage(boolean isCollapsed)
Return collapse twistie image. |
protected void |
init()
Initialize the figure. |
void |
invalidate()
|
boolean |
isInCollapseTwistieArea(Point currentMousePoint)
Return true if current mouse points to collapse twistie area. |
boolean |
needTwistie()
|
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 |
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 final 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 collapseTwistieArea
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
Constructor Detail |
---|
public BinaryContainerFigure(Image shapeImage, String shapeTitle, IMapMode mapMode, IGraphicalEditPart editPart)
shapeImage:
- the icon displays in shape top-left corner.shapeTitle:
- the text displays in shape title area.mapMode:
- the map mode is used by the diagram.Method Detail |
---|
protected void init()
public void cleanUp()
protected void setupTitlePane()
protected void setupChildrenPane()
protected IFigure getTitlePane()
protected IFigure getChildrenPane()
protected void setupLayout()
protected void setupDefaultColors()
public IFigure getContentPane()
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
public boolean isInCollapseTwistieArea(Point currentMousePoint)
currentMousePoint:
- current mouse point.
protected Rectangle getCollapseTwistieArea()
protected Image getTwistieImage(boolean isCollapsed)
protected void paintCollapseImageArea(Rectangle collapseImgRect, Graphics graphics)
public Rectangle getFeedbackFigureBounds()
IFeedbackFigure
getFeedbackFigureBounds
in interface IFeedbackFigure
getFeedbackFigureBounds
in class AbstractFeedbackNodeFigure
public void collapse()
public void expand()
protected void changeCollapseState(boolean collapsed)
public boolean needTwistie()
public void setForegroundColor(Color color)
public void setFontColor(Color color)
public WrappingLabel getNameLabel()
INamedFigure
getNameLabel
in interface INamedFigure
public void invalidate()
IFigure#invalidate()
protected Image getImage(String id, String size)
id
- id string used in image registry.size
- size of imageprotected IconRetriever getIconRetriever()
protected Rectangle getCollapseIconArea()
AbstractCollapsableFigure
getCollapseIconArea
in class AbstractCollapsableFigure
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 |