public class SimpleToolItemRenderer extends AbstractToolItemRenderer
DEFAULT, MIN| Constructor and Description |
|---|
SimpleToolItemRenderer() |
| Modifier and Type | Method and 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) |
getSizeType, setSizeTypegetBounds, getSize, isExpanded, isFocus, isHover, isMouseDown, isSelected, setBounds, setBounds, setExpanded, setFocus, setHover, setLocation, setLocation, setMouseDown, setSelected, setSize, setSizepublic void paint(org.eclipse.swt.graphics.GC gc,
java.lang.Object value)
paint in class AbstractToolItemRendererpublic org.eclipse.swt.graphics.Point computeSize(org.eclipse.swt.graphics.GC gc,
PGroupToolItem item,
int type)
AbstractToolItemRenderercomputeSize in class AbstractToolItemRenderergc - the gcitem - the toolitemtype - size typeAbstractToolItemRenderer.DEFAULT,
AbstractToolItemRenderer.MINpublic org.eclipse.swt.graphics.Rectangle computeDropDownArea(org.eclipse.swt.graphics.Rectangle totalRect)
AbstractToolItemRendererSWT.DROP_DOWNcomputeDropDownArea in class AbstractToolItemRenderertotalRect - the total area the item is drawn