| java.lang.Object org.openlaszlo.iv.flash.api.FlashItem org.openlaszlo.iv.flash.api.text.TextRecord
TextRecord | public TextRecord()(Code) | | |
TextRecord | public TextRecord(int maxSize)(Code) | | Creates text record of zero size and of specified capacity
Parameters: maxSize - capacity of created text record |
add | public void add(int index, int advance)(Code) | | Adds new index and advance value.
Does not check for overflow.
Parameters: index - new index to be added Parameters: advance - new advance value to be added |
add | public void add(char ch, int index, int advance)(Code) | | Adds new character, index and advance value.
Does not check for overflow.
Parameters: ch - new character to be added Parameters: index - new index to be added Parameters: advance - new advance value to be added |
getAdvance | public int getAdvance(int i)(Code) | | Returns advance value at specified index
Parameters: i - index of the advance value to be returned advance value at specified index |
getAdvances | public int[] getAdvances()(Code) | | |
getChar | public char getChar(int i)(Code) | | Returns character at specified index
Parameters: i - index of the character to be returned character at specified index |
getIndex | public int getIndex(int i)(Code) | | Returns character's index at specified index
Parameters: i - index of the character's index to be returned character's index at specified index |
getIndexes | public int[] getIndexes()(Code) | | |
getMaxAdvance | public int getMaxAdvance()(Code) | | Returns maximum advance value
maximum advance value |
getMaxIndex | public int getMaxIndex()(Code) | | Returns maximum index
maximum index |
getSize | public int getSize()(Code) | | Returns size of the text
size of the text |
getText | public char[] getText()(Code) | | |
getWidth | public int getWidth()(Code) | | Returns width of the text in twixels
width of the text in twixels |
setAdvance | public void setAdvance(int i, int advance)(Code) | | Sets new advance value at specified index
Parameters: i - index of the advance value to be set Parameters: ch - advance value to be set |
setChar | public void setChar(int i, char ch)(Code) | | Sets new character at specified index
Parameters: i - index of the character to be set Parameters: ch - character to be set |
setIndex | public void setIndex(int i, int index)(Code) | | Sets new character's index at specified index
Parameters: i - index of the character's index to be set Parameters: index - character's index to be set |
setSize | public void setSize(int size)(Code) | | Sets new size of the text
Parameters: size - new size of the text |
trimEnd | public int trimEnd()(Code) | | Trims this record from the end
Removes all spaces from the end
width in twixels of all removed spaces |
trimStart | public int trimStart()(Code) | | Trims this record from the start
Removes all spaces from the start
width in twixels of all removed spaces |
updateIndexes | public void updateIndexes(Font font)(Code) | | Updates indexes of this record from specified font
Parameters: font - font to update from |
write | public void write(FlashOutput fob)(Code) | | Writes this text record to flash buffer.
Expects two-element integer array in userdata of flashbuffer.
First element is number of glyph bits and second - number of
advance value bits.
Parameters: fob - flashbuffer to write to |
|
|