Class 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.
      • Fields inherited from class com.globalmentor.beans.BoundPropertyObject

        NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
    • Field Detail

      • ALIGNMENT_PROPERTY

        public static final java.lang.String ALIGNMENT_PROPERTY
        The bound property of the alignment.
    • Constructor Detail

      • AbstractFlowConstraints

        public AbstractFlowConstraints()
    • 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 the 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 is a bound property of type Double.
        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