|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.text.CaretInfo
Stores positional information about where a caret should be placed. This structure currently only offers integer precision. Scaling operations will result in rounding.
Constructor Summary | |
protected |
CaretInfo(int x,
int y,
int ascent,
int descent,
int lineAscent,
int lineDescent)
Constructor for use by TextFlow. |
Method Summary | |
int |
getBaseline()
Returns the y location of the baseline. |
int |
getHeight()
Returns the total height of the caret. |
int |
getLineHeight()
|
int |
getLineY()
|
int |
getX()
Returns the x location of the caret. |
int |
getY()
Returns the y location of the caret. |
void |
performScale(double factor)
Scales this object by the scale factor. |
void |
performTranslate(int dx,
int dy)
Translates this object horizontally by dx and vertically by
dy . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CaretInfo(int x, int y, int ascent, int descent, int lineAscent, int lineDescent)
WARNING: This constructor should not be called by clients. It is for use by
TextFlow
, and may change in future releases.
x
- the x locationy
- the y location of the top of the caretascent
- the ascentdescent
- the descentlineAscent
- the ascent of the line on which the caret is placedlineDescent
- the descent of the line on which the caret is placedMethod Detail |
public int getBaseline()
public int getHeight()
public int getLineHeight()
public int getLineY()
public int getX()
public int getY()
public void performScale(double factor)
Translatable
performScale
in interface Translatable
factor
- The scale factorTranslatable.performScale(double)
public void performTranslate(int dx, int dy)
Translatable
dx
and vertically by
dy
.
performTranslate
in interface Translatable
dx
- The amount to translate horizontallydy
- The amount to translate verticallyTranslatable.performTranslate(int, int)
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |