public class OverlayLabel
extends org.eclipse.swt.custom.CLabel
Modifier and Type | Field and Description |
---|---|
Object |
associatedObject |
Modifier and Type | Method and Description |
---|---|
static OverlayLabel |
create(Object associatedObject)
Create overlay label
|
org.eclipse.swt.widgets.Menu |
createPopupMenu()
Create popup menu.
|
void |
dispose() |
static OverlayLabel[] |
getLabelsAtPosition(org.eclipse.swt.graphics.Point position)
Get all
OverlayLabel at the specified position |
String |
getMenuText() |
static String |
getOwnerId() |
static void |
removeAll()
Remove all label from the overlay window for overlay labels.
|
static void |
removeAll(boolean force)
Remove all label from the overlay window for overlay labels.
|
static void |
setOwnerId(String id)
Set ID of the owner view.
|
void |
setTooltop(String text,
String[][] properties)
Set the tooltip text of the label.
|
computeSize, getAlignment, getBottomMargin, getImage, getLeftMargin, getRightMargin, getStyle, getText, getToolTipText, getTopMargin, setAlignment, setBackground, setBackground, setBackground, setBackground, setBottomMargin, setFont, setImage, setLeftMargin, setMargins, setRightMargin, setText, setToolTipText, setTopMargin
drawBackground, getCaret, getIME, scroll, setCaret, setIME
changed, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, 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, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
public Object associatedObject
public static void removeAll()
public static void removeAll(boolean force)
force
- whether remove without synchronize or not.public static OverlayLabel create(Object associatedObject)
associatedObject
- the content of the label.public static OverlayLabel[] getLabelsAtPosition(org.eclipse.swt.graphics.Point position)
OverlayLabel
at the specified positionposition
- the target positionpublic org.eclipse.swt.widgets.Menu createPopupMenu()
public void dispose()
dispose
in class org.eclipse.swt.widgets.Widget
public static String getOwnerId()
public static void setOwnerId(String id)
the
- id of the owner view.public void setTooltop(String text, String[][] properties)
text
- the tooltip textproperties
- the set of property names and values. [0]=name, [1]=value.public String getMenuText()