| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecterland.game.tileadventure.MapEditor
erland.game.tileadventure.TileMapEditor
erland.game.tileadventure.AnimationEditor
public class AnimationEditor
| Field Summary | |
|---|---|
protected  ELabel | 
animationSpeedLabel
The label of animation speed of the block  | 
protected  EPanel | 
animationSpeedPanel
The animation speed setting spinner panel  | 
protected  ENumberSpinner | 
animationSpeedSpinner
The spinner for animation speed of the block  | 
protected  DrawMap | 
drawMap
The draw map implementation to use  | 
protected  AnimationExtendedLevelInfo | 
extendedLevelInfo
The extra object information  | 
protected  LevelManager | 
levelManager
The level manager to use  | 
protected  EPanel | 
settingsPanel
The panel with settings for the tile  | 
| Fields inherited from class erland.game.tileadventure.TileMapEditor | 
|---|
cont, contPalette, heightLevelSpinner, levelNo, levelNoSpinner, mapBlocks, paletteBlocks | 
| Fields inherited from class erland.game.tileadventure.MapEditor | 
|---|
BUTTON_EXIT, BUTTON_LOAD, BUTTON_SAVE | 
| Constructor Summary | |
|---|---|
AnimationEditor()
 | 
|
| Method Summary | |
|---|---|
 void | 
drawHoveringFrame(Graphics g,
                  int posX,
                  int posY)
 | 
 void | 
drawMapBlocks(Graphics g,
              MapObjectContainerInterface blocks)
 | 
 void | 
drawSelectedFrame(Graphics g,
                  MapObjectInterface selectedBlock)
 | 
protected  void | 
exitFinish()
Called once when exit of the map editor is finished  | 
protected  ParameterSerializable | 
getExtendedLevelInfo()
Get extended information about the currently edited level/block  | 
protected  String | 
getLevelFileGroupLabel()
Get the name that is used for the currently edited object type when it is stored to file, for example "level"  | 
protected  String | 
getLevelFileLabel()
Get the name that is used for a list of the currently edited object type when it is stored to file, for example "levels"  | 
protected  LevelManager | 
getLevelManager()
Gets the level manager or create a new one if it does not already exist  | 
protected  Image | 
getMapBlockImage()
Get an image which is based on subimages of all blocks in the block select area  | 
protected  IrregularBlockContainerInterface | 
getMapContainer()
Get block container for the map area  | 
protected  int | 
getMaxHeight()
Get the maximum height levels of blocks  | 
protected  int | 
getSelectSizeX()
Get the horizontal number of blocks in the select block area  | 
protected  int | 
getSelectSizeY()
Get the vertical number of blocks in the select block area  | 
protected  int | 
getSizeX()
Get the horizontal number of blocks in main editor area  | 
protected  int | 
getSizeY()
Get the vertical number of blocks in the main editor area  | 
protected  int | 
getSizeZ()
Get the height number of blocks in the main editor area  | 
protected  void | 
initFinish()
Called once when the initialization of the map editor is finished  | 
protected  void | 
setExtendedLevelInfo(ParameterSerializable info)
Set the extended information for the currently edited level/block  | 
protected  void | 
updateBlocks()
Update all blocks  | 
| Methods inherited from class erland.game.tileadventure.TileMapEditor | 
|---|
cloneBlock, getFirstPaletteBlock, getHeightLabelText, getLevelLabelText, getLevelNo, getMapBlocks, getMapPosZ, getMaxLevel, getNoOfPaletteBlocks, getPaletteBlock, getPaletteBlocks, getPaletteContainer, init, initButtons, initHeightChangeButtons, initLevelChangeButtons, isEmptyAllowed, loadButton, prepareAfterLoad, prepareForSave, saveButton | 
| Methods inherited from class erland.game.tileadventure.MapEditor | 
|---|
clickedMapBlock, clickedSelectBlock, draw, drawBlock, drawFinish, drawPaletteBlocks, exit, exitButton, getDefaultButtons, getEnvironment, getPalettePosZ, hoverMapBlock, initButtonPanel, initDefaultButtons, isExit, leftMouseDragged, leftMousePressed, mouseHovering, prepareNewBlock, setCheatmode, setMapBlock, update | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected DrawMap drawMap
protected LevelManager levelManager
protected EPanel settingsPanel
protected EPanel animationSpeedPanel
protected ELabel animationSpeedLabel
protected ENumberSpinner animationSpeedSpinner
protected AnimationExtendedLevelInfo extendedLevelInfo
| Constructor Detail | 
|---|
public AnimationEditor()
| Method Detail | 
|---|
protected String getLevelFileLabel()
TileMapEditor
getLevelFileLabel in class TileMapEditorprotected String getLevelFileGroupLabel()
TileMapEditor
getLevelFileGroupLabel in class TileMapEditorprotected int getSizeX()
TileMapEditor
getSizeX in class TileMapEditorprotected int getSizeY()
TileMapEditor
getSizeY in class TileMapEditorprotected int getSizeZ()
TileMapEditor
getSizeZ in class TileMapEditorprotected int getSelectSizeX()
TileMapEditor
getSelectSizeX in class TileMapEditorprotected int getSelectSizeY()
TileMapEditor
getSelectSizeY in class TileMapEditorprotected int getMaxHeight()
TileMapEditor
getMaxHeight in class TileMapEditorprotected Image getMapBlockImage()
TileMapEditor
getMapBlockImage in class TileMapEditor
public void drawMapBlocks(Graphics g,
                          MapObjectContainerInterface blocks)
drawMapBlocks in class MapEditor
public void drawSelectedFrame(Graphics g,
                              MapObjectInterface selectedBlock)
drawSelectedFrame in class TileMapEditor
public void drawHoveringFrame(Graphics g,
                              int posX,
                              int posY)
drawHoveringFrame in class TileMapEditorprotected LevelManager getLevelManager()
TileMapEditor
getLevelManager in class TileMapEditorprotected void initFinish()
MapEditor
initFinish in class MapEditorprotected void exitFinish()
MapEditor
exitFinish in class MapEditorprotected void setExtendedLevelInfo(ParameterSerializable info)
TileMapEditor
setExtendedLevelInfo in class TileMapEditorinfo - Extended level/block informationprotected ParameterSerializable getExtendedLevelInfo()
TileMapEditor
getExtendedLevelInfo in class TileMapEditorprotected void updateBlocks()
MapEditor
updateBlocks in class TileMapEditorprotected IrregularBlockContainerInterface getMapContainer()
MapEditor
getMapContainer in class TileMapEditor
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||