public class BorderComponent extends ContentComponent
emptyRectangle| Constructor and Description |
|---|
BorderComponent()
Initializes a new instance of the BorderComponent class.
|
| Modifier and Type | Method and Description |
|---|---|
android.graphics.Path |
createOutlinePath(android.graphics.RectF bounds,
float rotationAngle)
ComponentBase.createOutlinePath override
|
void |
draw(android.graphics.Canvas g2d,
RenderOptions options)
ContentComponent.draw override
|
Brush |
getBackground()
Gets the brush used to fill the border background.
|
boolean |
getIsOutline()
Gets a value indicating whether this component defines the outline of its host.
|
Pen |
getPen()
Gets the pen used to stroke the border sides.
|
protected Thickness |
getThickness()
ContentComponent.getThickness override
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContentComponent.loadFromXml override
|
void |
readExternal(java.io.ObjectInput in)
Implements Externalizable
|
protected void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContentComponent.saveToXml override
|
void |
setBackground(Brush value)
Sets the brush used to fill the border background.
|
void |
setIsOutline(boolean value)
Sets a value indicating whether this component defines the outline of its host.
|
void |
setPen(Pen value)
Sets the pen used to stroke the border sides.
|
void |
writeExternal(java.io.ObjectOutput out)
Implements Externalizable
|
accept, addChild, arrangeComponents, getChildCount, getContent, getDesiredSize, getPadding, setContent, setPaddingcontains, find, getBounds, getCursor, getDocumentBounds, getFocusable, getGridColumn, getGridRow, getHeight, getHorizontalAlignment, getIsEnabled, getIsFocused, getIsHitTestVisible, getIsInteractive, getName, getParent, getParentHost, getVerticalAlignment, getVisible, getWidth, invalidate, invalidateLayout, onAddedToParent, onContextChanged, onGotFocus, onKeyPress, onLostFocus, onMouseDown, onMouseMove, onMouseUp, onRemovedFromParent, onUnitChanged, onZoomChanged, serializeSubcomponents, setBounds, setFocusable, setGridColumn, setGridRow, setHeight, setHorizontalAlignment, setIsEnabled, setIsFocused, setIsHitTestVisible, setIsInteractive, setName, setParent, setVerticalAlignment, setVisible, setWidth, toDocument, toLocal, toParentpublic BorderComponent()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class ContentComponentjava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class ContentComponentjava.io.IOExceptionjava.lang.ClassNotFoundExceptionprotected void saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
saveToXml in class ContentComponentxmlElement - An Element the component's data should be stored into.context - An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods.protected void loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
loadFromXml in class ContentComponentxmlElement - An Element containing the component's data.context - An XmlPersistContext object providing contextual information about the serialization process and some helper serialization methods.public void draw(android.graphics.Canvas g2d,
RenderOptions options)
draw in class ContentComponentg2d - The drawing target.options - A RenderOptions object specifying the drawing context.protected Thickness getThickness()
getThickness in class ContentComponentpublic android.graphics.Path createOutlinePath(android.graphics.RectF bounds,
float rotationAngle)
createOutlinePath in class ComponentBasepublic void setBackground(Brush value)
value - The brush used to fill the border background.public Brush getBackground()
public void setPen(Pen value)
value - The pen used to stroke the border sides.public Pen getPen()
public boolean getIsOutline()
public void setIsOutline(boolean value)
value - true to mark this component as the node's outline, otherwise false. The default value is false.