Package org.eclipse.draw2d.text
Class NestedLine
java.lang.Object
org.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.CompositeBox
org.eclipse.draw2d.text.LineBox
org.eclipse.draw2d.text.NestedLine
- Since:
- 3.1
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainsPoint(int x, int y) This method must be called on a block that is completely positioned and committed.intReturns y coordinate for the box's baseline.intReturns the outer ascent of this box.intReturns the outer descent of this box.voidsetLineTop(int top) Positions the box vertically by setting the y coordinate for the top of the content of the line.Methods inherited from class org.eclipse.draw2d.text.LineBoxadd, getAscent, getDescent, isOccupied, requiresBidiMethods inherited from class org.eclipse.draw2d.text.CompositeBoxgetRecommendedWidth, setRecommendedWidth
- 
Method Details- 
containsPointpublic boolean containsPoint(int x, int y) Description copied from class:FlowBoxThis method must be called on a block that is completely positioned and committed.- Specified by:
- containsPointin class- FlowBox
- Parameters:
- x- X
- y- Y
- Returns:
- trueif the FlowBox contains the point
- See Also:
 
- 
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:
 
- 
getOuterAscentpublic int getOuterAscent()Returns the outer ascent of this box. The outer ascent is the ascent above the baseline including the border size and margin. This is used when adding content into a LineBox. The linebox's own border must be drawn around the children.- Returns:
- the outer ascent of this box
 
- 
getOuterDescentpublic int getOuterDescent()Returns the outer descent of this box. The outer descent is the space below the baseline including the border size and margin. This is used when adding content into a LineBox. The linebox's own border must be drawn around the children.- Returns:
- the outer descent of this box
 
- 
setLineToppublic void setLineTop(int top) Description copied from class:CompositeBoxPositions the box vertically by setting the y coordinate for the top of the content of the line. For internal use only.- Specified by:
- setLineTopin class- CompositeBox
- Parameters:
- top- the y coordinate
- See Also:
 
 
-