public abstract class CAbstractElement extends CElementPropertyContainer
elementPtr| Constructor and Description |
|---|
CAbstractElement(long ptr) |
| Modifier and Type | Method and Description |
|---|---|
void |
addStyle(CStyle style)
Add a style object to this element.
|
java.util.ArrayList<CIElement> |
getChildren()
Get child elements of this element.
|
java.util.ArrayList<CStyle> |
getStyles()
Get all styles applied to this element.
|
boolean |
hasProperty(int property)
Check whether the element has a specific property by property id.
|
boolean |
isAbsolute()
Check whether the element is positioned absolutely.
|
boolean |
isEmpty()
Check whether the element has no content/children.
|
deleteProperty, 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 boolean isAbsolute()
public boolean hasProperty(int property)
property - Property id (integer).public void addStyle(CStyle style)
style - Style to add. If null, this call is ignored.public java.util.ArrayList<CStyle> getStyles()
public java.util.ArrayList<CIElement> getChildren()
public boolean isEmpty()