public class RMSpringLayout extends RMShapeLayout implements java.beans.PropertyChangeListener
Modifier and Type | Class and Description |
---|---|
class |
RMSpringLayout.LayoutInfo
A class to represent springs LayoutInfo.
|
RMShapeLayout.DirectLayout, RMShapeLayout.FrameLayout
Constructor and Description |
---|
RMSpringLayout()
Creates a new layout.
|
Modifier and Type | Method and Description |
---|---|
void |
addLayoutChild(RMShape aChild)
Override to start listening to property changes.
|
void |
deleteVerticalSpansOfHiddenShapes()
Deletes vertical spans of hidden shapes.
|
RMSpringLayout |
fromXML(com.reportmill.archiver.RXArchiver anArchiver,
com.reportmill.archiver.RXElement anElement,
java.lang.Object anOwner)
XML unarchival.
|
boolean |
getDeleteVerticalSpansOfHiddenShapes()
Returns whether layout deletes vertical spans of hidden shapes.
|
RMSpringLayout.LayoutInfo |
getLayoutInfoX(RMShape aChild)
Returns the extended layout info for a child (creating if missing).
|
boolean |
getParentTracksBoundsOfChildren()
Returns whether parent should track bounds of children.
|
static float |
getShapeBelowFrameY(RMShape aParent,
RMShape aChild)
Returns the next shape y for a given parent and child (so we can find the gap).
|
boolean |
getShiftShapesBelowHiddenShapesUp()
Returns whether to shift shapes below hidden shapes up.
|
void |
layoutParent(RMShape aParent)
Performs layout.
|
void |
propertyChange(java.beans.PropertyChangeEvent anEvent)
Called to revalidate when shape bounds change.
|
void |
removeLayoutChild(RMShape aChild)
Override to stop listening to property changes.
|
void |
reset()
Update LayoutInfo for all children.
|
void |
setBestHeight(RMShape aShape)
Override to call shape grow.
|
void |
setDeleteVerticalSpansOfHiddenShapes(boolean aValue)
Sets whether layout deletes vertical spans of hidden shapes.
|
void |
setParentBoundsFromChildren()
Lays out the shape instead of its children.
|
void |
setParentTracksBoundsOfChildren(boolean aValue)
Sets whether parent should track children.
|
static boolean |
setParentTracksBoundsOfChildren(RMShape aShape,
boolean aValue,
boolean doUpdate)
Sets whether parent should track children.
|
void |
setShiftShapesBelowHiddenShapesUp(boolean aValue)
Sets whether to shift shapes below hidden shapes up.
|
void |
shiftShapesBelowHiddenRect(java.util.List<RMShape> theShapes,
RMRect aRect)
Shifts shapes below hidden rect up.
|
void |
shiftShapesBelowHiddenShapesUp()
Shifts shapes below hidden shapes up.
|
com.reportmill.archiver.RXElement |
toXML(com.reportmill.archiver.RXArchiver anArchiver,
java.lang.Object anOwner)
XML Archival.
|
clone, doLayout, getMaximumSize, getMinimumSize, getParent, getPreferredSize, isHittableChild, isValid, isValidating, isVisibleChild, paintLayout, setLayoutInfoX, setParent, setValid
public boolean getParentTracksBoundsOfChildren()
public void setParentTracksBoundsOfChildren(boolean aValue)
public static boolean setParentTracksBoundsOfChildren(RMShape aShape, boolean aValue, boolean doUpdate)
public boolean getDeleteVerticalSpansOfHiddenShapes()
public void setDeleteVerticalSpansOfHiddenShapes(boolean aValue)
public boolean getShiftShapesBelowHiddenShapesUp()
public void setShiftShapesBelowHiddenShapesUp(boolean aValue)
public void layoutParent(RMShape aParent)
layoutParent
in class RMShapeLayout
public void addLayoutChild(RMShape aChild)
addLayoutChild
in class RMShapeLayout
public void removeLayoutChild(RMShape aChild)
removeLayoutChild
in class RMShapeLayout
public void reset()
reset
in class RMShapeLayout
public RMSpringLayout.LayoutInfo getLayoutInfoX(RMShape aChild)
getLayoutInfoX
in class RMShapeLayout
public void propertyChange(java.beans.PropertyChangeEvent anEvent)
propertyChange
in interface java.beans.PropertyChangeListener
public void setParentBoundsFromChildren()
public void setBestHeight(RMShape aShape)
setBestHeight
in class RMShapeLayout
public static float getShapeBelowFrameY(RMShape aParent, RMShape aChild)
public void deleteVerticalSpansOfHiddenShapes()
public void shiftShapesBelowHiddenShapesUp()
public void shiftShapesBelowHiddenRect(java.util.List<RMShape> theShapes, RMRect aRect)
public com.reportmill.archiver.RXElement toXML(com.reportmill.archiver.RXArchiver anArchiver, java.lang.Object anOwner)
toXML
in class RMShapeLayout
public RMSpringLayout fromXML(com.reportmill.archiver.RXArchiver anArchiver, com.reportmill.archiver.RXElement anElement, java.lang.Object anOwner)
fromXML
in class RMShapeLayout