Package org.eclipse.draw2d
Class ScrollPaneLayout
java.lang.Object
org.eclipse.draw2d.AbstractLayout
org.eclipse.draw2d.AbstractHintLayout
org.eclipse.draw2d.ScrollPaneLayout
- All Implemented Interfaces:
- LayoutManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected static final intFields inherited from class org.eclipse.draw2d.AbstractLayoutisObservingVisibility, preferredSize
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncalculateMinimumSize(IFigure figure, int w, int h) Calculates the minimum size using the given width and height hints.protected DimensioncalculatePreferredSize(IFigure container, int wHint, int hHint) Calculates and returns the preferred size of the container based on the given hints.voidLays out the given figure.Methods inherited from class org.eclipse.draw2d.AbstractHintLayoutgetMinimumSize, getPreferredSize, invalidate, isSensitiveHorizontally, isSensitiveVerticallyMethods inherited from class org.eclipse.draw2d.AbstractLayoutcalculatePreferredSize, getBorderPreferredSize, getConstraint, getMinimumSize, getPreferredSize, invalidate, isObservingVisibility, remove, setConstraint, setObserveVisibility
- 
Field Details- 
NEVERprotected static final int NEVER- See Also:
 
- 
AUTOprotected static final int AUTO- See Also:
 
- 
ALWAYSprotected static final int ALWAYS- See Also:
 
 
- 
- 
Constructor Details- 
ScrollPaneLayoutpublic ScrollPaneLayout()
 
- 
- 
Method Details- 
calculateMinimumSizeDescription copied from class:AbstractHintLayoutCalculates the minimum size using the given width and height hints. This method is called fromAbstractHintLayout.getMinimumSize(IFigure, int, int)whenever the cached minimum size has been flushed.By default, this method just calls AbstractHintLayout.getPreferredSize(IFigure, int, int), meaning minimum and preferres sizes will be the same unless this method is overridden.- Overrides:
- calculateMinimumSizein class- AbstractHintLayout
- Parameters:
- figure- the Figure on which this layout is installed
- w- the width hint
- h- the height hint
- Returns:
- the layout's minimum size
- See Also:
 
- 
calculatePreferredSizeCalculates and returns the preferred size of the container based on the given hints. If the given ScrollPane's (container) horizontal and vertical scroll bar visibility is notScrollPane.NEVER, then space for those bars is always deducted from the hints (whether or not we actually need the scroll bars).- Specified by:
- calculatePreferredSizein class- AbstractLayout
- Parameters:
- container- the ScrollPane whose preferred size needs to be calculated
- wHint- the width hint
- hHint- the height hint
- Returns:
- the preferred size of the given container
- Since:
- 2.0
 
- 
layoutDescription copied from interface:LayoutManagerLays out the given figure.- Parameters:
- parent- The figure
- See Also:
 
 
-