public class SimpleToolItemRenderer extends AbstractToolItemRenderer
DEFAULT, MIN
Constructor | Description |
---|---|
SimpleToolItemRenderer() |
Modifier and Type | Method | Description |
---|---|---|
org.eclipse.swt.graphics.Rectangle |
computeDropDownArea(org.eclipse.swt.graphics.Rectangle totalRect) |
Computes the area where the DropDown-Icon is shown in case of
SWT.DROP_DOWN |
org.eclipse.swt.graphics.Point |
computeSize(org.eclipse.swt.graphics.GC gc,
PGroupToolItem item,
int type) |
Computes the size needed for the toolitem
|
void |
paint(org.eclipse.swt.graphics.GC gc,
java.lang.Object value) |
getBounds, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSize
getSizeType, setSizeType
public void paint(org.eclipse.swt.graphics.GC gc, java.lang.Object value)
paint
in class AbstractToolItemRenderer
public org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.graphics.GC gc, PGroupToolItem item, int type)
AbstractToolItemRenderer
computeSize
in class AbstractToolItemRenderer
gc
- the gcitem
- the toolitemtype
- size typeAbstractToolItemRenderer.DEFAULT
,
AbstractToolItemRenderer.MIN
public org.eclipse.swt.graphics.Rectangle computeDropDownArea(org.eclipse.swt.graphics.Rectangle totalRect)
AbstractToolItemRenderer
SWT.DROP_DOWN
computeDropDownArea
in class AbstractToolItemRenderer
totalRect
- the total area the item is drawn