|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.editparts.ViewportHelper | +--org.eclipse.gef.editparts.ViewportExposeHelper
An implementation of ExposeHelper
for use with editparts using a
Viewport
.
Field Summary | |
protected GraphicalEditPart |
owner
|
Constructor Summary | |
ViewportExposeHelper(GraphicalEditPart owner)
Constructs a new ViewportExposeHelper on the specified GraphicalEditPart. |
Method Summary | |
void |
exposeDescendant(EditPart part)
Exposes the descendant EditPart by smoothly scrolling the Viewport . |
protected Viewport |
findViewport(GraphicalEditPart part)
|
int |
getMaximumFrameCount()
Returns the maximumFrameCount. |
int |
getMinimumFrameCount()
Returns the minimumFrameCount. |
void |
setMargin(Insets margin)
Sets the amount of margin to be left around the descendant being exposed. |
void |
setMaximumFrameCount(int maximumFrameCount)
Sets the maximumFrameCount. |
void |
setMinimumFrameCount(int minimumFrameCount)
Sets the minimumFrameCount. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GraphicalEditPart owner
Constructor Detail |
public ViewportExposeHelper(GraphicalEditPart owner)
Viewport
somewhere between its
contentsPane and its figure inclusively.
owner
- the GraphicalEditPart that owns the ViewportMethod Detail |
public void exposeDescendant(EditPart part)
Viewport
. The
smoothness is determined by the minimum and maximum frame count, and the overall
amount being scrolled.
exposeDescendant
in interface ExposeHelper
part
- the descendant to exposeExposeHelper.exposeDescendant(EditPart)
public int getMaximumFrameCount()
public int getMinimumFrameCount()
public void setMargin(Insets margin)
margin
- the margin in pixelspublic void setMaximumFrameCount(int maximumFrameCount)
maximumFrameCount
- The maximumFrameCount to setpublic void setMinimumFrameCount(int minimumFrameCount)
minimumFrameCount
- The minimumFrameCount to setprotected Viewport findViewport(GraphicalEditPart part)
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |