Package icyllis.modernui.graphics.text
Class LineBreaker.ParagraphConstraints
java.lang.Object
icyllis.modernui.graphics.text.LineBreaker.ParagraphConstraints
- Enclosing class:
LineBreaker
Line breaking constraints for single paragraph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the default tab stops in pixels.floatReturn the first line's width for this paragraph in pixel.float[]Returns the array of tab stops in pixels.floatgetWidth()Return the width for this paragraph in pixels.voidsetIndent(float firstWidth) Set indent for this paragraph.voidsetTabStops(float[] tabStops, float defaultTabStop) Set tab stops for this paragraph.voidsetWidth(float width) Set width for this paragraph.
-
Constructor Details
-
ParagraphConstraints
public ParagraphConstraints()
-
-
Method Details
-
setWidth
public void setWidth(float width) Set width for this paragraph.- See Also:
-
setIndent
public void setIndent(float firstWidth) Set indent for this paragraph.- Parameters:
firstWidth- the line width of the starting of the paragraph- See Also:
-
setTabStops
public void setTabStops(@Nullable float[] tabStops, float defaultTabStop) Set tab stops for this paragraph.- Parameters:
tabStops- the array of pixels of tap stopping positiondefaultTabStop- pixels of the default tab stopping position- See Also:
-
getWidth
public float getWidth()Return the width for this paragraph in pixels.- See Also:
-
getFirstWidth
public float getFirstWidth()Return the first line's width for this paragraph in pixel.- See Also:
-
getTabStops
@Nullable public float[] getTabStops()Returns the array of tab stops in pixels.- See Also:
-
getDefaultTabStop
public float getDefaultTabStop()Returns the default tab stops in pixels.- See Also:
-