|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure
org.eclipse.gmf.runtime.diagram.ui.figures.ResizableCompartmentFigure
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator, Figure.IdentitySearch |
| Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
| Field Summary | |
static int |
MIN_CLIENT_DP
Specifies the default minimum client size of this figure in device coordinates. |
protected ScrollPane |
scrollPane
The compartment scroll pane |
| Fields inherited from class org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure |
szAnchor |
| Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
| Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
| Constructor Summary | |
ResizableCompartmentFigure(java.lang.String compartmentTitle,
org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
A constructor for a top level resizable compartment figure |
|
| Method Summary | |
void |
collapse()
Collapses the compartment figure |
protected org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane |
createScrollpane()
Deprecated. use ResizableCompartmentFigure.createScrollPane(IMapMode) instead |
protected org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane |
createScrollpane(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
Deprecated. use ResizableCompartmentFigure.createScrollPane(IMapMode) instead |
protected ScrollPane |
createScrollPane(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
Creates the animatable scroll pane |
void |
expand()
Expands the compartment figure |
IFigure |
getAdjacentSibling(boolean before)
Gets the adjacent visible sibling before (or after) the figure |
java.lang.String |
getCompartmentTitle()
Return this figure's compartment title. |
IFigure |
getContentPane()
|
Dimension |
getMaximumSize()
|
Dimension |
getMinClientDimension()
For this compartment we need it to be a min size so to fit the collapse handles and to give the user an area they can drag and drop into the list compartment even if there is nothing in the compartment |
protected int |
getMinClientSize()
|
Dimension |
getMinimumSize(int w,
int h)
|
Dimension |
getPreferredSize(int wHint,
int hHint)
|
ScrollPane |
getScrollPane()
scrollpane accessor |
Figure |
getTextPane()
|
void |
invalidate()
|
boolean |
isExpanded()
Accessor for the expanded property |
boolean |
isHorizontal()
getter for the horizontal flag |
protected void |
paintFigure(Graphics graphics)
|
void |
setCollapsed()
Collapses the compartment figure |
void |
setExpanded()
Expands the compartment figure |
void |
setFont(Font f)
|
void |
setFontColor(Color c)
Sets the font color of the compartment title label |
void |
setHorizontal(boolean horizontal)
setter for the horizontal flag |
void |
setSelected(boolean b)
Sets the selection state of this label |
void |
setTitle(java.lang.String title)
Set the compartment title to the supplied text. |
void |
setTitleVisibility(boolean visibility)
Sets the compartment title visibility |
void |
setToolTip(java.lang.String tooltip)
Set the tooltip to the supplied text. |
void |
validate()
|
| Methods inherited from class org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure |
createAnchor, createConnectionAnchor, createDefaultAnchor, getConnectionAnchor, getConnectionAnchors, getConnectionAnchorTerminal, getDefaultAnchorID, getHandleBounds, getSlidableAnchorArea, getSourceConnectionAnchorAt, getTargetConnectionAnchorAt, isDefaultAnchorArea |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ScrollPane scrollPane
public static final int MIN_CLIENT_DP
IMapMode to convert this to logical
coordinates.
| Constructor Detail |
public ResizableCompartmentFigure(java.lang.String compartmentTitle,
org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
compartmentTitle - String that is the title that is
displayed at the top of the compartment figure (optional).mm - the IMapMode that is used to initialize the
default values of of the scrollpane contained inside the figure. This is
necessary since the figure is not attached at construction time and consequently
can't get access to the owned IMapMode in the parent containment hierarchy.| Method Detail |
protected org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane createScrollpane()
ResizableCompartmentFigure.createScrollPane(IMapMode) instead
AnimatableScrollPaneprotected org.eclipse.gmf.runtime.draw2d.ui.internal.figures.AnimatableScrollPane createScrollpane(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
ResizableCompartmentFigure.createScrollPane(IMapMode) instead
mm - the IMapMode that is used to initialize the
default values of of the scrollpane contained inside the figure. This is
necessary since the figure is not attached at construction time and consequently
can't get access to the owned IMapMode in the parent containment hierarchy.
AnimatableScrollPaneprotected ScrollPane createScrollPane(org.eclipse.gmf.runtime.draw2d.ui.mapmode.IMapMode mm)
mm - the IMapMode that is used to initialize the
default values of of the scrollpane contained inside the figure. This is
necessary since the figure is not attached at construction time and consequently
can't get access to the owned IMapMode in the parent containment hierarchy.
ScrollPaneprotected final int getMinClientSize()
public void setTitleVisibility(boolean visibility)
visibility - public void expand()
public void collapse()
public void setExpanded()
public void setCollapsed()
public IFigure getContentPane()
public void setFont(Font f)
public void setFontColor(Color c)
c - The new colorpublic void setTitle(java.lang.String title)
title - this figure titlepublic void setToolTip(java.lang.String tooltip)
tooltip - this figure tooltippublic final ScrollPane getScrollPane()
public final boolean isExpanded()
public final java.lang.String getCompartmentTitle()
Stringpublic final IFigure getAdjacentSibling(boolean before)
before - flag to identify the before or after, true
means before, false means after
IFigurepublic void setSelected(boolean b)
b - true will cause the label to appear selectedprotected void paintFigure(Graphics graphics)
paintFigure in class NodeFigureFigure.paintFigure(org.eclipse.draw2d.Graphics)
public Dimension getPreferredSize(int wHint,
int hHint)
IFigure.getPreferredSize(int, int)
public Dimension getMinimumSize(int w,
int h)
IFigure.getMinimumSize(int, int)public final boolean isHorizontal()
public final void setHorizontal(boolean horizontal)
horizontal - the new value of the horizontal flagpublic Dimension getMaximumSize()
IFigure.getMaximumSize()public void invalidate()
IFigure.invalidate()public Figure getTextPane()
public Dimension getMinClientDimension()
Dimensionpublic void validate()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.