Class MapTransform

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JPanel descriptionPanel
      A panel with information about this transformation.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapTransform()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.JPanel getDescriptionPanel()
      A panel with information about this transformation.
      void setDescriptionPanel​(javax.swing.JPanel descriptionPanel)
      Sets a panel that can be used for describing this transformation to the user.
      abstract void transform​(Tile t)
      Applies this transformation to the given tile.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • descriptionPanel

        private javax.swing.JPanel descriptionPanel
        A panel with information about this transformation.
    • Constructor Detail

      • MapTransform

        public MapTransform()
    • Method Detail

      • transform

        public abstract void transform​(Tile t)
        Applies this transformation to the given tile.
        Parameters:
        t - The Tile to be transformed,
      • getDescriptionPanel

        public javax.swing.JPanel getDescriptionPanel()
        A panel with information about this transformation. This panel is currently displayed on the InfoPanel when selected, but might be used elsewhere as well.
        Returns:
        The panel or null if no panel has been set.
      • setDescriptionPanel

        public void setDescriptionPanel​(javax.swing.JPanel descriptionPanel)
        Sets a panel that can be used for describing this transformation to the user.
        Parameters:
        descriptionPanel - The panel.