oracle.adfnmc.component.ui
Class BBTextWrapAssistant
java.lang.Object
oracle.adfnmc.component.ui.BBTextWrapAssistant
public class BBTextWrapAssistant
- extends java.lang.Object
Method Summary |
static int[] |
getWrappingLocations(net.rim.device.api.ui.Font f,
java.lang.String text,
int availableWidth)
Wraps given text to available width by the given font. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_wrapBoundariesInclusive
protected static int[] m_wrapBoundariesInclusive
m_wrapBoundariesExclusive
protected static int[] m_wrapBoundariesExclusive
lines
protected static int[] lines
lineCount
protected static int lineCount
maxWidth
protected static int maxWidth
minWidth
protected static int minWidth
textLength
protected static int textLength
StayLeftChars
protected static java.lang.String StayLeftChars
GoRightChars
protected static java.lang.String GoRightChars
BBTextWrapAssistant
public BBTextWrapAssistant()
getWrappingLocations
public static int[] getWrappingLocations(net.rim.device.api.ui.Font f,
java.lang.String text,
int availableWidth)
- Wraps given text to available width by the given font. The returned array
is in the following format:
[width | height | 1st index at which to wrap | 2nd index at which to wrap | ... ]
Returns null if the text or font is null.
- Parameters:
f
- text
- availableWidth
-
- Returns:
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.