LineBreaker.ParagraphConstraints
  public
  static
  
  
  class
  LineBreaker.ParagraphConstraints
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.graphics.text.LineBreaker.ParagraphConstraints | 
Line breaking constraints for single paragraph.
Summary
Public constructors | |
|---|---|
      
      ParagraphConstraints()
      
      
     | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        float
     | 
  
    
      
      getDefaultTabStop()
      
      
        Returns the default tab stops in pixels.  | 
  
        
        
        
        
        
        float
     | 
  
    
      
      getFirstWidth()
      
      
        Return the first line's width for this paragraph in pixel.  | 
  
        
        
        
        
        
        int
     | 
  
    
      
      getFirstWidthLineCount()
      
      
        Return the number of lines to apply the first line's width.  | 
  
        
        
        
        
        
        float[]
     | 
  
    
      
      getTabStops()
      
      
        Returns the array of tab stops in pixels.  | 
  
        
        
        
        
        
        float
     | 
  
    
      
      getWidth()
      
      
        Return the width for this paragraph in pixels.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setIndent(float firstWidth, int firstWidthLineCount)
      
      
        Set indent for this paragraph.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setTabStops(float[] tabStops, float defaultTabStop)
      
      
        Set tab stops for this paragraph.  | 
  
        
        
        
        
        
        void
     | 
  
    
      
      setWidth(float width)
      
      
        Set width for this paragraph.  | 
  
Inherited methods | |
|---|---|
Public constructors
Public methods
getDefaultTabStop
public float getDefaultTabStop ()
Returns the default tab stops in pixels.
 
 The units of this value are pixels.
| Returns | |
|---|---|
float | 
        The units of this value are pixels. Value is 0.0f or greater | 
See also:
getFirstWidth
public float getFirstWidth ()
Return the first line's width for this paragraph in pixel.
 
 The units of this value are pixels.
| Returns | |
|---|---|
float | 
        The units of this value are pixels. Value is 0.0f or greater | 
See also:
getFirstWidthLineCount
public int getFirstWidthLineCount ()
Return the number of lines to apply the first line's width.
 
 The units of this value are pixels.
| Returns | |
|---|---|
int | 
        The units of this value are pixels. Value is 0 or greater | 
See also:
getTabStops
public float[] getTabStops ()
Returns the array of tab stops in pixels.
| Returns | |
|---|---|
float[] | 
        This value may be null. | 
      
See also:
getWidth
public float getWidth ()
Return the width for this paragraph in pixels.
 
 The units of this value are pixels.
| Returns | |
|---|---|
float | 
        The units of this value are pixels. Value is 0.0f or greater | 
See also:
setIndent
public void setIndent (float firstWidth, 
                int firstWidthLineCount)Set indent for this paragraph.
| Parameters | |
|---|---|
firstWidth | 
        
          float: the line width of the starting of the paragraph
 The units of this value are pixels.
 Value is 0.0f or greater | 
      
firstWidthLineCount | 
        
          int: the number of lines that applies the firstWidth
 The units of this value are pixels.
 Value is 0 or greater | 
      
See also:
setTabStops
public void setTabStops (float[] tabStops, 
                float defaultTabStop)Set tab stops for this paragraph.
| Parameters | |
|---|---|
tabStops | 
        
          float: the array of pixels of tap stopping position
 This value may be null. | 
      
defaultTabStop | 
        
          float: pixels of the default tab stopping position
 The units of this value are pixels.
 Value is 0.0f or greater | 
      
See also:
setWidth
public void setWidth (float width)
Set width for this paragraph.
| Parameters | |
|---|---|
width | 
        
          float: The units of this value are pixels.
 Value is 0.0f or greater | 
      
See also: