Package org.eclipse.draw2d.text
Class FlowAdapter
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.draw2d.text.FlowFigure
org.eclipse.draw2d.text.FlowAdapter
- All Implemented Interfaces:
- IFigure
Adapts non-flow figures for use within a parent hierarchy requiring flow
 figures. Normal draw2d figures can be added as children. If a normal
 LayoutManager is set, the children will be positioned by that layout manager.
 The size of this figure within the flow will be determined by its preferred
 size.
 
WARNING: This class is not intended to be subclassed by clients.
- Since:
- 3.1
- 
Nested Class SummaryNested classes/interfaces inherited from class org.eclipse.draw2d.FigureFigure.FigureIterator, Figure.IdentitySearch, Figure.ReverseFigureChildrenIteratorNested classes/interfaces inherited from interface org.eclipse.draw2d.IFigureIFigure.NoInsets
- 
Field SummaryFields inherited from class org.eclipse.draw2d.text.FlowFigureselectionStartFields inherited from class org.eclipse.draw2d.FigurebgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipFields inherited from interface org.eclipse.draw2d.IFigureMAX_DIMENSION, MIN_DIMENSION, NO_INSETS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcontributeBidi(BidiProcessor proc) This FlowFigure contributes an Object Replacement Character.protected FlowFigureLayoutCreates the default layout managerprotected voidlayout()Sizes the content box to be big enough to display all figures.voidUpdates the bounds of this figure to match that of its content box, and lays out this figure's children.voidsetBidiInfo(BidiInfo info) Sets the bidi level of the content box associated with this FigurevoidFlowFigures override setBounds() to prevent translation of children.voidsetFlowContext(FlowContext flowContext) Sets the flow context.voidvalidate()Do not validate children.Methods inherited from class org.eclipse.draw2d.text.FlowFigureadd, addLeadingWordRequirements, remove, revalidateBidi, setSelectionMethods inherited from class org.eclipse.draw2d.Figureadd, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, containsPoint, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getChildrenRevIterable, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, 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, handleMouseWheelScrolled, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, optimizeClip, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinates
- 
Constructor Details- 
FlowAdapterpublic FlowAdapter()
 
- 
- 
Method Details- 
contributeBidiThis FlowFigure contributes an Object Replacement Character.- Overrides:
- contributeBidiin class- FlowFigure
- Parameters:
- proc- the BidiProcessor to which contributions should be made
- See Also:
 
- 
createDefaultFlowLayoutDescription copied from class:FlowFigureCreates the default layout manager- Specified by:
- createDefaultFlowLayoutin class- FlowFigure
- Returns:
- null
- See Also:
 
- 
layoutprotected void layout()Sizes the content box to be big enough to display all figures. Wraps to the next line if there is not enough room on the current one.
- 
postValidatepublic void postValidate()Updates the bounds of this figure to match that of its content box, and lays out this figure's children.- Specified by:
- postValidatein class- FlowFigure
- See Also:
 
- 
setBidiInfoSets the bidi level of the content box associated with this Figure- Overrides:
- setBidiInfoin class- FlowFigure
- Parameters:
- info- the BidiInfo for this figure
- See Also:
 
- 
setBoundsDescription copied from class:FlowFigureFlowFigures override setBounds() to prevent translation of children. "bounds" is a derived property for FlowFigures, calculated from the fragments that make up the FlowFigure.- Specified by:
- setBoundsin interface- IFigure
- Overrides:
- setBoundsin class- FlowFigure
- Parameters:
- rect- The new bounds
- See Also:
 
- 
setFlowContextDescription copied from class:FlowFigureSets the flow context.- Overrides:
- setFlowContextin class- FlowFigure
- Parameters:
- flowContext- the flow context for this flow figure
- See Also:
 
- 
validatepublic void validate()Do not validate children.
 
-