Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.component.ui
Class BBTextWrapAssistant

java.lang.Object
  extended by oracle.adfnmc.component.ui.BBTextWrapAssistant

public class BBTextWrapAssistant
extends java.lang.Object


Field Summary
protected static java.lang.String GoRightChars
           
protected static int lineCount
           
protected static int[] lines
           
protected static int[] m_wrapBoundariesExclusive
           
protected static int[] m_wrapBoundariesInclusive
           
protected static int maxWidth
           
protected static int minWidth
           
protected static java.lang.String StayLeftChars
           
protected static int textLength
           
 
Constructor Summary
BBTextWrapAssistant()
           
 
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
 

Field Detail

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
Constructor Detail

BBTextWrapAssistant

public BBTextWrapAssistant()
Method Detail

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:

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.