Class InfoManager


  • public class InfoManager
    extends java.lang.Object
    This class displays detailed info about selected cell
    • Method Summary

      Modifier and Type Method Description
      private void displayCellInfo​(javax.swing.JLabel label, int x, int y)
      Displays info regarding 'physical' cells (from mapArray)
      protected void displayInfo​(javax.swing.JLabel label, java.lang.String layer, int x, int y)
      Decides which type of info is needed for a selected cell
      private void displayObjectAndTileInfo​(javax.swing.JLabel label, int x, int y, boolean isObject)
      Displays info regarding object cells and tile cells
      javax.swing.JPanel getInfo()  
      private void saveDoor​(java.lang.String value, int x, int y)
      Puts DOOR cell into correct places in map's cell matrix
      • Methods inherited from class java.lang.Object

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

      • info

        private javax.swing.JPanel info
      • scrollInfo

        private javax.swing.JScrollPane scrollInfo
      • view

        private javax.swing.JLayeredPane view
    • Constructor Detail

      • InfoManager

        public InfoManager​(LevelEditor editor)
    • Method Detail

      • displayInfo

        protected void displayInfo​(javax.swing.JLabel label,
                                   java.lang.String layer,
                                   int x,
                                   int y)
        Decides which type of info is needed for a selected cell
        Parameters:
        label - is label to be parsed and displayed
        layer - is name of layer on which the cell is located
        x - is X value of cell
        y - is Y value of cell
      • displayObjectAndTileInfo

        private void displayObjectAndTileInfo​(javax.swing.JLabel label,
                                              int x,
                                              int y,
                                              boolean isObject)
        Displays info regarding object cells and tile cells
        Parameters:
        label - is label to be parsed and displayed
        x - is X value of cell
        y - is Y value of cell
        isObject - is cell on object layer
      • displayCellInfo

        private void displayCellInfo​(javax.swing.JLabel label,
                                     int x,
                                     int y)
        Displays info regarding 'physical' cells (from mapArray)
        Parameters:
        label - is label to be parsed and displayed
        x - is X value of cell
        y - is Y value of cell
      • saveDoor

        private void saveDoor​(java.lang.String value,
                              int x,
                              int y)
        Puts DOOR cell into correct places in map's cell matrix
        Parameters:
        value - is value of cell to ba parsed
        x - is X value of cell
        y - is Y value of cell
      • getInfo

        public javax.swing.JPanel getInfo()