public class ViewportExposeHelper extends java.lang.Object implements ExposeHelper
ExposeHelper for use with editparts using a
Viewport.| Modifier and Type | Field and Description |
|---|---|
protected GraphicalEditPart |
owner |
| Constructor and Description |
|---|
ViewportExposeHelper(GraphicalEditPart owner)
Constructs a new ViewportExposeHelper on the specified GraphicalEditPart.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected GraphicalEditPart owner
public ViewportExposeHelper(GraphicalEditPart owner)
Viewport somewhere between
its contentsPane and its figure inclusively.owner - the GraphicalEditPart that owns the Viewportpublic 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 ExposeHelperpart - 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)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.