|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.globalmentor.beans.BoundPropertyObject
com.guiseframework.event.GuiseBoundPropertyObject
com.guiseframework.component.layout.AbstractLayout<T>
com.guiseframework.component.layout.AbstractFlowLayout<T>
T - The type of layout constraints associated with each component.public abstract class AbstractFlowLayout<T extends AbstractFlowConstraints>
A layout that flows information along an axis.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.guiseframework.component.layout.AbstractLayout |
|---|
AbstractLayout.ConstraintsPropertyChangeListener |
| Field Summary | |
|---|---|
static java.lang.String |
ALIGNMENT_PROPERTY
The bound property of the alignment. |
static java.lang.String |
FLOW_PROPERTY
The bound property of the flow. |
static java.lang.String |
GAP_AFTER_PROPERTY
The bound property of the gap after flowed components. |
static java.lang.String |
GAP_BEFORE_PROPERTY
The bound property of the gap before flowed components. |
static java.lang.String |
GAP_BETWEEN_PROPERTY
The bound property of the gap between flowed components. |
static java.lang.String |
WRAPPED_PROPERTY
The bound property of whether wrapping occurs. |
| Fields inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS |
| Constructor Summary | |
|---|---|
AbstractFlowLayout(Flow flow,
boolean wrapped)
Flow and wrap constructor. |
|
| Method Summary | |
|---|---|
double |
getAlignment()
|
Flow |
getFlow()
|
Extent |
getGapAfter()
|
Extent |
getGapBefore()
|
Extent |
getGapBetween()
|
boolean |
isWrapped()
|
void |
setAlignment(double newAlignment)
Sets the default alignment of components perpendicular to the flow axis. |
void |
setFlow(Flow newFlow)
Sets the logical axis (line or page) along which information is flowed. |
void |
setGap(Extent newGap)
Sets the gap before, between, and after flowed components. |
void |
setGapAfter(Extent newGapAfter)
Sets the gap after flowed components. |
void |
setGapBefore(Extent newGapBefore)
Sets the gap before flowed components. |
void |
setGapBetween(Extent newGapBetween)
Sets the gap between flowed components. |
void |
setWrapped(boolean newWrapped)
Sets whether flowed children are wrapped when the flow extent is reached. |
| Methods inherited from class com.guiseframework.component.layout.AbstractLayout |
|---|
addComponent, componentConstraintsChanged, fireConstraintsPropertyChange, getComponentConstraintsChangeListener, getConstraints, getConstraintsPropertyChangeListener, getOwner, removeComponent, setOwner |
| Methods inherited from class com.guiseframework.event.GuiseBoundPropertyObject |
|---|
getSession |
| Methods inherited from class com.globalmentor.beans.BoundPropertyObject |
|---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.guiseframework.component.layout.Layout |
|---|
createDefaultConstraints, getConstraintsClass, getSession |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Field Detail |
|---|
public static final java.lang.String ALIGNMENT_PROPERTY
public static final java.lang.String FLOW_PROPERTY
public static final java.lang.String GAP_AFTER_PROPERTY
public static final java.lang.String GAP_BEFORE_PROPERTY
public static final java.lang.String GAP_BETWEEN_PROPERTY
public static final java.lang.String WRAPPED_PROPERTY
| Constructor Detail |
|---|
public AbstractFlowLayout(Flow flow,
boolean wrapped)
flow - The logical axis (line or page) along which information is flowed.wrapped - Whether flowed children should be wrapped when the flow extent is reached.
java.lang.NullPointerException - if the flow axis is null.| Method Detail |
|---|
public double getAlignment()
public void setAlignment(double newAlignment)
Flow.LINE axis,
alignments of 0.0, 0.5, and 1.0 would be equivalent to what are commonly known as left, center, and right alignments, respectively.
In the same orientation flowing along the Flow.PAGE axis,
alignments of 0.0, 0.5, and 1.0 would be equivalent to what are commonly known as top, middle, and bottom alignments, respectively.
This method also acts as a convenience method by unconditionally updating the alignment of the flow constraints of any child components of this layout's owner.
This is a bound property of type Double.
newAlignment - The alignment of components perpendicular to the flow axis in terms relative to the beginning of the alignment axis.ALIGNMENT_PROPERTY,
AbstractFlowConstraints.setAlignment(double)public Flow getFlow()
public void setFlow(Flow newFlow)
newFlow - The logical axis along which information is flowed.
java.lang.NullPointerException - if the given flow is null.FLOW_PROPERTYpublic Extent getGapAfter()
public void setGapAfter(Extent newGapAfter)
newGapAfter - The gap after flowed components.
java.lang.NullPointerException - if the given gap is null.GAP_AFTER_PROPERTYpublic Extent getGapBefore()
public void setGapBefore(Extent newGapBefore)
newGapBefore - The gap before flowed components.
java.lang.NullPointerException - if the given gap is null.GAP_BEFORE_PROPERTYpublic Extent getGapBetween()
public void setGapBetween(Extent newGapBetween)
newGapBetween - The gap between flowed components.
java.lang.NullPointerException - if the given gap is null.GAP_BETWEEN_PROPERTYpublic boolean isWrapped()
#isDisplayed()public void setWrapped(boolean newWrapped)
Boolean.
newWrapped - Whether flowed children should be wrapped when the flow extent is reached.WRAPPED_PROPERTYpublic void setGap(Extent newGap)
newGap - The gap before, between, and after flowed components.
java.lang.NullPointerException - if the given gap is null.GAP_BEFORE_PROPERTY,
GAP_BETWEEN_PROPERTY,
GAP_AFTER_PROPERTY
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||