public class TextSelection.Char extends Object
TextSelection.getSelectionRoot().| Constructor and Description |
|---|
Char(int pos,
int x,
int y,
int w,
int h)
Creates a new Char
|
Char(int pos,
Rectangle bounds)
Creates a new Char
|
| Modifier and Type | Method and Description |
|---|---|
int |
getPosition()
Gets the character position.
|
String |
toString()
Returns a string representation of the object.
|
TextSelection.Char |
translate(int tx,
int ty)
Translates the Char box.
|
public Char(int pos,
Rectangle bounds)
pos - The position of the character.bounds - The bounds of the box, relative to TextSelection.getSelectionRoot()public Char(int pos,
int x,
int y,
int w,
int h)
pos - THe position of the character.x - The x-coord of the box, relative to TextSelection.getSelectionRoot()y - The y-coord of the box, relative to TextSelection.getSelectionRoot()w - The width of the box.h - The height of the box.public int getPosition()
public String toString()
Objectpublic TextSelection.Char translate(int tx, int ty)
tx - Translate x pixels.ty - Translate y pixels