public class StackPanel extends ContainerComponent
eventListenerList
Constructor and Description |
---|
StackPanel()
Initializes a new instance of the StackPanel class.
|
Modifier and Type | Method and Description |
---|---|
void |
arrangeComponents(java.awt.geom.Rectangle2D.Float availableSpace,
java.awt.Graphics2D g2d)
ContainerComponent.arrangeComponents override.
|
XDimension2D.Double |
getDesiredSize(XDimension2D.Double availableSize,
java.awt.Graphics2D g2d)
ContainerComponent.getDesiredSize override.
|
com.mindfusion.common.Orientation |
getOrientation()
Gets the orientation of the panel.
|
float |
getSpacing()
Gets the distance between adjacent items in the panel.
|
protected void |
loadFromJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Deserializes the component from a JsonObject.
|
protected void |
loadFromXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContainerComponent.loadFromXml override.
|
void |
readExternal(java.io.ObjectInput in)
ContainerComponent.readExternal override.
|
protected void |
saveToJson(com.mindfusion.common.JsonObject obj,
JsonPersistContext context)
Serializes the component into a JsonObject
|
protected void |
saveToXml(org.w3c.dom.Element xmlElement,
XmlPersistContext context)
ContainerComponent.saveToXml override.
|
void |
setOrientation(com.mindfusion.common.Orientation 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, loadComponents, saveComponents, saveComponents
addComponentEventListener, addComponentMouseEventListener, addComponentValidationEventListener, confirmValidating, 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, onGotFocus, onKeyDown, onKeyPress, onKeyUp, onLostFocus, onLostFocus, onMouseDown, onMouseDown, onMouseMove, onMouseMove, onMouseUp, onMouseUp, onRemovedFromParent, onUnitChanged, onValidated, onValidating, onZoomChanged, raiseValidated, removeComponentEventListener, removeComponentMouseEventListener, removeComponentValidationEventListener, 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) throws javax.xml.transform.TransformerException
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.javax.xml.transform.TransformerException
protected void saveToJson(com.mindfusion.common.JsonObject obj, JsonPersistContext context)
saveToJson
in class ContainerComponent
obj
- An JsonObject containing the StackPanel datacontext
- An JsonPersistContext object providing information
about the serialization process and some helper methods.protected void loadFromJson(com.mindfusion.common.JsonObject obj, JsonPersistContext context)
loadFromJson
in class ContainerComponent
obj
- An JsonObject containing the StackPanel datacontext
- An JsonPersistContext object providing information
about the serialization process and some helper methods.public void arrangeComponents(java.awt.geom.Rectangle2D.Float availableSpace, java.awt.Graphics2D g2d)
arrangeComponents
in class ContainerComponent
availableSpace
- The space available for arrangement.g2d
- A relevant Graphics2D object.public XDimension2D.Double getDesiredSize(XDimension2D.Double availableSize, java.awt.Graphics2D g2d)
getDesiredSize
in class ComponentBase
availableSize
- The available size.g2d
- A relevant Graphics2D object.public com.mindfusion.common.Orientation getOrientation()
public void setOrientation(com.mindfusion.common.Orientation 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.