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, paintControl
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME
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, 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, 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
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocus
assignSize, getLocationInParent, getTargetToolkit, getToolkitSize, isFocusOwner, repaint, requestFocus
public 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()
ToolkitComponent
TICComponent
that is displayed by this GUI element.getIndependentComponent
in interface ScrollingToolkitComponent
getIndependentComponent
in interface ToolkitComponent
getIndependentComponent
in class AbstractSWTWidget
public TICComponent getOutputComponent()
DefaultSWTComposite
to make sure that the output component and not
the associated independent component is used to paint.getOutputComponent
in class DefaultSWTComposite
protected int getScrollOffsetX()
DefaultSWTComposite
getScrollOffsetX
in class DefaultSWTComposite
protected int getScrollOffsetY()
DefaultSWTComposite
getScrollOffsetY
in class DefaultSWTComposite
public void setScrollOffset(int scrollOffsetX, int scrollOffsetY)
setScrollOffset
in interface ScrollingToolkitComponent
public java.awt.Rectangle getVisibleRectangle()
getVisibleRectangle
in interface ScrollingToolkitComponent
protected void fireControlScrolled()