public class RMShapeLayout
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
RMShapeLayout.DirectLayout
A shape layout that calls shape layoutChildren() method.
|
static class |
RMShapeLayout.FrameLayout
A shape layout subclass that just puts the child exactly in the parent bounds.
|
Constructor and Description |
---|
RMShapeLayout()
Creates a new layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutChild(RMShape aChild)
Called when a child is added to parent shape.
|
RMShapeLayout |
clone()
Standard clone implementation.
|
void |
doLayout(RMShape aParent)
Performs layout.
|
java.lang.Object |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML Unarchival.
|
java.lang.Object |
getLayoutInfoX(RMShape aChild)
Returns extended layout info for a child.
|
RMSize |
getMaximumSize(RMShape aShape)
Returns the maximum size of the shape.
|
RMSize |
getMinimumSize(RMShape aShape)
Returns the minimum size of the shape.
|
RMShape |
getParent()
Returns the parent for this layout.
|
RMSize |
getPreferredSize(RMShape aShape,
float aMaxWidth,
float aMaxHeight)
Returns the preferred size of the shape.
|
boolean |
isHittableChild(RMShape aParent,
RMShape aChild)
Returns whether given child shape is hittable according to given parent shape.
|
boolean |
isValid()
Returns whether layout needs to be done.
|
boolean |
isValidating()
Returns whether layout is validating (laying out shape).
|
boolean |
isVisibleChild(RMShape aParent,
RMShape aChild)
Returns whether given child shape is visible to given parent shape.
|
void |
layoutParent(RMShape aParent)
Performs layout.
|
void |
paintLayout(java.awt.Graphics2D aGraphics)
Paint layout.
|
void |
removeLayoutChild(RMShape aChild)
Called when a child is removed from parent shape.
|
void |
reset()
Resets shape layout without doing layout.
|
void |
setBestHeight(RMShape aShape)
Sets the shape to its preferred height.
|
void |
setLayoutInfoX(RMShape aChild,
java.lang.Object theInfo)
Sets extended layout info for a child.
|
void |
setParent(RMShape aShape)
Sets the parent for this layout.
|
void |
setValid(boolean aValue)
Sets whether layout needs to be done.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML Archival.
|
public RMShape getParent()
public void setParent(RMShape aShape)
public void reset()
public boolean isValid()
public void setValid(boolean aValue)
public boolean isValidating()
public void doLayout(RMShape aParent)
public void layoutParent(RMShape aParent)
public RMSize getPreferredSize(RMShape aShape, float aMaxWidth, float aMaxHeight)
public void setBestHeight(RMShape aShape)
public void addLayoutChild(RMShape aChild)
public void removeLayoutChild(RMShape aChild)
public java.lang.Object getLayoutInfoX(RMShape aChild)
public void setLayoutInfoX(RMShape aChild, java.lang.Object theInfo)
public void paintLayout(java.awt.Graphics2D aGraphics)
public boolean isVisibleChild(RMShape aParent, RMShape aChild)
public boolean isHittableChild(RMShape aParent, RMShape aChild)
public RMShapeLayout clone()
clone
in class java.lang.Object
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
public java.lang.Object fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)