Package org.eclipse.draw2d.text
Class InlineFlow
java.lang.Object
org.eclipse.draw2d.Figure
org.eclipse.draw2d.text.FlowFigure
org.eclipse.draw2d.text.InlineFlow
- All Implemented Interfaces:
- IFigure
- Direct Known Subclasses:
- TextFlow
A 
FlowFigure represented by multiple LineBox
 fragments. An InlineFlow's parent must be either a
 BlockFlow or another InlineFlow.
 An InlineFlow may contain other InlineFlow figures.
WARNING: This class is not intended to be subclassed by clients.
- Since:
- 2.0
- 
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 TypeMethodDescriptionbooleanaddLeadingWordRequirements(int[] width) Iterates over the children to find the width before a line-break is encountered.booleancontainsPoint(int x, int y) Extended to return false if the point is not also contained by at least one fragment.protected FlowFigureLayoutCreates the default layout managerReturns theFlowBoxfragments contained in this InlineFlow.protected voidpaintBorder(Graphics graphics) Overridden to paint aFlowBorderif present, and draw selection.protected voidpaintSelection(Graphics graphics) Renders the XOR selection rectangles to the graphics.voidCalled after validate has occurred.voidOverridden to assert that onlyFlowBorderis used.Methods inherited from class org.eclipse.draw2d.text.FlowFigureadd, contributeBidi, remove, revalidateBidi, setBidiInfo, setBounds, setFlowContext, setSelectionMethods inherited from class org.eclipse.draw2d.Figureadd, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, 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, layout, optimizeClip, paint, paintChildren, paintClientArea, paintFigure, primTranslate, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, 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, validate
- 
Constructor Details- 
InlineFlowpublic InlineFlow()
 
- 
- 
Method Details- 
addLeadingWordRequirementspublic boolean addLeadingWordRequirements(int[] width) Iterates over the children to find the width before a line-break is encountered.- Overrides:
- addLeadingWordRequirementsin class- FlowFigure
- Parameters:
- width- the width before the next line-break (if one's found; all the width, otherwise) will be added on to the first int in the given array
- Returns:
- boolean indicating whether or not a line-break was found
- See Also:
 
- 
containsPointpublic boolean containsPoint(int x, int y) Extended to return false if the point is not also contained by at least one fragment.- Specified by:
- containsPointin interface- IFigure
- Overrides:
- containsPointin class- Figure
- Parameters:
- x- the relative x coordinate
- y- the relative y coordinate
- Returns:
- trueif a fragment contains the given point
- See Also:
 
- 
createDefaultFlowLayoutDescription copied from class:FlowFigureCreates the default layout manager- Specified by:
- createDefaultFlowLayoutin class- FlowFigure
- Returns:
- The default layout
- See Also:
 
- 
getFragmentsReturns theFlowBoxfragments contained in this InlineFlow. The returned list should not be modified.- Returns:
- The fragments
 
- 
paintBorderOverridden to paint aFlowBorderif present, and draw selection. The border is painted first, followed by selection which is generally done in XOR, which still allows the border to be seen.- Overrides:
- paintBorderin class- Figure
- Parameters:
- graphics- the graphics
- See Also:
 
- 
paintSelectionRenders the XOR selection rectangles to the graphics.- Parameters:
- graphics- the graphics to paint on
- Since:
- 3.1
 
- 
postValidatepublic void postValidate()Description copied from class:FlowFigureCalled after validate has occurred. This is used to update the bounds of the FlowFigure to encompass its new flow boxed created during validate.- Specified by:
- postValidatein class- FlowFigure
- See Also:
 
- 
setBorderOverridden to assert that onlyFlowBorderis used.nullis still a valid value as well.
 
-