Java Doc for TextLine.java in  » 6.0-JDK-Core » AWT » java » awt » font » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » AWT » java.awt.font 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.font.TextLine

TextLine
final class TextLine (Code)

Inner Class :final static class TextLineMetrics


Constructor Summary
public  TextLine(FontRenderContext frc, TextLineComponent[] components, float[] baselineOffsets, char[] chars, int charsStart, int charsLimit, int[] charLogicalOrder, byte[] charLevels, boolean isDirectionLTR)
    

Method Summary
static  booleanadvanceToFirstFont(AttributedCharacterIterator aci)
     When this returns, the ACI's current position will be at the start of the first run which does NOT contain a GraphicAttribute.
public  booleancaretAtOffsetIsValid(int offset)
    
public  intcharacterCount()
    
static  RectanglecomputePixelBounds(BufferedImage im)
    
public static  TextLineComponent[]createComponentsOnRun(int runStart, int runLimit, char[] chars, int[] charsLtoV, byte[] levels, TextLabelFactory factory, Font font, CoreMetrics cm, FontRenderContext frc, Decoration decorator, TextLineComponent[] components, int numComponents)
     Returns an array in logical order of the TextLineComponents on the text in the given range, with the given attributes.
public static  TextLinecreateLineFromText(char[] chars, StyledParagraph styledParagraph, TextLabelFactory factory, boolean isDirectionLTR, float[] baselineOffsets)
     Create a TextLine from the Font and character data over the range.
public  voiddraw(Graphics2D g2, float x, float y)
    
public static  TextLinefastCreateTextLine(FontRenderContext frc, char[] chars, Font font, CoreMetrics lm, Map attributes)
     Create a TextLine from the text.
public static  floatgetAdvanceBetween(TextLineComponent[] components, int start, int limit)
    
public  floatgetCharAdvance(int logicalIndex)
    
public  floatgetCharAngle(int logicalIndex)
    
public  floatgetCharAscent(int logicalIndex)
    
public  Rectangle2DgetCharBounds(int logicalIndex)
    
public  floatgetCharDescent(int logicalIndex)
    
public  bytegetCharLevel(int logicalIndex)
    
public  floatgetCharLinePosition(int logicalIndex)
    
public  floatgetCharLinePosition(int logicalIndex, boolean leading)
    
public  floatgetCharShift(int logicalIndex)
    
public  intgetCharType(int logicalIndex)
    
public  floatgetCharXPosition(int logicalIndex)
    
public  floatgetCharYPosition(int logicalIndex)
    
public static  TextLineComponent[]getComponents(StyledParagraph styledParagraph, char[] chars, int textStart, int textLimit, int[] charsLtoV, byte[] levels, TextLabelFactory factory)
     Returns an array (in logical order) of the TextLineComponents representing the text.
public  CoreMetricsgetCoreMetricsAt(int logicalIndex)
    
static  FontgetFontAtCurrentPos(AttributedCharacterIterator aci)
    
public  Rectangle2DgetItalicBounds()
    
public  TextLinegetJustifiedLine(float justificationWidth, float justifyRatio, int justStart, int justLimit)
    
 LayoutPathImplgetLayoutPath()
    
public  TextLineMetricsgetMetrics()
    
static  float[]getNormalizedOffsets(float[] baselineOffsets, byte baseline)
    
public  ShapegetOutline(AffineTransform tx)
    
public  RectanglegetPixelBounds(FontRenderContext frc, float x, float y)
    
public  Rectangle2DgetVisualBounds()
     Return the union of the visual bounds of all the components. This incorporates the path.
public  inthashCode()
    
public  booleanisCharLTR(int logicalIndex)
    
public  booleanisCharSpace(int logicalIndex)
    
public  booleanisCharWhitespace(int logicalIndex)
    
public  booleanisDirectionLTR()
    
public  intlogicalToVisual(int logicalIndex)
    
public static  TextLinestandardCreateTextLine(FontRenderContext frc, AttributedCharacterIterator text, char[] chars, float[] baselineOffsets)
     Create a TextLine from the text.
public  StringtoString()
    
public  intvisualToLogical(int visualIndex)
    


Constructor Detail
TextLine
public TextLine(FontRenderContext frc, TextLineComponent[] components, float[] baselineOffsets, char[] chars, int charsStart, int charsLimit, int[] charLogicalOrder, byte[] charLevels, boolean isDirectionLTR)(Code)




Method Detail
advanceToFirstFont
static boolean advanceToFirstFont(AttributedCharacterIterator aci)(Code)
When this returns, the ACI's current position will be at the start of the first run which does NOT contain a GraphicAttribute. If no such run exists the ACI's position will be at the end, and this method will return false.



caretAtOffsetIsValid
public boolean caretAtOffsetIsValid(int offset)(Code)



characterCount
public int characterCount()(Code)



computePixelBounds
static Rectangle computePixelBounds(BufferedImage im)(Code)



createComponentsOnRun
public static TextLineComponent[] createComponentsOnRun(int runStart, int runLimit, char[] chars, int[] charsLtoV, byte[] levels, TextLabelFactory factory, Font font, CoreMetrics cm, FontRenderContext frc, Decoration decorator, TextLineComponent[] components, int numComponents)(Code)
Returns an array in logical order of the TextLineComponents on the text in the given range, with the given attributes.



createLineFromText
public static TextLine createLineFromText(char[] chars, StyledParagraph styledParagraph, TextLabelFactory factory, boolean isDirectionLTR, float[] baselineOffsets)(Code)
Create a TextLine from the Font and character data over the range. The range is relative to both the StyledParagraph and the character array.



draw
public void draw(Graphics2D g2, float x, float y)(Code)



fastCreateTextLine
public static TextLine fastCreateTextLine(FontRenderContext frc, char[] chars, Font font, CoreMetrics lm, Map attributes)(Code)
Create a TextLine from the text. The Font must be able to display all of the text. attributes==null is equivalent to using an empty Map for attributes



getAdvanceBetween
public static float getAdvanceBetween(TextLineComponent[] components, int start, int limit)(Code)



getCharAdvance
public float getCharAdvance(int logicalIndex)(Code)



getCharAngle
public float getCharAngle(int logicalIndex)(Code)



getCharAscent
public float getCharAscent(int logicalIndex)(Code)



getCharBounds
public Rectangle2D getCharBounds(int logicalIndex)(Code)



getCharDescent
public float getCharDescent(int logicalIndex)(Code)



getCharLevel
public byte getCharLevel(int logicalIndex)(Code)



getCharLinePosition
public float getCharLinePosition(int logicalIndex)(Code)



getCharLinePosition
public float getCharLinePosition(int logicalIndex, boolean leading)(Code)



getCharShift
public float getCharShift(int logicalIndex)(Code)



getCharType
public int getCharType(int logicalIndex)(Code)



getCharXPosition
public float getCharXPosition(int logicalIndex)(Code)



getCharYPosition
public float getCharYPosition(int logicalIndex)(Code)



getComponents
public static TextLineComponent[] getComponents(StyledParagraph styledParagraph, char[] chars, int textStart, int textLimit, int[] charsLtoV, byte[] levels, TextLabelFactory factory)(Code)
Returns an array (in logical order) of the TextLineComponents representing the text. The components are both logically and visually contiguous.



getCoreMetricsAt
public CoreMetrics getCoreMetricsAt(int logicalIndex)(Code)



getFontAtCurrentPos
static Font getFontAtCurrentPos(AttributedCharacterIterator aci)(Code)



getItalicBounds
public Rectangle2D getItalicBounds()(Code)



getJustifiedLine
public TextLine getJustifiedLine(float justificationWidth, float justifyRatio, int justStart, int justLimit)(Code)



getLayoutPath
LayoutPathImpl getLayoutPath()(Code)



getMetrics
public TextLineMetrics getMetrics()(Code)



getNormalizedOffsets
static float[] getNormalizedOffsets(float[] baselineOffsets, byte baseline)(Code)



getOutline
public Shape getOutline(AffineTransform tx)(Code)



getPixelBounds
public Rectangle getPixelBounds(FontRenderContext frc, float x, float y)(Code)



getVisualBounds
public Rectangle2D getVisualBounds()(Code)
Return the union of the visual bounds of all the components. This incorporates the path. It does not include logical bounds (used by carets).



hashCode
public int hashCode()(Code)



isCharLTR
public boolean isCharLTR(int logicalIndex)(Code)



isCharSpace
public boolean isCharSpace(int logicalIndex)(Code)



isCharWhitespace
public boolean isCharWhitespace(int logicalIndex)(Code)



isDirectionLTR
public boolean isDirectionLTR()(Code)



logicalToVisual
public int logicalToVisual(int logicalIndex)(Code)



standardCreateTextLine
public static TextLine standardCreateTextLine(FontRenderContext frc, AttributedCharacterIterator text, char[] chars, float[] baselineOffsets)(Code)
Create a TextLine from the text. chars is just the text in the iterator.



toString
public String toString()(Code)



visualToLogical
public int visualToLogical(int visualIndex)(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.