public class SWTAlignmentArea extends AbstractSWTComposite implements ToolkitSpecificAlignmentArea
This class is meant for internal use by AlignmentArea
and should not be instantiated directly.
Constructor and Description |
---|
SWTAlignmentArea(AlignmentArea owner,
org.eclipse.swt.widgets.Composite parent,
int style)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.custom.ScrolledComposite |
getContentScroller() |
int |
getHorizontalScrollbarHeight()
Returns the height of the horizontal content scroll bar.
|
AlignmentArea |
getIndependentComponent() |
Rectangle |
getVisibleAlignmentRect()
Returns the rectangle in pixels of the alignment (with associated data areas) that is visible in the current
scroll container.
|
boolean |
isHideHorizontalScrollBar() |
void |
repaint() |
void |
scrollAlignmentRectToVisible(Rectangle rectangle)
Scrolls the contained components so that the specified rectangle is visible.
|
void |
setHideHorizontalScrollBar(boolean hideHorizontalScrollBar)
Determines whether a horizontal scroll bar should be displayed underneath this element.
|
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize
public SWTAlignmentArea(AlignmentArea owner, org.eclipse.swt.widgets.Composite parent, int style)
owner
- the alignment area using this componentparent
- the parent SWT componentposition
- the position of this component in owner
hideHorizontalScrollBar
- Specify true
here if you want no horizontal scroll bar to be displayed
in this part of the alignment are or false
otherwise.public org.eclipse.swt.custom.ScrolledComposite getContentScroller()
public AlignmentArea getIndependentComponent()
getIndependentComponent
in interface ToolkitComponent
getIndependentComponent
in class AbstractSWTComposite
public void repaint()
repaint
in interface ToolkitComponent
repaint
in class AbstractSWTComposite
public boolean isHideHorizontalScrollBar()
public void setHideHorizontalScrollBar(boolean hideHorizontalScrollBar)
ToolkitSpecificAlignmentArea
MultipleAlignmentsContainer
only the scroll bar of the bottom most alignment is displayed. If
you use an instance of AlignmentArea
is used outside MultipleAlignmentsContainer
you would
usually display a scroll bar.setHideHorizontalScrollBar
in interface ToolkitSpecificAlignmentArea
hideHorizontalScrollBar
- Specify true
here to display a horizontal scroll bar and false
otherwisepublic void scrollAlignmentRectToVisible(Rectangle rectangle)
ToolkitSpecificAlignmentArea
scrollAlignmentRectToVisible
in interface ToolkitSpecificAlignmentArea
rectangle
- the rectangle in the specified alignment that shall become visiblepublic Rectangle getVisibleAlignmentRect()
ToolkitSpecificAlignmentArea
getVisibleAlignmentRect
in interface ToolkitSpecificAlignmentArea
public int getHorizontalScrollbarHeight()
This method is used internally by SWTMultipleAlignmentsContainer.getNeededHeight(int)
.