Package org.eclipse.draw2d.text
Class ContentBox
java.lang.Object
org.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.ContentBox
- Direct Known Subclasses:
- TextFragmentBox
FlowBoxes that are leaf nodes.
- Since:
- 3.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintReturns y coordinate for the box's baseline.intbooleanReturnstrueif the bidi level for this box is specified, and is not the default level (0).voidsetBidiLevel(int newLevel) Sets the Bidi level of this fragment.Methods inherited from class org.eclipse.draw2d.text.FlowBoxcontainsPoint, getAscent, getDescent, getWidth, getX, setWidth, setX
- 
Constructor Details- 
ContentBoxpublic ContentBox()
 
- 
- 
Method Details- 
getBaselinepublic int getBaseline()Description copied from class:FlowBoxReturns y coordinate for the box's baseline.- Specified by:
- getBaselinein class- FlowBox
- Returns:
- the baseline location
- See Also:
 
- 
getBidiLevelpublic int getBidiLevel()- Returns:
- the Bidi level of this box, if one has been set; -1 otherwise
- See Also:
 
- 
requiresBidipublic boolean requiresBidi()Returnstrueif the bidi level for this box is specified, and is not the default level (0).- Overrides:
- requiresBidiin class- FlowBox
- Returns:
- trueif the box is bi-directional
- See Also:
 
- 
setBidiLevelpublic void setBidiLevel(int newLevel) Sets the Bidi level of this fragment. It is used to rearrange fragments as defined by the Unicode Bi-directional algorithm. Valid values are -1 (meaning no Bidi level), or any non-negative integer less than 62.- Parameters:
- newLevel- the new BidiLevel
- See Also:
 
 
-