Package guideme.document.block
Class LytParagraph
java.lang.Object
guideme.document.block.LytNode
guideme.document.block.LytBlock
guideme.document.block.LytParagraph
- All Implemented Interfaces:
LytFlowContainer,LytFlowParent,LytErrorSink,Styleable
- Direct Known Subclasses:
LytHeading
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FlowBuilderprotected @Nullable LytFlowContentprotected intprotected intprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappend(LytFlowContent child) voidcomputeLayout(LayoutContext context, int x, int y, int availableWidth) enumerateContentBounds(LytFlowContent content) Gets a stream of all the bounding rectangles for given flow content.intintintintbooleanbooleanisEmpty()static LytParagraphQuick shorthand to create a paragrpah of plain text.protected voidonLayoutMoved(int deltaX, int deltaY) Implement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.voidonMouseEnter(@Nullable LytFlowContent hoveredContent) void@Nullable LytFlowContentpickContent(int x, int y) @Nullable LytNodepickNode(int x, int y) voidrender(RenderContext context) voidsetPaddingBottom(int paddingBottom) voidsetPaddingLeft(int paddingLeft) voidsetPaddingRight(int paddingRight) voidsetPaddingTop(int paddingTop) protected LytVisitor.ResultvisitChildren(LytVisitor visitor, boolean includeOutOfTreeContent) Methods inherited from class guideme.document.block.LytBlock
getBorderBottom, getBorderLeft, getBorderRight, getBorderTop, getBounds, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, isFullWidth, layout, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTop, setFullWidth, setLayoutPos, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopMethods inherited from class guideme.document.block.LytNode
getChildren, getDocument, getHoverStyle, getParent, getSourceNode, getStyle, getStylingParent, getTextContent, removeChild, setHoverStyle, setSourceNode, setStyle, tick, visit, visitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface guideme.document.flow.LytFlowParent
appendBreak, appendComponent, appendError, appendTextMethods inherited from interface guideme.style.Styleable
modifyHoverStyle, modifyStyle, resolveHoverStyle, resolveStyle
-
Field Details
-
-
paddingLeft
protected int paddingLeft -
paddingTop
protected int paddingTop -
paddingRight
protected int paddingRight -
paddingBottom
protected int paddingBottom -
hoveredContent
-
-
Constructor Details
-
LytParagraph
public LytParagraph()
-
-
Method Details
-
append
- Specified by:
appendin interfaceLytFlowParent
-
isCulled
-
computeLayout
- Specified by:
computeLayoutin classLytBlock
-
onLayoutMoved
protected void onLayoutMoved(int deltaX, int deltaY) Description copied from class:LytBlockImplement to react to layout previously computed byLytBlock.computeLayout(guideme.layout.LayoutContext, int, int, int)being moved.- Specified by:
onLayoutMovedin classLytBlock
-
onMouseEnter
- Overrides:
onMouseEnterin classLytNode
-
onMouseLeave
public void onMouseLeave()- Overrides:
onMouseLeavein classLytNode
-
pickNode
-
render
-
pickContent
- Specified by:
pickContentin interfaceLytFlowContainer
-
enumerateContentBounds
Description copied from interface:LytFlowContainerGets a stream of all the bounding rectangles for given flow content. Since flow content may be wrapped, it may consist of several disjointed bounding boxes.- Specified by:
enumerateContentBoundsin interfaceLytFlowContainer
-
visitChildren
- Overrides:
visitChildrenin classLytNode
-
getContent
-
isEmpty
public boolean isEmpty() -
clearContent
public void clearContent() -
getPaddingLeft
public int getPaddingLeft() -
setPaddingLeft
public void setPaddingLeft(int paddingLeft) -
getPaddingTop
public int getPaddingTop() -
setPaddingTop
public void setPaddingTop(int paddingTop) -
getPaddingRight
public int getPaddingRight() -
setPaddingRight
public void setPaddingRight(int paddingRight) -
getPaddingBottom
public int getPaddingBottom() -
setPaddingBottom
public void setPaddingBottom(int paddingBottom) -
of
Quick shorthand to create a paragrpah of plain text.
-