Class AttributesPaneBuilder<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>


  • public class AttributesPaneBuilder<G extends GameObject<G,​A,​R>,​A extends MapArchObject<A>,​R extends Archetype<G,​A,​R>>
    extends java.lang.Object
    Builder for game object attribute panels.
    • Constructor Detail

      • AttributesPaneBuilder

        public AttributesPaneBuilder​(@NotNull
                                     @NotNull Attributes attributes,
                                     @NotNull
                                     @NotNull java.awt.Component parent,
                                     @NotNull
                                     @NotNull ArchetypeTypeSet archetypeTypeSet,
                                     @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)
        Creates a new instance.
        Parameters:
        attributes - the game object for which the attributes are built
        parent - the parent component for dialogs
        archetypeTypeSet - the reference to the list of archetype types
        treasureListTree - the treasure list tree to display
        faceObjectProviders - the face object providers for looking up faces
        animationObjects - the animation objects instance for choosing animation names
        projectSettings - the project settings to use
        mapFileFilter - the file filter to use for map files
        scriptFileFilter - the file filter to use for script files
        faceObjects - the face objects instance for choosing face names
        gameObjectSpells - the game object spells to use
        numberSpells - the numbered spells to use
        undefinedSpellIndex - the index for "no spell"
        treasureTree - the treasure tree to use
        noFaceSquareIcon - the image icon for no animations
        unknownSquareIcon - the image icon for undefined animations
        textAreaDefaults - the text area defaults for text fields
    • Method Detail

      • getTabbedPane

        @NotNull
        public @NotNull java.awt.Component getTabbedPane()
        Returns the JTabbedPane that contains all attribute tabs.
        Returns:
        the pane
      • getDialogAttributes

        @NotNull
        public @NotNull java.lang.Iterable<DialogAttribute<G,​A,​R,​?>> getDialogAttributes()
        Returns all DialogAttributes in the dialog.
        Returns:
        the dialog attributes
      • buildAttribute

        public void buildAttribute​(@NotNull
                                   @NotNull Attributes attributes,
                                   @NotNull
                                   @NotNull java.lang.Iterable<ArchetypeAttributeSection> archetypeType)
        Constructs the central part of the attribute dialog, containing the object's attributes.
        Parameters:
        attributes - the attributes for which the attributes panel is built
        archetypeType - the archetype type of gamObject