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 Summary
Modifier and TypeMethodDescriptionboolean
containsPoint
(int x, int y) This method must be called on a block that is completely positioned and committed.int
Returns y coordinate for the box's baseline.int
Returns the outer ascent of this box.int
Returns the outer descent of this box.void
setLineTop
(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.LineBox
add, getAscent, getDescent, isOccupied, requiresBidi
Methods inherited from class org.eclipse.draw2d.text.CompositeBox
getRecommendedWidth, setRecommendedWidth
-
Method Details
-
containsPoint
public boolean containsPoint(int x, int y) Description copied from class:FlowBox
This method must be called on a block that is completely positioned and committed.- Specified by:
containsPoint
in classFlowBox
- Parameters:
x
- Xy
- Y- Returns:
true
if the FlowBox contains the point- See Also:
-
getBaseline
public int getBaseline()Description copied from class:FlowBox
Returns y coordinate for the box's baseline.- Specified by:
getBaseline
in classFlowBox
- Returns:
- the baseline location
- See Also:
-
getOuterAscent
public 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
-
getOuterDescent
public 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
-
setLineTop
public void setLineTop(int top) Description copied from class:CompositeBox
Positions the box vertically by setting the y coordinate for the top of the content of the line. For internal use only.- Specified by:
setLineTop
in classCompositeBox
- Parameters:
top
- the y coordinate- See Also:
-