public class LineRoot extends LineBox
fragments
know of the LineRoot
they belong to.Constructor and Description |
---|
LineRoot(boolean isMirrored)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
add(FlowBox child)
Adds the given box and updates properties of this composite box.
|
void |
commit()
Committing a LineRoot will position its children correctly.
|
boolean |
containsPoint(int x,
int y)
A LineRoot cannot be targetted.
|
int |
getBaseline()
Returns y coordinate for the box's baseline.
|
void |
setBaseline(int baseline)
Positions the line vertically by settings its baseline.
|
void |
setLineTop(int top)
Positions the box vertically by setting the y coordinate for the top of
the content of the line.
|
getAscent, getDescent, isOccupied, requiresBidi
getRecommendedWidth, setRecommendedWidth
public LineRoot(boolean isMirrored)
isMirrored
- true
if the line is to be displayed in a mirrored
controlpublic void add(FlowBox child)
CompositeBox
add
in class LineBox
child
- the child being addedCompositeBox.add(org.eclipse.draw2d.text.FlowBox)
public void commit()
public boolean containsPoint(int x, int y)
containsPoint
in class FlowBox
x
- Xy
- Ytrue
if the FlowBox contains the pointFlowBox.containsPoint(int, int)
public int getBaseline()
FlowBox
getBaseline
in class FlowBox
FlowBox.getBaseline()
public void setBaseline(int baseline)
baseline
- the baselinepublic void setLineTop(int top)
CompositeBox
setLineTop
in class CompositeBox
top
- the y coordinateCompositeBox.setLineTop(int)
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.