summaryrefslogtreecommitdiff
path: root/java/text
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2006-11-21 14:34:20 +0000
committerRoman Kennke <roman@kennke.org>2006-11-21 14:34:20 +0000
commit03970a6b3aac93b82ebf1fa6f3467e35cf721aeb (patch)
tree2929660c1dee3692b20b9c4e910c64487e90ed97 /java/text
parentc768f6ecd4c053662755ce4f402c8a03edcfce28 (diff)
downloadclasspath-03970a6b3aac93b82ebf1fa6f3467e35cf721aeb.tar.gz
2006-11-21 Roman Kennke <kennke@aicas.com>
* java/awt/text/TextLayout.java (Run): New inner helper class. (length): New field. (naturalBounds): New field. (offset): New field. (runIndices): Removed. This is now encapsulate in a Run object. (runs): Changed to Run[]. (string): Changed to char[]. (totalAdvance): New field. Caches advance value. (TextLayout(String,Font,FontRenderContext)): Change to store string as char[] and run layout as Run[]. Clean out empty run items. (TextLayout(TextLayout,int,int)): Change to store string as char[] and run layout as Run[]. (clone): Call private constructor for maximum efficiency. (determineWhitespace): Adapted to use char[] data. (draw): Adapted to use Run objects. (getAdvance): Cache computed total advance. (getBlackBoxBounds): Adapted to use Run objects. (getCaretInfo): Use natural layout bounds. (getCharacterCount): Return length field. (getLogicalHighlightShape): Adapted to use Run objects. (getNaturalBounds): New helper method. Calculates and returns the natural bounds of this text layout. (getOutline): Adapted to use Run objects. (getStringProperties): Adapted to use char[] data. (getVisibleAdvance): Adapted to use char[] and Run data. (handleJustify): Adapted to use char[] and Run data. (hitTestChar(float,float,Rectangle2D)): Implemented. (hitTestChar(float,float)): Use natural bounds. (setCharIndices): Adapted to use char[] and Run data. (toString): Adapted to use char[] and Run data. * java/text/Bidi.java (requiresBidi): Exclude paragraph separators from bidi-triggers.
Diffstat (limited to 'java/text')
-rw-r--r--java/text/Bidi.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/text/Bidi.java b/java/text/Bidi.java
index 05b10f52d..491f9e36e 100644
--- a/java/text/Bidi.java
+++ b/java/text/Bidi.java
@@ -991,7 +991,8 @@ public final class Bidi
&& dir != Character.DIRECTIONALITY_ARABIC_NUMBER
&& dir != Character.DIRECTIONALITY_COMMON_NUMBER_SEPARATOR
&& dir != Character.DIRECTIONALITY_SEGMENT_SEPARATOR
- && dir != Character.DIRECTIONALITY_WHITESPACE)
+ && dir != Character.DIRECTIONALITY_WHITESPACE
+ && dir != Character.DIRECTIONALITY_PARAGRAPH_SEPARATOR)
return true;
}