Class AbsoluteLayout

  • All Implemented Interfaces:
    java.io.Serializable

    @Entity
    public class AbsoluteLayout
    extends Layout
    This class is the representation of an absolute layout, where components are anchored in absolute positions, which are stored in the coords property.

    The order of the coords should match the order of the corresponding CompositeModule.getSubModules().

    Author:
    Nils Bühner
    See Also:
    Serialized Form
    • Constructor Detail

      • AbsoluteLayout

        public AbsoluteLayout()
        Explicitly adding the default constructor as this is important, e.g. for Hibernate: http://goo.gl/3Cr1pw
    • Method Detail

      • getCoords

        public java.util.List<java.awt.Point> getCoords()
        Returns:
        the coords
      • setCoords

        public void setCoords​(java.util.List<java.awt.Point> coords)
        Parameters:
        coords - the coords to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Layout
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class Layout
        See Also:
        According to http://stackoverflow.com/questions/27581/overriding-equals -and-hashcode-in-java it is recommended only to use getter-methods when using ORM like Hibernate