Gridarta Editor
net.sf.gridarta.gui.utils.AnimationComponent Class Reference

A JPanel that allows the user to select an animation name. More...

+ Inheritance diagram for net.sf.gridarta.gui.utils.AnimationComponent:
+ Collaboration diagram for net.sf.gridarta.gui.utils.AnimationComponent:

Public Member Functions

 AnimationComponent (@NotNull final String animationName, @NotNull final AnimationObjects animationObjects, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final ImageIcon noFaceSquareIcon, @NotNull final ImageIcon unknownSquareIcon)
 Creates a new instance. More...
 
String getAnimName ()
 Returns the current animation name. More...
 
Component getInputComponent ()
 Returns the input field component. More...
 
void setAnimName (@NotNull final String animName)
 Sets the current animation name. More...
 
void setEnabled (final boolean enabled)
 

Private Attributes

final AnimTreeChooseAction animTreeChooseAction
 The associated AnimTreeChooseAction. More...
 
final JTextField textField = new JTextField()
 The JTextField that displays the animation name. More...
 

Static Private Attributes

static final long serialVersionUID = 1L
 The serial version UID. More...
 

Detailed Description

A JPanel that allows the user to select an animation name.

Author
Andreas Kirschbaum

Definition at line 41 of file AnimationComponent.java.

Constructor & Destructor Documentation

◆ AnimationComponent()

net.sf.gridarta.gui.utils.AnimationComponent.AnimationComponent ( @NotNull final String  animationName,
@NotNull final AnimationObjects  animationObjects,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final ImageIcon  noFaceSquareIcon,
@NotNull final ImageIcon  unknownSquareIcon 
)

Creates a new instance.

Parameters
animationNamethe initial animation name
animationObjectsthe animation objects to use
faceObjectProvidersthe face object providers for looking up faces
noFaceSquareIconthe image icon for no animations
unknownSquareIconthe image icon for undefined animations

Definition at line 69 of file AnimationComponent.java.

References net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel().

+ Here is the call graph for this function:

Member Function Documentation

◆ getAnimName()

◆ getInputComponent()

Component net.sf.gridarta.gui.utils.AnimationComponent.getInputComponent ( )

Returns the input field component.

Returns
the input field component

Definition at line 141 of file AnimationComponent.java.

References net.sf.gridarta.gui.utils.AnimationComponent.textField.

Referenced by net.sf.gridarta.gui.panel.gameobjectattributes.FaceTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.FaceTab().

+ Here is the caller graph for this function:

◆ setAnimName()

void net.sf.gridarta.gui.utils.AnimationComponent.setAnimName ( @NotNull final String  animName)

Sets the current animation name.

Parameters
animNamethe animation name

Definition at line 124 of file AnimationComponent.java.

References net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel().

Referenced by net.sf.gridarta.gui.panel.gameobjectattributes.FaceTab< G extends GameObject< G, A, R, A extends MapArchObject< A, R extends Archetype< G, A, R >.refresh().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setEnabled()

void net.sf.gridarta.gui.utils.AnimationComponent.setEnabled ( final boolean  enabled)

Member Data Documentation

◆ animTreeChooseAction

final AnimTreeChooseAction net.sf.gridarta.gui.utils.AnimationComponent.animTreeChooseAction
private

The associated AnimTreeChooseAction.

Definition at line 58 of file AnimationComponent.java.

◆ serialVersionUID

final long net.sf.gridarta.gui.utils.AnimationComponent.serialVersionUID = 1L
staticprivate

The serial version UID.

Definition at line 46 of file AnimationComponent.java.

◆ textField

final JTextField net.sf.gridarta.gui.utils.AnimationComponent.textField = new JTextField()
private

The JTextField that displays the animation name.

Definition at line 52 of file AnimationComponent.java.

Referenced by net.sf.gridarta.gui.utils.AnimationComponent.getInputComponent().


The documentation for this class was generated from the following file: