LineBreaker.Result
public
static
class
LineBreaker.Result
extends Object
Holds the result of the line breaking algorithm
.
Summary
Public methods |
int
|
getEndLineHyphenEdit(int lineIndex)
Returns an end hyphen edit for the line.
|
float
|
getLineAscent(int lineIndex)
Returns font ascent of the line in pixels.
|
int
|
getLineBreakOffset(int lineIndex)
Returns character offset of the break for a given line.
|
int
|
getLineCount()
Returns the number of lines in the paragraph.
|
float
|
getLineDescent(int lineIndex)
Returns font descent of the line in pixels.
|
float
|
getLineWidth(int lineIndex)
Returns width of a given line in pixels.
|
int
|
getStartLineHyphenEdit(int lineIndex)
Returns a start hyphen edit for the line.
|
boolean
|
hasLineTab(int lineIndex)
Returns true if the line has a TAB character.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
|
final
void
|
wait()
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted.
|
|
Public methods
getEndLineHyphenEdit
public int getEndLineHyphenEdit (int lineIndex)
Returns an end hyphen edit for the line.
Parameters |
lineIndex |
int : an index of the line. |
Returns |
int |
an end hyphen edit for the line. |
getLineAscent
public float getLineAscent (int lineIndex)
Returns font ascent of the line in pixels.
The units of this value are pixels.
Parameters |
lineIndex |
int : an index of the line.
Value is 0 or greater |
Returns |
float |
an entier font ascent of the line in pixels.
The units of this value are pixels.
{} |
getLineBreakOffset
public int getLineBreakOffset (int lineIndex)
Returns character offset of the break for a given line.
Parameters |
lineIndex |
int : an index of the line.
Value is 0 or greater |
Returns |
int |
the break offset.
Value is 0 or greater |
getLineCount
public int getLineCount ()
Returns the number of lines in the paragraph.
Returns |
int |
number of lines
Value is 0 or greater |
getLineDescent
public float getLineDescent (int lineIndex)
Returns font descent of the line in pixels.
The units of this value are pixels.
Parameters |
lineIndex |
int : an index of the line.
Value is 0 or greater |
Returns |
float |
an entier font descent of the line in pixels.
The units of this value are pixels.
{} |
getLineWidth
public float getLineWidth (int lineIndex)
Returns width of a given line in pixels.
The units of this value are pixels.
Parameters |
lineIndex |
int : an index of the line.
Value is 0 or greater |
Returns |
float |
width of the line in pixels
The units of this value are pixels.
{} |
getStartLineHyphenEdit
public int getStartLineHyphenEdit (int lineIndex)
Returns a start hyphen edit for the line.
Parameters |
lineIndex |
int : an index of the line. |
Returns |
int |
a start hyphen edit for the line. |
hasLineTab
public boolean hasLineTab (int lineIndex)
Returns true if the line has a TAB character.
Parameters |
lineIndex |
int : an index of the line. |
Returns |
boolean |
true if the line has a TAB character |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]