public class DirectPaintingSWTAlignmentArea extends AbstractSWTAlignmentArea implements ToolkitSpecificAlignmentArea
In contrast to ScrollContainerSWTAlignmentArea
this implementation uses
DirectPaintingSWTAlignmentContentScroller
instead of ScrolledComposite
, which makes
use of DirectPaintingSWTScrollContainer
from TIC. ScrolledComposite
currently
(2017) has limitations under Windows and Linux in the maximum size of the scrolled
content. This implementation is offered as an alternative to overcome these limitations. The
methods to provide scrolling functionality are delegated to the nested
DirectPaintingSWTAlignmentContentScroller
instance.
In contrast to the ScrollContainerSWTAlignmentArea
and its Swing counterpart this
implementation will not create a toolkit component with its subcomponents for
AlignmentContentArea
that is then scrolled but will paint the contents of the TIC
component directly with an offset according to the current scroll position.
AlignmentArea
,
ScrollContainerSWTAlignmentArea
Constructor and Description |
---|
DirectPaintingSWTAlignmentArea(AlignmentArea ticComponent,
org.eclipse.swt.widgets.Composite parent,
int style) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Scrollable |
createContentScroller(org.eclipse.swt.widgets.Composite container) |
AlignmentArea |
getIndependentComponent() |
java.awt.Rectangle |
getVisibleRectangle() |
void |
setScrollOffset(int x,
int y) |
getHorizontalScrollbarHeight, isHideHorizontalScrollBar, setHideHorizontalScrollBar
getSWTComponent
changed, checkSubclass, 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, 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, requestLayout, 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, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setHideHorizontalScrollBar
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocus
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocus
public DirectPaintingSWTAlignmentArea(AlignmentArea ticComponent, org.eclipse.swt.widgets.Composite parent, int style)
public AlignmentArea getIndependentComponent()
getIndependentComponent
in interface ScrollingToolkitComponent
getIndependentComponent
in interface ToolkitComponent
getIndependentComponent
in class AbstractSWTAlignmentArea
protected org.eclipse.swt.widgets.Scrollable createContentScroller(org.eclipse.swt.widgets.Composite container)
createContentScroller
in class AbstractSWTAlignmentArea
public void setScrollOffset(int x, int y)
setScrollOffset
in interface ScrollingToolkitComponent
public java.awt.Rectangle getVisibleRectangle()
getVisibleRectangle
in interface ScrollingToolkitComponent