|
PTP Release 5.0 |
|||||||||
| 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.swt.widgets.Canvas
org.eclipse.ptp.ui.views.IconCanvas
public class IconCanvas
| Field Summary | |
|---|---|
protected org.eclipse.core.runtime.ListenerList |
actionListeners
|
protected int |
actualScrollStart_y
|
protected int |
autoScrollDirection
|
protected org.eclipse.swt.graphics.Color |
background
|
protected IContentProvider |
contentProvider
|
protected int |
current_top_row
|
protected int |
DEFAULT_FONT_SIZE
|
protected org.eclipse.swt.graphics.Cursor |
defaultCursor
|
protected boolean |
displayRuler
|
protected int |
e_height
|
protected int |
e_offset_x
|
protected int |
e_offset_y
|
protected int |
e_spacing_x
|
protected int |
e_spacing_y
|
protected int |
e_width
|
protected IIconInformationControl |
fInformationControl
|
protected int |
firstSelectedIndex
|
protected int |
font_size
|
protected org.eclipse.swt.graphics.Color |
foreground
|
protected IImageProvider |
imageProvider
|
protected Hashtable<Integer,Integer> |
keyActionMap
|
protected org.eclipse.swt.widgets.Listener |
listener
|
protected org.eclipse.swt.graphics.Color |
margin_color
|
protected int |
margin_text
|
protected int |
max_e_col
|
protected int |
max_e_row
|
protected boolean |
mouseDoubleClick
|
protected boolean |
mouseDown
|
protected org.eclipse.swt.graphics.Point |
movingSelectionEnd
|
protected org.eclipse.swt.graphics.Point |
movingSelectionStart
|
static int |
NE
|
static int |
NW
|
static int |
SE
|
protected int |
secondSelectedIndex
|
protected org.eclipse.swt.graphics.Color |
sel_color
|
protected int |
sel_gap
|
protected int |
sel_length
|
protected int |
sel_size
|
protected BitSet |
selectedElements
|
protected org.eclipse.swt.graphics.Point |
selection
|
protected boolean |
show_tooltip
|
protected boolean |
show_tooltip_allthetime
|
static int |
SW
|
protected BitSet |
tempSelectedElements
|
protected long |
tooltip_timeout
|
protected boolean |
tooltip_wrap
|
protected IToolTipProvider |
toolTipProvider
|
protected int |
total_elements
|
protected int |
verticalScrollOffset
|
| Fields inherited from class org.eclipse.swt.widgets.Composite |
|---|
embeddedHandle |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
|---|
handle |
| Constructor Summary | |
|---|---|
IconCanvas(org.eclipse.swt.widgets.Composite parent,
int style)
Constructor |
|
| Method Summary | |
|---|---|
void |
addActionListener(IIconCanvasActionListener actionListener)
Add action listener |
void |
autoSelectUnselectElement(int index)
Select element |
protected void |
calculateTopIndex()
Calculate top index |
protected void |
calculateVerticalScrollBar()
Calculate vertical scrollbar |
protected boolean |
canSelectElements(int start_index,
int end_index,
boolean checkStatus)
select elements |
protected boolean |
claimBottomFreeSpace()
Claim bottom free space |
protected void |
clearMargin(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Color background)
Clear margin background |
protected void |
createKeyBindings()
Create keyboard binding |
protected void |
disableTooltipTimer()
|
void |
dispose()
|
protected void |
doAutoScroll(int x_loc,
int y_loc)
Do auto scrolling |
protected void |
doAutoScroll(int direction,
int distance,
int x_loc,
int y_loc)
Do auto scrolling |
protected void |
doCopy()
Do copy |
protected void |
doCut()
Do cut |
protected void |
doDelete()
Do delete |
protected void |
doDown(boolean isSelect)
Do down |
protected void |
doLineEnd(boolean isSelect)
Go to line end |
protected void |
doLineStart(boolean isSelect)
Go to line start |
protected void |
doMouseMoving(org.eclipse.swt.widgets.Event event)
Do mouse moving |
protected void |
doMouseSelection(int mouse_start_x,
int mouse_start_y,
int mouse_end_x,
int mouse_end_y,
boolean isScrolling)
Do mouse selection |
protected void |
doNext(boolean isSelect)
Go next |
protected void |
doPageDown(int rows)
Do page down |
protected void |
doPageUp(int rows)
Do page up |
protected void |
doPaste()
Do paste |
protected void |
doPrevious(boolean isSelect)
Go previous |
protected void |
doSelectionAll()
Select all elements |
protected void |
doSelectionPageDown(int distance)
Do selection page down |
protected void |
doSelectionPageDown(int distance,
int x_loc,
int y_loc,
boolean isSelect)
Do selection page down |
protected void |
doSelectionPageUp(int distance)
Do selection page up |
protected void |
doSelectionPageUp(int distance,
int x_loc,
int y_loc,
boolean isSelect)
Do selection page up |
protected void |
doUp(boolean isSelect)
Do up |
protected void |
drawImage(org.eclipse.swt.graphics.GC gc,
Object obj,
int index,
int x_loc,
int y_loc,
boolean isSelected)
Draw image |
protected void |
drawIndex(org.eclipse.swt.graphics.GC gc,
Object obj,
int index,
int y_loc)
Draw index |
protected void |
drawSpecial(Object obj,
int index,
org.eclipse.swt.graphics.GC gc,
int x_loc,
int y_loc,
int width,
int height)
Draw special on selected element |
protected void |
enableTooltipTimer()
|
protected void |
endAutoScroll()
Finished auto scrolling |
protected org.eclipse.swt.graphics.Point |
findLocation(int index)
Find location |
protected org.eclipse.swt.graphics.Point |
findSection(int index)
Find column and row |
protected int |
findSelectedIndex(int row,
int col)
Find selected index |
protected int |
findSelectedIndexByLocation(int loc_x,
int loc_y,
boolean isApproximate)
Find selected index |
protected void |
fireAction(int type)
Fire action |
protected void |
fireAction(int type,
int index)
Fire action |
org.eclipse.swt.graphics.Color |
getBackground()
|
IContentProvider |
getContentProvider()
Get content provider |
protected int |
getCurrentTopRow()
Get current top row |
protected int |
getDirection(int s_x,
int s_y,
int e_x,
int e_y)
Get direction |
protected int |
getElementHeight()
Get element height |
protected int |
getElementWidth()
Get element width |
org.eclipse.swt.graphics.Color |
getForeground()
|
org.eclipse.swt.graphics.GC |
getGC()
Get GC |
protected org.eclipse.swt.graphics.GC |
getGC(int style)
Get GC by creating a new |
IImageProvider |
getImageProvider()
Get image provider |
protected IIconInformationControl |
getInformationControl(boolean showDetails)
Get information control |
int |
getKeyBinding(int key)
Get key |
protected int |
getMaxClientRow()
Get maximum client row |
protected int |
getMaxCol()
Get maximum column to display |
protected int |
getMaxHeight()
Get maximum height of view |
protected int |
getMaxRow()
Get maximum row |
protected Object |
getObject(int index)
Get object from selected elementindex |
protected int |
getSelectedCol(int x_loc,
boolean isApproximate)
Get selected column |
int[] |
getSelectedIndexes()
Get selected indexes |
protected int |
getSelectedRow(int y_loc,
boolean isApproximate)
Get selected row |
protected org.eclipse.swt.graphics.Image |
getStatusIcon(Object obj,
int index,
boolean isSelected)
Get status image |
IToolTipProvider |
getToolTipProvider()
Get tooltip provider |
protected String[] |
getToolTipText(Object obj)
Get tooltip text |
int |
getTotalElements()
Get total elements |
protected int |
getVerticalIncrement()
Get vertical increment |
protected org.eclipse.swt.graphics.Point |
getViewActualLocation(org.eclipse.swt.widgets.Control from,
org.eclipse.swt.widgets.Control to,
int mx,
int my)
Get actual view location |
protected void |
handleDispose(org.eclipse.swt.widgets.Event event)
Handle dispose event |
protected void |
handleFocusOut(org.eclipse.swt.widgets.Event event)
Handle focus out event |
protected void |
handleInformationControlDisposed()
Handle information control disposed event |
protected void |
handleKey(org.eclipse.swt.widgets.Event event)
Handle key |
protected void |
handleKeyDown(org.eclipse.swt.widgets.Event event)
Handle key down event |
protected void |
handleKeyUp(org.eclipse.swt.widgets.Event event)
Handle key up event |
protected void |
handleMouseDoubleClick(org.eclipse.swt.widgets.Event event)
Handle mouse double click event |
protected void |
handleMouseDown(org.eclipse.swt.widgets.Event event)
Handle mouse down event |
protected void |
handleMouseHover(org.eclipse.swt.widgets.Event event)
|
protected void |
handleMouseMove(org.eclipse.swt.widgets.Event event)
Handle mouse move event |
protected void |
handleMouseUp(org.eclipse.swt.widgets.Event event)
Handle mouse up event |
protected void |
handlePaint(org.eclipse.swt.widgets.Event event)
Handle paint event |
protected void |
handleResize(org.eclipse.swt.widgets.Event event)
Handle resize event |
protected void |
hideToolTip()
Hide tooltip |
protected void |
initializeAccessible()
initial accessiable |
protected void |
installListeners()
install listeners |
void |
invokeAction(int action)
Invoke action |
boolean |
isDisplayRuler()
Is ruler displayed |
protected boolean |
isReachBottom()
Is reach bottom of view |
protected boolean |
isReachTop()
Is reached top of view |
boolean |
isSelected(int index)
Is element selected |
static void |
main(String[] args)
Self testing |
protected void |
performPaint(org.eclipse.swt.graphics.GC gc,
int col_start,
int col_end,
int row_start,
int row_end,
int render_x,
int render_y,
int renderWidth,
int renderHeight)
Paint the view |
protected void |
redraw(int start_index,
int end_index)
Redraw |
protected void |
redrawByIndex(int col_start,
int col_end,
int row_start,
int row_end,
int direction,
boolean isScrolling)
Redraw by index |
protected void |
redrawByLocation(int d_sx,
int d_ex,
int d_sy,
int d_ey,
int direction,
boolean isScrolling)
Redraw by location |
void |
removeActionListener(IIconCanvasActionListener actionListener)
Remove action listener |
void |
resetCanvas()
Reset canvas setting |
protected void |
resetInfo()
Reset info |
void |
selectElement(int index)
select element |
void |
selectElements(int from_index,
int to_index)
Select elements |
void |
selectElements(int from_index,
int to_index,
boolean checkStatus)
Select elements |
protected BitSet |
selectElements(int col_start,
int col_end,
int row_start,
int row_end)
Get select elements |
void |
setBackground(org.eclipse.swt.graphics.Color color)
|
void |
setContentProvider(IContentProvider contentProvider)
Set content provider |
void |
setCursor(org.eclipse.swt.graphics.Cursor cursor)
|
void |
setDisplayRuler(boolean displayRuler)
Show ruler |
void |
setFontSize(int fontSize)
|
void |
setFontSizeBigger()
|
void |
setFontSizeSmaller()
|
void |
setForeground(org.eclipse.swt.graphics.Color color)
|
void |
setIconSize(int e_width,
int e_height)
Set icon size |
void |
setIconSpace(int e_spacing_x,
int e_spacing_y)
Set icon spacing |
void |
setImageProvider(IImageProvider imageProvider)
Set image provider |
void |
setKeyBinding(int key,
int action)
Set key |
void |
setSelectionColor(int colorIndex)
Set selection color |
void |
setSelectionSize(int size)
Set selection size |
void |
setShowTooltip(boolean show)
|
void |
setTooltip(boolean showAllTime,
long timeout,
boolean isWrap)
Set tooltip setting |
void |
setToolTipProvider(IToolTipProvider toolTipProvider)
Set tooltip provider |
void |
setTooltipTimeout(long timeout)
Set tooltip timeout |
void |
setTooltipWrap(boolean isWrap)
Set tooltip content displaying |
void |
setTotal(int total)
Get totla elements |
protected void |
setVerticalScrollBar(org.eclipse.swt.widgets.ScrollBar verticalBar)
Set vertical scrollbar |
protected boolean |
setVerticalScrollOffset(int pixelOffset,
boolean adjustScrollBar)
Set vertical scrollbar offset |
protected void |
showToolTip(int index,
boolean showExtra)
|
protected void |
showToolTip(int index,
org.eclipse.swt.widgets.Event event)
Show tooltip |
void |
showTooltipAllthetime(boolean isAll)
Set tooltip to show all the time |
void |
unselectAllElements()
unselect all elements |
void |
unselectElement(int index)
unselect element |
void |
unselectElements(int from_index,
int to_index)
|
| Methods inherited from class org.eclipse.swt.widgets.Canvas |
|---|
drawBackground, getCaret, getIME, scroll, setCaret, setFont, setIME |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isTouchEnabled, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackgroundImage, setBounds, setBounds, setCapture, setDragDetect, setEnabled, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setTouchEventsEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, 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 SE
public static final int SW
public static final int NW
public static final int NE
protected org.eclipse.core.runtime.ListenerList actionListeners
protected IToolTipProvider toolTipProvider
protected IImageProvider imageProvider
protected IContentProvider contentProvider
protected int e_offset_x
protected int e_offset_y
protected int e_spacing_x
protected int e_spacing_y
protected int e_width
protected int e_height
protected int max_e_row
protected int max_e_col
protected Hashtable<Integer,Integer> keyActionMap
protected org.eclipse.swt.widgets.Listener listener
protected boolean mouseDown
protected boolean mouseDoubleClick
protected int firstSelectedIndex
protected int secondSelectedIndex
protected BitSet selectedElements
protected BitSet tempSelectedElements
protected int sel_size
protected final int sel_length
protected final int sel_gap
protected org.eclipse.swt.graphics.Color sel_color
protected org.eclipse.swt.graphics.Point selection
protected org.eclipse.swt.graphics.Point movingSelectionStart
protected org.eclipse.swt.graphics.Point movingSelectionEnd
protected int current_top_row
protected int actualScrollStart_y
protected int autoScrollDirection
protected int verticalScrollOffset
protected org.eclipse.swt.graphics.Cursor defaultCursor
protected org.eclipse.swt.graphics.Color background
protected org.eclipse.swt.graphics.Color foreground
protected final int DEFAULT_FONT_SIZE
protected int font_size
protected final int margin_text
protected org.eclipse.swt.graphics.Color margin_color
protected boolean displayRuler
protected IIconInformationControl fInformationControl
protected long tooltip_timeout
protected boolean show_tooltip_allthetime
protected boolean tooltip_wrap
protected boolean show_tooltip
protected int total_elements
| Constructor Detail |
|---|
public IconCanvas(org.eclipse.swt.widgets.Composite parent,
int style)
parent - style - composite style| Method Detail |
|---|
public void dispose()
dispose in class org.eclipse.swt.widgets.Widgetpublic void addActionListener(IIconCanvasActionListener actionListener)
actionListener - public void removeActionListener(IIconCanvasActionListener actionListener)
actionListener - protected void fireAction(int type)
type - type of action
protected void fireAction(int type,
int index)
type - type of actionindex - element indexpublic void resetCanvas()
public IToolTipProvider getToolTipProvider()
public void setToolTipProvider(IToolTipProvider toolTipProvider)
toolTipProvider - public void setShowTooltip(boolean show)
public IImageProvider getImageProvider()
public void setImageProvider(IImageProvider imageProvider)
imageProvider - public IContentProvider getContentProvider()
public void setContentProvider(IContentProvider contentProvider)
contentProvider - public void setTotal(int total)
total - total elementspublic void setFontSizeSmaller()
public void setFontSizeBigger()
public void setFontSize(int fontSize)
public void setIconSpace(int e_spacing_x,
int e_spacing_y)
e_spacing_x - e_spacing_y -
public void setIconSize(int e_width,
int e_height)
e_width - e_height -
public void setTooltip(boolean showAllTime,
long timeout,
boolean isWrap)
showAllTime - timeout - isWrap - public void setTooltipTimeout(long timeout)
timeout - public void showTooltipAllthetime(boolean isAll)
isAll - public void setTooltipWrap(boolean isWrap)
isWrap - public int getTotalElements()
public void setSelectionSize(int size)
size - public void setSelectionColor(int colorIndex)
colorIndex - public void setDisplayRuler(boolean displayRuler)
displayRuler - public boolean isDisplayRuler()
public org.eclipse.swt.graphics.Color getBackground()
getBackground in class org.eclipse.swt.widgets.Controlpublic void setBackground(org.eclipse.swt.graphics.Color color)
setBackground in class org.eclipse.swt.widgets.Controlpublic org.eclipse.swt.graphics.Color getForeground()
getForeground in class org.eclipse.swt.widgets.Controlpublic void setForeground(org.eclipse.swt.graphics.Color color)
setForeground in class org.eclipse.swt.widgets.Controlprotected int getElementHeight()
protected int getElementWidth()
protected int getMaxCol()
protected int getMaxClientRow()
protected int getMaxRow()
protected int getMaxHeight()
protected int getVerticalIncrement()
protected void calculateVerticalScrollBar()
protected void setVerticalScrollBar(org.eclipse.swt.widgets.ScrollBar verticalBar)
verticalBar - protected boolean claimBottomFreeSpace()
protected int getCurrentTopRow()
public int getKeyBinding(int key)
key - unique key
public void setKeyBinding(int key,
int action)
key - unique keyaction - keyboard key IDprotected void createKeyBindings()
public void invokeAction(int action)
action - action IDprotected void initializeAccessible()
protected void installListeners()
protected void handleKey(org.eclipse.swt.widgets.Event event)
event - protected boolean isReachTop()
protected boolean isReachBottom()
protected void doAutoScroll(int x_loc,
int y_loc)
x_loc - y_loc -
protected void doAutoScroll(int direction,
int distance,
int x_loc,
int y_loc)
direction - distance - x_loc - y_loc - protected void doSelectionPageUp(int distance)
distance - protected void doSelectionPageDown(int distance)
distance -
protected void doSelectionPageUp(int distance,
int x_loc,
int y_loc,
boolean isSelect)
distance - x_loc - y_loc - isSelect -
protected void doSelectionPageDown(int distance,
int x_loc,
int y_loc,
boolean isSelect)
distance - x_loc - y_loc - isSelect - protected void doDelete()
protected void doCopy()
protected void doCut()
protected void doPaste()
protected void doPageUp(int rows)
rows - number of row to page upprotected void doPageDown(int rows)
rows - number of row to page downprotected void doUp(boolean isSelect)
isSelect - true if element is selectedprotected void doDown(boolean isSelect)
isSelect - true if element is selectedprotected void doPrevious(boolean isSelect)
isSelect - true if element is selectedprotected void doNext(boolean isSelect)
isSelect - true if element is selectedprotected void doLineStart(boolean isSelect)
isSelect - true if element is selectedprotected void doLineEnd(boolean isSelect)
isSelect - true if element is selectedprotected void doSelectionAll()
protected boolean setVerticalScrollOffset(int pixelOffset,
boolean adjustScrollBar)
pixelOffset - adjustScrollBar -
protected void endAutoScroll()
protected void calculateTopIndex()
protected int getSelectedCol(int x_loc,
boolean isApproximate)
x_loc - isApproximate -
protected int getSelectedRow(int y_loc,
boolean isApproximate)
y_loc - isApproximate -
protected int findSelectedIndex(int row,
int col)
row - col -
protected int findSelectedIndexByLocation(int loc_x,
int loc_y,
boolean isApproximate)
loc_x - loc_y - isApproximate - true if searching is approximate
protected org.eclipse.swt.graphics.Point findSection(int index)
index - element index
protected org.eclipse.swt.graphics.Point findLocation(int index)
index - element index
protected int getDirection(int s_x,
int s_y,
int e_x,
int e_y)
s_x - s_y - e_x - e_y -
protected BitSet selectElements(int col_start,
int col_end,
int row_start,
int row_end)
col_start - col_end - row_start - row_end -
protected void doMouseSelection(int mouse_start_x,
int mouse_start_y,
int mouse_end_x,
int mouse_end_y,
boolean isScrolling)
mouse_start_x - mouse_start_y - mouse_end_x - mouse_end_y - isScrolling -
protected void redrawByLocation(int d_sx,
int d_ex,
int d_sy,
int d_ey,
int direction,
boolean isScrolling)
d_sx - d_ex - d_sy - d_ey - direction - isScrolling -
protected void redrawByIndex(int col_start,
int col_end,
int row_start,
int row_end,
int direction,
boolean isScrolling)
col_start - col_end - row_start - row_end - direction - isScrolling -
protected void redraw(int start_index,
int end_index)
start_index - end_index -
protected boolean canSelectElements(int start_index,
int end_index,
boolean checkStatus)
start_index - end_index - checkStatus -
public void unselectAllElements()
public void autoSelectUnselectElement(int index)
index - Element indexpublic boolean isSelected(int index)
index -
public void unselectElement(int index)
index - Target element indexpublic void selectElement(int index)
index -
public void selectElements(int from_index,
int to_index)
from_index - to_index -
public void selectElements(int from_index,
int to_index,
boolean checkStatus)
from_index - to_index - checkStatus -
public void unselectElements(int from_index,
int to_index)
protected void performPaint(org.eclipse.swt.graphics.GC gc,
int col_start,
int col_end,
int row_start,
int row_end,
int render_x,
int render_y,
int renderWidth,
int renderHeight)
gc - col_start - col_end - row_start - row_end - render_x - render_y - renderWidth - renderHeight -
protected void drawIndex(org.eclipse.swt.graphics.GC gc,
Object obj,
int index,
int y_loc)
gc - obj - index - y_loc -
protected void drawImage(org.eclipse.swt.graphics.GC gc,
Object obj,
int index,
int x_loc,
int y_loc,
boolean isSelected)
gc - obj - x_loc - y_loc - isSelected -
protected void clearMargin(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Color background)
gc - background - public org.eclipse.swt.graphics.GC getGC()
protected org.eclipse.swt.graphics.GC getGC(int style)
style -
public void setCursor(org.eclipse.swt.graphics.Cursor cursor)
setCursor in class org.eclipse.swt.widgets.Controlprotected void doMouseMoving(org.eclipse.swt.widgets.Event event)
event - protected void hideToolTip()
protected void disableTooltipTimer()
protected void enableTooltipTimer()
protected void resetInfo()
protected void handleDispose(org.eclipse.swt.widgets.Event event)
event - protected void handleKeyDown(org.eclipse.swt.widgets.Event event)
event - protected void handleKeyUp(org.eclipse.swt.widgets.Event event)
event - protected void handleMouseDown(org.eclipse.swt.widgets.Event event)
event - protected void handleMouseUp(org.eclipse.swt.widgets.Event event)
event - protected void handleMouseDoubleClick(org.eclipse.swt.widgets.Event event)
event - protected void handleMouseHover(org.eclipse.swt.widgets.Event event)
protected void handleMouseMove(org.eclipse.swt.widgets.Event event)
event - protected void handlePaint(org.eclipse.swt.widgets.Event event)
event - protected void handleResize(org.eclipse.swt.widgets.Event event)
event - protected void handleFocusOut(org.eclipse.swt.widgets.Event event)
event -
protected void showToolTip(int index,
org.eclipse.swt.widgets.Event event)
index - Target element indexevent - mouse move event
protected void showToolTip(int index,
boolean showExtra)
protected org.eclipse.swt.graphics.Point getViewActualLocation(org.eclipse.swt.widgets.Control from,
org.eclipse.swt.widgets.Control to,
int mx,
int my)
from - to - mx - my -
public int[] getSelectedIndexes()
protected String[] getToolTipText(Object obj)
obj -
protected Object getObject(int index)
index - element index
protected org.eclipse.swt.graphics.Image getStatusIcon(Object obj,
int index,
boolean isSelected)
obj - index - target index positionisSelected - true if element is selected
protected void drawSpecial(Object obj,
int index,
org.eclipse.swt.graphics.GC gc,
int x_loc,
int y_loc,
int width,
int height)
obj - gc - x_loc - y_loc - width - height - protected IIconInformationControl getInformationControl(boolean showDetails)
showDetails -
protected void handleInformationControlDisposed()
public static void main(String[] args)
|
PTP Release 5.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||