public class DirectPaintingSWTScrollContainer extends DefaultSWTComposite implements ScrollingToolkitComponent
| Constructor and Description |
|---|
DirectPaintingSWTScrollContainer(ScrollingTICComponent ticComponent,
org.eclipse.swt.widgets.Composite parent,
int style,
TICComponent outputComponent)
Creates a new instance of this class that forwards key and mouse events to
outputComponent. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fireControlScrolled() |
ScrollingTICComponent |
getIndependentComponent()
Returns the
TICComponent that is displayed by this GUI element. |
TICComponent |
getOutputComponent()
Overwrites the method in
DefaultSWTComposite to make sure that the output component and not
the associated independent component is used to paint. |
protected int |
getScrollOffsetX()
This method can be overwritten be inherited classes to provide direct scrolling.
|
protected int |
getScrollOffsetY()
This method can be overwritten be inherited classes to provide direct scrolling.
|
java.awt.Rectangle |
getVisibleRectangle() |
void |
setScrollOffset(int scrollOffsetX,
int scrollOffsetY) |
computeSize, computeSize, getSWTComponent, paintControldrawBackground, getCaret, getIME, scroll, setCaret, setFont, setIMEchanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabListcomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBaraddControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, 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, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitassignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocusassignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocuspublic DirectPaintingSWTScrollContainer(ScrollingTICComponent ticComponent, org.eclipse.swt.widgets.Composite parent, int style, TICComponent outputComponent)
outputComponent.
The mouse events will have transformed coordinates according to the current scroll position.ticComponent - the TIC component associated with the returned instance (the scroll container)parent - the SWT parent compositestyle - the SWT style attributesoutputComponent - the TIC component to be scrolled by the returned instancepublic ScrollingTICComponent getIndependentComponent()
ToolkitComponentTICComponent that is displayed by this GUI element.getIndependentComponent in interface ScrollingToolkitComponentgetIndependentComponent in interface ToolkitComponentgetIndependentComponent in class AbstractSWTWidgetpublic TICComponent getOutputComponent()
DefaultSWTComposite to make sure that the output component and not
the associated independent component is used to paint.getOutputComponent in class DefaultSWTCompositeprotected int getScrollOffsetX()
DefaultSWTCompositegetScrollOffsetX in class DefaultSWTCompositeprotected int getScrollOffsetY()
DefaultSWTCompositegetScrollOffsetY in class DefaultSWTCompositepublic void setScrollOffset(int scrollOffsetX, int scrollOffsetY)
setScrollOffset in interface ScrollingToolkitComponentpublic java.awt.Rectangle getVisibleRectangle()
getVisibleRectangle in interface ScrollingToolkitComponentprotected void fireControlScrolled()