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 final String
    The bound property of the alignment.

    Fields inherited from class com.globalmentor.beans.BoundPropertyObject

    NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    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 Details

    • ALIGNMENT_PROPERTY

      public static final String ALIGNMENT_PROPERTY
      The bound property of the alignment.
  • Constructor Details

    • AbstractFlowConstraints

      public AbstractFlowConstraints()
  • Method Details

    • 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: