|
TPTP 4.2.0 Platform Project Internal 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.tptp.platform.report.ui.swt.widgets.internal.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 |
protected org.eclipse.swt.widgets.Control |
corner_control_
control used in the bottom right corner @see setCornerControl() and @see setOverviewEnabled(true) |
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. |
|
| Method Summary | |
|---|---|
protected boolean |
checkFocusOnChildren(org.eclipse.swt.widgets.Control child)
Returns true if a child has the user focus Called by isFocusControl to check in deep |
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)
|
protected void |
contentsMouseDoubleClickEvent(org.eclipse.swt.events.MouseEvent e)
Called when user double on contents area. |
protected void |
contentsMouseDownEvent(org.eclipse.swt.events.MouseEvent e)
Called when mouse is on contents area and button is pressed. |
protected void |
contentsMouseEnter(org.eclipse.swt.events.MouseEvent e)
Called when the mouse enters the ScrollView area |
protected void |
contentsMouseExit(org.eclipse.swt.events.MouseEvent e)
Called when the mouse exits the ScrollView area |
protected void |
contentsMouseHover(org.eclipse.swt.events.MouseEvent e)
Called when the mouse hovers the ScrollView area after and system definied time |
protected void |
contentsMouseMoveEvent(org.eclipse.swt.events.MouseEvent _event)
Called when mouse is on contents area and mode. |
protected void |
contentsMouseUpEvent(org.eclipse.swt.events.MouseEvent _event)
Called when mouse is on contents area and button is released |
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()
|
protected void |
drawContents(org.eclipse.swt.graphics.GC gc,
int clipx,
int clipy,
int clipw,
int cliph)
Responsible to draw contents area. |
protected void |
drawOverview(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle r)
Draw overview area, @see setOverviewEnabled. |
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 |
isFocusControl()
Returns true if a child has the user focus |
boolean |
isVisible(int _px,
int _py)
|
boolean |
isVisible(int _x,
int _y,
int _w,
int _h)
|
protected void |
keyPressedEvent(org.eclipse.swt.events.KeyEvent _e)
Add support for arrow key, scroll the ... scroll view. |
protected void |
keyReleasedEvent(org.eclipse.swt.events.KeyEvent _e)
Redefine this method at your convenience |
static void |
main(java.lang.String[] argv)
Test for ScrollView. |
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 |
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. |
protected void |
viewResized()
Called when ScrollView view is resized. |
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, checkSubclass, 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, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setSize, setSize, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, 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
protected org.eclipse.swt.widgets.Control corner_control_
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| Method Detail |
public boolean setFocus()
public void dispose()
public org.eclipse.swt.graphics.Rectangle getClientArea()
public void setBackground(org.eclipse.swt.graphics.Color c)
public void setToolTipText(java.lang.String text)
protected void drawOverview(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle r)
gc - GC to used to draw.r - Rectangle corresponding to the client area of overview.public 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 featuresetCornerControl()).public void setOverviewSize(int _size)
public boolean getOverviewEnabled()
public int getOverviewSize()
public org.eclipse.swt.widgets.Control getViewControl()
protected void contentsMouseExit(org.eclipse.swt.events.MouseEvent e)
e - protected void contentsMouseHover(org.eclipse.swt.events.MouseEvent e)
e - protected void contentsMouseEnter(org.eclipse.swt.events.MouseEvent e)
e - protected void contentsMouseDoubleClickEvent(org.eclipse.swt.events.MouseEvent e)
e - protected void contentsMouseDownEvent(org.eclipse.swt.events.MouseEvent e)
e - protected void contentsMouseMoveEvent(org.eclipse.swt.events.MouseEvent _event)
_event - protected void contentsMouseUpEvent(org.eclipse.swt.events.MouseEvent _event)
_event -
protected void drawContents(org.eclipse.swt.graphics.GC gc,
int clipx,
int clipy,
int clipw,
int cliph)
gc - clipx - clipy - clipw - cliph -
public void resizeContents(int _w,
int _h)
public void redraw()
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)
getVisiblePart
public boolean setContentsPos(int _x,
int _y)
_x - _y -
public org.eclipse.swt.widgets.ScrollBar getVerticalBar()
public org.eclipse.swt.widgets.ScrollBar getHorizontalBar()
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)
public int viewToContentsX(int _x)
public int viewToContentsY(int _y)
public final org.eclipse.swt.graphics.Point contentsToView(int _x,
int _y)
contentsToViewX, contentsToViewYpublic 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()
protected void keyPressedEvent(org.eclipse.swt.events.KeyEvent _e)
protected void keyReleasedEvent(org.eclipse.swt.events.KeyEvent _e)
protected void viewResized()
public int getVerticalBarWidth()
public int getHorizontalBarHeight()
public org.eclipse.swt.graphics.Rectangle computeTrim(int x,
int y,
int w,
int h)
public static void main(java.lang.String[] argv)
protected boolean checkFocusOnChildren(org.eclipse.swt.widgets.Control child)
public boolean isFocusControl()
|
TPTP 4.2.0 Platform Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||