public class CaretInfo extends java.lang.Object implements Translatable
| Modifier | Constructor and Description |
|---|---|
protected |
CaretInfo(CaretInfo info)
Constructs a CaretInfo object by copying the values from another
instance.
|
protected |
CaretInfo(int x,
int y,
int ascent,
int descent,
int lineAscent,
int lineDescent)
Constructor for use by TextFlow.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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 placedprotected CaretInfo(CaretInfo info)
info - the referencepublic int getBaseline()
public int getHeight()
public int getLineHeight()
public int getLineY()
public int getX()
public int getY()
public void performScale(double factor)
TranslatableperformScale in interface Translatablefactor - The scale factorTranslatable.performScale(double)public void performTranslate(int dx,
int dy)
Translatabledx and vertically by
dy.performTranslate in interface Translatabledx - The amount to translate horizontallydy - The amount to translate verticallyTranslatable.performTranslate(int, int)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.