public abstract class CBlockElement extends CAbstractElement
elementPtr| Constructor and Description |
|---|
CBlockElement(long ptr)
Create a block element with native pointer.
|
| Modifier and Type | Method and Description |
|---|---|
CUnitValue |
getHeight()
Get height.
|
CUnitValue |
getMarginBottom()
Get bottom margin.
|
CUnitValue |
getMarginLeft()
Get left margin.
|
CUnitValue |
getMarginRight()
Get right margin.
|
CUnitValue |
getMarginTop()
Get top margin.
|
CUnitValue |
getPaddingBottom()
Get bottom padding.
|
CUnitValue |
getPaddingLeft()
Get left padding.
|
CUnitValue |
getPaddingRight()
Get right padding.
|
CUnitValue |
getPaddingTop()
Get top padding.
|
CUnitValue |
getWidth()
Get width.
|
void |
setHeight(CUnitValue height)
Set height using a unit value.
|
void |
setHeight(float height)
Set height in points.
|
void |
setMargin(float commonMargin)
Set all margins using the same value.
|
void |
setMarginBottom(float value)
Set bottom margin in points.
|
void |
setMarginLeft(float value)
Set left margin in points.
|
void |
setMarginRight(float value)
Set right margin in points.
|
void |
setMargins(float marginTop,
float marginRight,
float marginBottom,
float marginLeft)
Set margins for each side.
|
void |
setMarginTop(float value)
Set top margin in points.
|
void |
setMaxHeight(CUnitValue maxHeight)
Set maximum height using a unit value.
|
void |
setMaxHeight(float maxHeight)
Set maximum height in points.
|
void |
setMaxWidth(CUnitValue maxWidth)
Set maximum width using a unit value.
|
void |
setMaxWidth(float maxWidth)
Set maximum width in points.
|
void |
setMinHeight(CUnitValue minHeight)
Set minimum height using a unit value.
|
void |
setMinHeight(float minHeight)
Set minimum height in points.
|
void |
setMinWidth(CUnitValue minWidth)
Set minimum width using a unit value.
|
void |
setMinWidth(float minWidth)
Set minimum width in points.
|
void |
setPadding(float commonPadding)
Set all paddings using the same value.
|
void |
setPaddingBottom(float value)
Set bottom padding in points.
|
void |
setPaddingLeft(float value)
Set left padding in points.
|
void |
setPaddingRight(float value)
Set right padding in points.
|
void |
setPaddings(float paddingTop,
float paddingRight,
float paddingBottom,
float paddingLeft)
Set paddings for each side.
|
void |
setPaddingTop(float value)
Set top padding in points.
|
void |
setVerticalAlignment(CVerticalAlignment verticalAlignment)
Set vertical alignment for this block element.
|
void |
setWidth(CUnitValue width)
Set width using a unit value.
|
void |
setWidth(float width)
Set width in points.
|
addStyle, getChildren, getStyles, hasProperty, isAbsolute, isEmptydeleteProperty, getProperties, getStrokeColor, getStrokeWidth, hasProperty, setAbsolutePosition, setAbsolutePosition, setBackgroundColor, setBackgroundImage, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setFontColor, setFontFamily, setFontSize, setFontStyle, setFontWeight, setHorizontalAlignment, setInlineVerticalAlignment, setOpacity, setStrokeColor, setStrokeWidth, setTextAlignment, setUnderline, setWordSpacingpublic CBlockElement(long ptr)
ptr - Native element pointer/handle.public CUnitValue getMarginLeft()
public CUnitValue getMarginRight()
public CUnitValue getMarginTop()
public CUnitValue getMarginBottom()
public void setMarginLeft(float value)
value - Left margin value (unit is implementation-defined; commonly points).public void setMarginRight(float value)
value - Right margin value (unit is implementation-defined; commonly points).public void setMarginTop(float value)
value - Top margin value (unit is implementation-defined; commonly points).public void setMarginBottom(float value)
value - Bottom margin value (unit is implementation-defined; commonly points).public void setMargin(float commonMargin)
commonMargin - Margin value applied to top/right/bottom/left.public void setMargins(float marginTop,
float marginRight,
float marginBottom,
float marginLeft)
marginTop - Top margin.marginRight - Right margin.marginBottom - Bottom margin.marginLeft - Left margin.public CUnitValue getPaddingLeft()
public CUnitValue getPaddingRight()
public CUnitValue getPaddingTop()
public CUnitValue getPaddingBottom()
public void setPaddingLeft(float value)
value - Left padding value (unit is implementation-defined; commonly points).public void setPaddingRight(float value)
value - Right padding value (unit is implementation-defined; commonly points).public void setPaddingTop(float value)
value - Top padding value (unit is implementation-defined; commonly points).public void setPaddingBottom(float value)
value - Bottom padding value (unit is implementation-defined; commonly points).public void setPadding(float commonPadding)
commonPadding - Padding value applied to top/right/bottom/left.public void setPaddings(float paddingTop,
float paddingRight,
float paddingBottom,
float paddingLeft)
paddingTop - Top padding.paddingRight - Right padding.paddingBottom - Bottom padding.paddingLeft - Left padding.public void setVerticalAlignment(CVerticalAlignment verticalAlignment)
verticalAlignment - Vertical alignment enum.public void setWidth(float width)
width - Width value in points.public void setWidth(CUnitValue width)
width - Width as CUnitValue.public CUnitValue getWidth()
public void setHeight(float height)
height - Height value in points.public void setHeight(CUnitValue height)
height - Height as CUnitValue.public CUnitValue getHeight()
public void setMaxHeight(float maxHeight)
maxHeight - Maximum height value in points.public void setMaxHeight(CUnitValue maxHeight)
maxHeight - Maximum height as CUnitValue.public void setMinHeight(float minHeight)
minHeight - Minimum height value in points.public void setMinHeight(CUnitValue minHeight)
minHeight - Minimum height as CUnitValue.public void setMaxWidth(float maxWidth)
maxWidth - Maximum width value in points.public void setMaxWidth(CUnitValue maxWidth)
maxWidth - Maximum width as CUnitValue.public void setMinWidth(float minWidth)
minWidth - Minimum width value in points.public void setMinWidth(CUnitValue minWidth)
minWidth - Minimum width as CUnitValue.