Package org.eclipse.gef.editparts
Class ViewportExposeHelper
java.lang.Object
org.eclipse.gef.editparts.ViewportExposeHelper
- All Implemented Interfaces:
- ExposeHelper
An implementation of 
ExposeHelper for use with editparts using a
 Viewport.- Since:
- 2.0
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new ViewportExposeHelper on the specified GraphicalEditPart.
- 
Method SummaryModifier and TypeMethodDescriptionvoidexposeDescendant(EditPart part) Exposes the descendant EditPart by smoothly scrolling theViewport.protected ViewportintReturns the maximumFrameCount.intReturns the minimumFrameCount.voidSets the amount of margin to be left around the descendant being exposed.voidsetMaximumFrameCount(int maximumFrameCount) Sets the maximumFrameCount.voidsetMinimumFrameCount(int minimumFrameCount) Sets the minimumFrameCount.
- 
Field Details- 
owner
 
- 
- 
Constructor Details- 
ViewportExposeHelperConstructs a new ViewportExposeHelper on the specified GraphicalEditPart. The GraphicalEditPart must have aViewportsomewhere between its contentsPane and its figure inclusively.- Parameters:
- owner- the GraphicalEditPart that owns the Viewport
 
 
- 
- 
Method Details- 
exposeDescendantExposes the descendant EditPart by smoothly scrolling theViewport. The smoothness is determined by the minimum and maximum frame count, and the overall amount being scrolled.- Specified by:
- exposeDescendantin interface- ExposeHelper
- Parameters:
- part- the descendant to expose
- See Also:
 
- 
getMaximumFrameCountpublic int getMaximumFrameCount()Returns the maximumFrameCount.- Returns:
- int
 
- 
getMinimumFrameCountpublic int getMinimumFrameCount()Returns the minimumFrameCount.- Returns:
- int
 
- 
setMarginSets the amount of margin to be left around the descendant being exposed. There is no margin by default.- Parameters:
- margin- the margin in pixels
 
- 
setMaximumFrameCountpublic void setMaximumFrameCount(int maximumFrameCount) Sets the maximumFrameCount.- Parameters:
- maximumFrameCount- The maximumFrameCount to set
 
- 
setMinimumFrameCountpublic void setMinimumFrameCount(int minimumFrameCount) Sets the minimumFrameCount.- Parameters:
- minimumFrameCount- The minimumFrameCount to set
 
- 
findViewport
 
-