public class StackPanel extends ContainerComponent
emptyRectangle
Constructor and Description |
---|
StackPanel()
Initializes a new instance of the StackPanel class.
|
Modifier and Type | Method and Description |
---|---|
void |
arrangeComponents(android.graphics.RectF availableSpace,
android.graphics.Canvas g2d)
ContainerComponent.arrangeComponents override.
|
Dimension |
getDesiredSize(Dimension availableSize,
android.graphics.Canvas g2d)
ContainerComponent.getDesiredSize override.
|
int |
getOrientation()
Gets the orientation of the panel.
|
float |
getSpacing()
Gets the distance between adjacent items in the panel.
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContainerComponent.loadFromXml override.
|
void |
readExternal(java.io.ObjectInput in)
ContainerComponent.readExternal override.
|
protected void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContainerComponent.saveToXml override.
|
void |
setOrientation(int value)
Sets the orientation of the panel.
|
void |
setSpacing(float value)
Sets the distance between adjacent items in the panel.
|
void |
writeExternal(java.io.ObjectOutput out)
ContainerComponent.writeExternal override.
|
accept, addChild, draw, getChildCount, getComponents, loadComponents, saveComponents
contains, createOutlinePath, 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, toParent
public StackPanel()
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class ContainerComponent
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
readExternal
in class ContainerComponent
java.io.IOException
java.lang.ClassNotFoundException
protected void saveToXml(org.w3c.dom.Element xmlElement, XmlPersistContext context)
saveToXml
in class ContainerComponent
xmlElement
- 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 ContainerComponent
xmlElement
- 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 arrangeComponents(android.graphics.RectF availableSpace, android.graphics.Canvas g2d)
arrangeComponents
in class ContainerComponent
availableSpace
- The space available for arrangement.g2d
- A relevant Canvas object.public Dimension getDesiredSize(Dimension availableSize, android.graphics.Canvas g2d)
getDesiredSize
in class ComponentBase
availableSize
- The available size.g2d
- A relevant Canvas object.public int getOrientation()
public void setOrientation(int value)
value
- A member of the ComponentBase.Orientation enumeration. The default is Vertical.public float getSpacing()
public void setSpacing(float value)
value
- A floating point value specifying the distance in the current unit of measure. The default is 0.