Class ComboFigure
java.lang.Object
org.eclipse.draw2d.Figure
org.csstudio.opibuilder.widgets.figures.AbstractSWTWidgetFigure<Combo>
org.csstudio.opibuilder.widgets.figures.ComboFigure
- All Implemented Interfaces:
org.eclipse.draw2d.IFigure
Figure for a Combo widget.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.draw2d.Figure
org.eclipse.draw2d.Figure.FigureIterator, org.eclipse.draw2d.Figure.IdentitySearch, org.eclipse.draw2d.Figure.ReverseFigureChildrenIterator
Nested classes/interfaces inherited from interface org.eclipse.draw2d.IFigure
org.eclipse.draw2d.IFigure.NoInsets
-
Field Summary
Fields inherited from class org.csstudio.opibuilder.widgets.figures.AbstractSWTWidgetFigure
editPart, runmode
Fields inherited from class org.eclipse.draw2d.Figure
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
Fields inherited from interface org.eclipse.draw2d.IFigure
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Combo
createSWTWidget
(Composite parent, int style) Create the SWT widget.This method will be call in constructorAbstractSWTWidgetFigure(AbstractBaseEditPart, int)
org.eclipse.draw2d.geometry.Dimension
protected void
layout()
protected void
paintOutlineFigure
(org.eclipse.draw2d.Graphics graphics) Paint an outline figure so it can be viewed in outline view in edit mode.void
Methods inherited from class org.csstudio.opibuilder.widgets.figures.AbstractSWTWidgetFigure
dispose, getBackgroundColor, getForegroundColor, getSWTWidget, paintClientArea, relocateWidget, repaintWidget, setBackgroundColor, setCursor, setEnabled, setFont, setForegroundColor, setVisible
Methods inherited from class org.eclipse.draw2d.Figure
add, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getInsets, getLayoutManager, getListeners, getListenersIterable, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, optimizeClip, paint, paintBorder, paintChildren, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setFlag, setFocusTraversable, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates, validate
-
Constructor Details
-
ComboFigure
-
-
Method Details
-
createSWTWidget
Description copied from class:AbstractSWTWidgetFigure
Create the SWT widget.This method will be call in constructorAbstractSWTWidgetFigure(AbstractBaseEditPart, int)
- Specified by:
createSWTWidget
in classAbstractSWTWidgetFigure<Combo>
- Parameters:
parent
- the parent composite.style
- style of the SWT widget, which is passed from the constructorAbstractSWTWidgetFigure(AbstractBaseEditPart, int)
- Returns:
- the SWT widget.
-
layout
protected void layout()- Overrides:
layout
in classAbstractSWTWidgetFigure<Combo>
-
paintOutlineFigure
protected void paintOutlineFigure(org.eclipse.draw2d.Graphics graphics) Description copied from class:AbstractSWTWidgetFigure
Paint an outline figure so it can be viewed in outline view in edit mode. It is a white filled rectangle with gray border by default. Subclass may override it accordingly.- Overrides:
paintOutlineFigure
in classAbstractSWTWidgetFigure<Combo>
- Parameters:
graphics
- The Graphics used to paint
-
setText
-
getAutoSizeDimension
public org.eclipse.draw2d.geometry.Dimension getAutoSizeDimension()
-