Class BoardLocation

  • All Implemented Interfaces:
    java.beans.PropertyChangeListener, java.util.EventListener, Identifiable, Definable<BoardLocation>

    public class BoardLocation
    extends PlacementsHolderLocation<BoardLocation>
    A container for a Board that gives the board a physical Location relative to its parent. It also holds a coordinate transformation that is used to convert the board's local coordinates to its parent's coordinates. In addition, it contains information on where the Board's definition is stored in the file system.
    • Constructor Detail

      • BoardLocation

        public BoardLocation()
        Default constructor
      • BoardLocation

        public BoardLocation​(BoardLocation boardLocation)
        Constructs a deep copy of the specified BoardLocation
        Parameters:
        boardLocation -
      • BoardLocation

        public BoardLocation​(Board board)
        Constructs a BoardLocation for the specified Board
        Parameters:
        board - - the specified board
    • Method Detail

      • persist

        protected void persist()
        Called just prior to serialization
      • getBoard

        public Board getBoard()
        Returns:
        - the Board associated with this BoardLocation
      • setBoard

        public void setBoard​(Board board)
        Sets the board associated with this BoardLocation
        Parameters:
        board - - the board to set
      • getPlaced

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.Boolean> getPlaced()
        Deprecated.
        placement status is now saved with the job
        Returns:
        the placement status
      • getPlacementTransform

        public java.awt.geom.AffineTransform getPlacementTransform()
        Returns:
        - the transform that converts the Board's local coordinates to those of its parent
      • setPlacementTransform

        public void setPlacementTransform​(java.awt.geom.AffineTransform placementTransform)
        Sets the transform that converts the Board's local coordinates to those of its parent
        Parameters:
        placementTransform - - the transform to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • dump

        public void dump​(java.lang.String leader)
        Provides a formated dump to the log file
        Parameters:
        leader - - prefix to indent the dump