Class AbstractFlowConstraints
- java.lang.Object
-
- com.globalmentor.beans.BoundPropertyObject
-
- io.guise.framework.component.layout.AbstractConstraints
-
- io.guise.framework.component.layout.AbstractFlowConstraints
-
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Constraints
- Direct Known Subclasses:
FlowConstraints
,MenuConstraints
public class AbstractFlowConstraints extends AbstractConstraints
Abstract constraints on individual component flow.- Author:
- Garret Wilson
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALIGNMENT_PROPERTY
The bound property of the alignment.
-
Constructor Summary
Constructors Constructor Description AbstractFlowConstraints()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAlignment()
void
setAlignment(double newAlignment)
Sets the alignment of a component perpendicular to the flow axis.-
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
-
-
-
-
Method Detail
-
getAlignment
public double getAlignment()
- Returns:
- The alignment of a component perpendicular to the flow axis in terms relative to the beginning of the alignment axis.
-
setAlignment
public void setAlignment(double newAlignment)
Sets the alignment of a component perpendicular to the flow axis. For example, in a left-to-right top-to-bottom orientation flowing along theFlow.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 theFlow.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 is a bound property of typeDouble
.- Parameters:
newAlignment
- The alignment of a component perpendicular to the flow axis in terms relative to the beginning of the alignment axis.- See Also:
ALIGNMENT_PROPERTY
-
-