| java.lang.Object org.apache.harmony.awt.gl.font.TextRunSegment
TextRunSegment | abstract public class TextRunSegment implements Cloneable(Code) | | Abstract class which represents the segment of the text with constant attributes
running in one direction (i.e. constant level).
|
charHasZeroAdvance | abstract boolean charHasZeroAdvance(int index)(Code) | | Checks if the character doesn't contribute to the text advance
Parameters: index - - character index true if the character has zero advance |
doJustification | abstract float doJustification(TextRunBreaker.JustificationInfo jInfos)(Code) | | Performs justification of the segment.
Updates positions of individual characters.
Parameters: jInfos - - justification information, gathered by the previous passes amount of growth or shrink of the segment |
draw | abstract void draw(Graphics2D g2d, float xOffset, float yOffset)(Code) | | Renders this text run segment
Parameters: g2d - - graphics to render to Parameters: xOffset - - X offset from the graphics origin to theorigin of the text layout Parameters: yOffset - - Y offset from the graphics origin to theorigin of the text layout |
getAdvance | abstract float getAdvance()(Code) | | Calculates advance of the segment
advance |
getAdvanceDelta | abstract float getAdvanceDelta(int start, int end)(Code) | | Calculates advance delta between two characters
Parameters: start - - 1st position Parameters: end - - 2nd position advance increment between specified positions |
getCharAdvance | abstract float getCharAdvance(int index)(Code) | | Returns the advance of the individual character
Parameters: index - - character index character advance |
getCharIndexFromAdvance | abstract int getCharIndexFromAdvance(float advance, int start)(Code) | | Calculates index of the character which advance is equal to
the given. If the given advance is greater then the segment
advance it returns the position after the last character.
Parameters: advance - - given advance Parameters: start - - character, from which to start measuring advance character index |
getCharPosition | abstract float getCharPosition(int index)(Code) | | Calculates position of the character on the screen
Parameters: index - - character index X coordinate of the character position |
getCharsBlackBoxBounds | abstract Shape getCharsBlackBoxBounds(int start, int limit)(Code) | | Creates black box bounds shape for the specified range
Parameters: start - - range sart Parameters: limit - - range end black box bounds shape |
getEnd | abstract int getEnd()(Code) | | Returns end index of the segment
end index |
getLength | abstract int getLength()(Code) | | Returns the number of characters in the segment
number of characters |
getLogicalBounds | abstract Rectangle2D getLogicalBounds()(Code) | | Returns logical bounds of this segment
logical bounds |
getOutline | abstract Shape getOutline()(Code) | | Returns the outline shape
outline |
getStart | abstract int getStart()(Code) | | Returns start index of the segment
start index |
getVisualBounds | abstract Rectangle2D getVisualBounds()(Code) | | Returns visual bounds of this segment
visual bounds |
hitTest | abstract TextHitInfo hitTest(float x, float y)(Code) | | Creates text hit info from the hit position
Parameters: x - - X coordinate relative to the origin of the layout Parameters: y - - Y coordinate relative to the origin of the layout hit info |
updateJustificationInfo | abstract void updateJustificationInfo(TextRunBreaker.JustificationInfo jInfo)(Code) | | Collects justification information into JustificationInfo object
Parameters: jInfo - - JustificationInfo object |
|
|