Class GameObjectAttributesDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.GameObjectAttributesDialogFactory<G,A,R>
-
public class GameObjectAttributesDialogFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends java.lang.ObjectA factory that createsdialogs for editing game object attributes. For each game object instance at most one dialog is created at a time. Dialog instances are dropped when the dialog is disposed.
-
-
Constructor Summary
Constructors Constructor Description GameObjectAttributesDialogFactory(@NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull java.awt.Frame parent, @NotNull CFTreasureListTree treasureListTree, @NotNull FaceObjectProviders faceObjectProviders, @NotNull AnimationObjects animationObjects, @NotNull ProjectSettings projectSettings, @NotNull javax.swing.filechooser.FileFilter mapFileFilter, @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull FaceObjects faceObjects, @NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells, @NotNull Spells<NumberSpell> numberSpells, int undefinedSpellIndex, @NotNull TreasureTree treasureTree, @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull javax.swing.ImageIcon unknownSquareIcon, @NotNull TextAreaDefaults textAreaDefaults, @NotNull MapManager<G,A,R> mapManager)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhideAttributeDialog(G gameObject)Hides the game object attributes dialog for a givenGameObjectinstance.voidshowAttributeDialog(G gameObject)Shows the game object attributes dialog for a givenGameObjectinstance.
-
-
-
Constructor Detail
-
GameObjectAttributesDialogFactory
public GameObjectAttributesDialogFactory(@NotNull @NotNull ArchetypeTypeSet archetypeTypeSet, @NotNull @NotNull java.awt.Frame parent, @NotNull @NotNull CFTreasureListTree treasureListTree, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull javax.swing.filechooser.FileFilter mapFileFilter, @NotNull @NotNull javax.swing.filechooser.FileFilter scriptFileFilter, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull Spells<GameObjectSpell<G,A,R>> gameObjectSpells, @NotNull @NotNull Spells<NumberSpell> numberSpells, int undefinedSpellIndex, @NotNull @NotNull TreasureTree treasureTree, @NotNull @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull @NotNull javax.swing.ImageIcon unknownSquareIcon, @NotNull @NotNull TextAreaDefaults textAreaDefaults, @NotNull @NotNull MapManager<G,A,R> mapManager)Creates a new instance.- Parameters:
archetypeTypeSet- the list of CF type-dataparent- the parent frame for dialog boxestreasureListTree- the treasure list tree to displayfaceObjectProviders- the face object providers for looking up facesanimationObjects- the animation objects instance for choosing animation namesprojectSettings- the project settings to usemapFileFilter- the file filter to use for map filesscriptFileFilter- the file filter to use for script filesfaceObjects- the face objects instance for choosing face namesgameObjectSpells- the game object spells to usenumberSpells- the numbered spells to useundefinedSpellIndex- the index for "no spell"treasureTree- the treasure tree to usenoFaceSquareIcon- the image icon for no animationsunknownSquareIcon- the image icon for undefined animationstextAreaDefaults- the test area defaults for text fieldsmapManager- the map manager instance
-
-
Method Detail
-
showAttributeDialog
public void showAttributeDialog(@NotNull G gameObject)Shows the game object attributes dialog for a givenGameObjectinstance.- Parameters:
gameObject- the GameObject to be displayed by this dialog
-
hideAttributeDialog
public void hideAttributeDialog(@NotNull G gameObject)Hides the game object attributes dialog for a givenGameObjectinstance.- Parameters:
gameObject- the GameObject to be displayed by this dialog
-
-