Class InfoManager
- java.lang.Object
-
- ruscz.game.gameOfProd.LevelEditor.InfoManager
-
public class InfoManager extends java.lang.ObjectThis class displays detailed info about selected cell
-
-
Field Summary
Fields Modifier and Type Field Description private DetailedCellInfodetailedCellInfoprivate LevelEditoreditorprivate javax.swing.JPanelinfoprivate javax.swing.JScrollPanescrollInfoprivate javax.swing.JLayeredPaneview
-
Constructor Summary
Constructors Constructor Description InfoManager(LevelEditor editor)
-
Method Summary
Modifier and Type Method Description private voiddisplayCellInfo(javax.swing.JLabel label, int x, int y)Displays info regarding 'physical' cells (from mapArray)protected voiddisplayInfo(javax.swing.JLabel label, java.lang.String layer, int x, int y)Decides which type of info is needed for a selected cellprivate voiddisplayObjectAndTileInfo(javax.swing.JLabel label, int x, int y, boolean isObject)Displays info regarding object cells and tile cellsjavax.swing.JPanelgetInfo()private voidsaveDoor(java.lang.String value, int x, int y)Puts DOOR cell into correct places in map's cell matrix
-
-
-
Field Detail
-
editor
private LevelEditor editor
-
info
private javax.swing.JPanel info
-
scrollInfo
private javax.swing.JScrollPane scrollInfo
-
view
private javax.swing.JLayeredPane view
-
detailedCellInfo
private DetailedCellInfo detailedCellInfo
-
-
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 displayedlayer- is name of layer on which the cell is locatedx- is X value of celly- 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 displayedx- is X value of celly- is Y value of cellisObject- 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 displayedx- is X value of celly- 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 parsedx- is X value of celly- is Y value of cell
-
getInfo
public javax.swing.JPanel getInfo()
-
-