|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.hyades.uml2sd.ui.view.ScrollView
public class ScrollView
ScrollView widget provides a scrolling area with on-demand scroll bars. Overview scrollable panel can be use (@see setOverviewEnabled()).
| Field Summary | |
|---|---|
static int |
ALWAYS_OFF
|
static int |
ALWAYS_ON
|
static int |
AUTO
Value for scroll bar mode, default is AUTO |
static int |
HBAR
|
static int |
VBAR
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
ScrollView(org.eclipse.swt.widgets.Composite c,
int style)
Create a ScrollView, child of composite c. |
|
ScrollView(org.eclipse.swt.widgets.Composite c,
int style,
boolean mouseWheel)
Create a ScrollView, child of composite c. |
|
| Method Summary | |
|---|---|
int |
computeBarVisibility(int for_width,
int for_height,
boolean curr_h_vis,
boolean curr_v_vis)
compute visibility of vert/hor bar using given width/height and current visilibity (ie is barr size are alreay in for_xxx |
org.eclipse.swt.graphics.Rectangle |
computeTrim(int x,
int y,
int w,
int h)
|
org.eclipse.swt.graphics.Point |
contentsToView(int _x,
int _y)
Transform (x,y) point from contents coordinates, to widget coordinates. |
int |
contentsToViewX(int _x)
Transform X axis coordinates from contents to widgets. |
int |
contentsToViewY(int _y)
Transform Y axis coordinates from contents to widgets. |
void |
dispose()
|
void |
ensureVisible(int _px,
int _py)
Scroll to ensure point(in contents coordinates) is visible. |
void |
ensureVisible(int _x,
int _y,
int _w,
int _h,
int _align)
Make rectangle (_x,_y,_w,_h, in contents coordinates) visible. |
org.eclipse.swt.graphics.Rectangle |
getClientArea()
|
int |
getContentsHeight()
Access method for the contentsHeight property. |
int |
getContentsWidth()
Access method for the contentsWidth property. |
int |
getContentsX()
Access method for the contentsX property. |
int |
getContentsY()
Access method for the contentsY property. |
boolean |
getDragAutoScroll()
Determines if the dragAutoScroll property is true. |
int |
getDragAutoScrollPeriod()
Return auto scroll period. |
org.eclipse.swt.widgets.ScrollBar |
getHorizontalBar()
|
int |
getHorizontalBarHeight()
|
int |
getHScrollBarIncrement()
Return horizontal scroll bar increment, default:1 |
int |
getHScrollBarMode()
Access method for the hScrollBarMode property. |
boolean |
getOverviewEnabled()
|
int |
getOverviewSize()
|
org.eclipse.swt.widgets.ScrollBar |
getVerticalBar()
|
int |
getVerticalBarWidth()
|
org.eclipse.swt.widgets.Control |
getViewControl()
|
int |
getVisibleHeight()
|
org.eclipse.swt.graphics.Rectangle |
getVisiblePart(int _x,
int _y,
int _w,
int _h)
|
org.eclipse.swt.graphics.Rectangle |
getVisiblePart(org.eclipse.swt.graphics.Rectangle _r)
|
int |
getVisibleWidth()
|
int |
getVScrollBarIncrement()
Return vertical scroll bar increment, default:1 |
int |
getVScrollBarMode()
Access method for the vScrollBarMode property. |
boolean |
isVisible(int _px,
int _py)
|
boolean |
isVisible(int _x,
int _y,
int _w,
int _h)
|
void |
redraw()
|
void |
replaceControlListener(org.eclipse.swt.events.ControlListener nlistener)
Remove the local Listener and add the new listener. |
void |
replaceKeyListener(org.eclipse.swt.events.KeyListener nlistener)
Remove the local Listener and add the new listener. |
void |
replaceMouseListener(org.eclipse.swt.events.MouseListener nlistener)
Remove the local Listener and add the new listener. |
void |
replaceMouseMoveListener(org.eclipse.swt.events.MouseMoveListener nlistener)
Remove the local Listener and add the new listener. |
void |
replacePaintListener(org.eclipse.swt.events.PaintListener nlistener)
Remove the local Listener and add the new listener. |
void |
resizeContents(int _w,
int _h)
Change the size of the contents area. |
void |
scrollBy(int _dx,
int _dy)
|
void |
setBackground(org.eclipse.swt.graphics.Color c)
change background color of client area |
boolean |
setContentsPos(int _x,
int _y)
Change top left position of visible area. |
void |
setCornerControl(org.eclipse.swt.widgets.Control _w)
Change the control used in the bottom right corner (between two scrollbar), if control is null reset previous corner control. |
void |
setCursor(org.eclipse.swt.graphics.Cursor cursor)
|
void |
setDragAutoScroll(boolean aDragAutoScroll)
Sets the value of the dragAutoScroll property. |
void |
setDragAutoScrollPeriod(int _period)
Change delay (in millisec) used for auto scroll feature. |
boolean |
setFocus()
|
void |
setHScrollBarIncrement(int _inc)
Change horizontal scroll bar increment, minimum:1. |
void |
setHScrollBarMode(int aHScrollBarMode)
Sets the value of the hScrollBarMode property. |
void |
setOverviewEnabled(boolean _b)
Enable or disable overview feature. |
void |
setOverviewSize(int _size)
Change overview size (at ratio 1:1), default is 100 |
void |
setToolTipText(java.lang.String text)
|
void |
setVScrollBarIncrement(int _inc)
Change vertical scroll bar increment, minimum:1. |
void |
setVScrollBarMode(int aVScrollBarMode)
Sets the value of the vScrollBarMode property. |
org.eclipse.swt.graphics.Point |
viewToContents(int _x,
int _y)
Transform (x,y) point in widget coordinates to contents coordinates. |
int |
viewToContentsX(int _x)
Transform x in widget coordinates to contents coodinates |
int |
viewToContentsY(int _y)
Transform y in widget coordinates to contents coodinates |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
getBorderWidth |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int AUTO
public static final int ALWAYS_OFF
public static final int ALWAYS_ON
public static final int VBAR
public static final int HBAR
| Constructor Detail |
|---|
public ScrollView(org.eclipse.swt.widgets.Composite c,
int style)
c - style - SWT style bits @see SWT
public ScrollView(org.eclipse.swt.widgets.Composite c,
int style,
boolean mouseWheel)
c - style - SWT style bits @see SWTmouseWheel - force scrollView to handles mouse wheel| Method Detail |
|---|
public boolean setFocus()
setFocus in class org.eclipse.swt.widgets.Compositepublic void setCursor(org.eclipse.swt.graphics.Cursor cursor)
setCursor in class org.eclipse.swt.widgets.Controlpublic void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic org.eclipse.swt.graphics.Rectangle getClientArea()
getClientArea in class org.eclipse.swt.widgets.Compositepublic void setBackground(org.eclipse.swt.graphics.Color c)
setBackground in class org.eclipse.swt.widgets.Controlpublic void setToolTipText(java.lang.String text)
setToolTipText in class org.eclipse.swt.widgets.Controlpublic void replaceControlListener(org.eclipse.swt.events.ControlListener nlistener)
nlistener - the new listenerpublic void replaceKeyListener(org.eclipse.swt.events.KeyListener nlistener)
nlistener - the new listenerpublic void replaceMouseListener(org.eclipse.swt.events.MouseListener nlistener)
nlistener - the new listenerpublic void replaceMouseMoveListener(org.eclipse.swt.events.MouseMoveListener nlistener)
nlistener - the new listenerpublic void replacePaintListener(org.eclipse.swt.events.PaintListener nlistener)
nlistener - the new listenerpublic int getContentsHeight()
public int getContentsWidth()
public int getContentsX()
public int getContentsY()
public boolean getDragAutoScroll()
true if the dragAutoScroll property is truepublic void setDragAutoScroll(boolean aDragAutoScroll)
aDragAutoScroll - the new value of the dragAutoScroll propertypublic void setDragAutoScrollPeriod(int _period)
_period - new period between to auto scrollpublic int getDragAutoScrollPeriod()
public int getHScrollBarMode()
public void setHScrollBarMode(int aHScrollBarMode)
aHScrollBarMode - the new value of the hScrollBarMode propertypublic int getVScrollBarMode()
public void setVScrollBarMode(int aVScrollBarMode)
aVScrollBarMode - the new value of the vScrollBarMode propertypublic int getHScrollBarIncrement()
public int getVScrollBarIncrement()
public void setHScrollBarIncrement(int _inc)
public void setVScrollBarIncrement(int _inc)
public void setOverviewEnabled(boolean _b)
_b - true to engage overview featurepublic void setOverviewSize(int _size)
public boolean getOverviewEnabled()
public int getOverviewSize()
public org.eclipse.swt.widgets.Control getViewControl()
public void resizeContents(int _w,
int _h)
w - new width of the area.h - new height of the area.public void redraw()
redraw in class org.eclipse.swt.widgets.Control
public void scrollBy(int _dx,
int _dy)
_dx - _dy -
public void ensureVisible(int _px,
int _py)
public void ensureVisible(int _x,
int _y,
int _w,
int _h,
int _align)
_x - x contents coordinates of rectangle._y - y contents coordinates of rectangle._w - width of rectangle._h - height of rectangle._align - bit or'ed SWT flag like SWT.LEFT,RIGHT,CENTER,TOP,BOTTOM,VERTICAL
used only for bigger rectangle than visible area.
By default CENTER/VERTICAL
public boolean isVisible(int _px,
int _py)
public boolean isVisible(int _x,
int _y,
int _w,
int _h)
public org.eclipse.swt.graphics.Rectangle getVisiblePart(int _x,
int _y,
int _w,
int _h)
public final org.eclipse.swt.graphics.Rectangle getVisiblePart(org.eclipse.swt.graphics.Rectangle _r)
public boolean setContentsPos(int _x,
int _y)
_x - _y -
public org.eclipse.swt.widgets.ScrollBar getVerticalBar()
getVerticalBar in class org.eclipse.swt.widgets.Scrollablepublic org.eclipse.swt.widgets.ScrollBar getHorizontalBar()
getHorizontalBar in class org.eclipse.swt.widgets.Scrollable
public int computeBarVisibility(int for_width,
int for_height,
boolean curr_h_vis,
boolean curr_v_vis)
public void setCornerControl(org.eclipse.swt.widgets.Control _w)
public final org.eclipse.swt.graphics.Point viewToContents(int _x,
int _y)
x - y -
public int viewToContentsX(int _x)
public int viewToContentsY(int _y)
public final org.eclipse.swt.graphics.Point contentsToView(int _x,
int _y)
x - y -
public int contentsToViewX(int _x)
_x - contents coordinate to transform
public int contentsToViewY(int _y)
_y - contents coordinate to transform
public int getVisibleHeight()
public int getVisibleWidth()
public int getVerticalBarWidth()
public int getHorizontalBarHeight()
public org.eclipse.swt.graphics.Rectangle computeTrim(int x,
int y,
int w,
int h)
computeTrim in class org.eclipse.swt.widgets.Scrollable
|
TPTP 4.5.0 Platform Project Public API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||