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

A TreeChooseAction that updates an animation label. More...

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

Public Member Functions

void actionPerformed (@NotNull final ActionEvent e)
 
 AnimTreeChooseAction (@NotNull final String text, @NotNull final JTextComponent textComponent, @NotNull final AbstractButton icon, @NotNull final AnimationObjects animationObjects, @NotNull final FaceObjectProviders faceObjectProviders, @NotNull final ImageIcon noFaceSquareIcon, @NotNull final ImageIcon unknownSquareIcon)
 Create a TreeChooseAction. More...
 
void setEnabled (final boolean newValue)
 
final void updateIconLabel ()
 Updates the icon of icon to reflect the current animation name. More...
 
- Public Member Functions inherited from net.sf.gridarta.gui.utils.TreeChooseAction
void actionPerformed (@NotNull final ActionEvent e)
 
String getFaceName ()
 Returns the current face name. More...
 
 TreeChooseAction (@NotNull final String text, @NotNull final JTextComponent textComponent, @NotNull final NamedObjects<? extends NamedObject > namedObjects, @NotNull final FaceObjectProviders faceObjectProviders)
 Create a TreeChooseAction. More...
 

Protected Member Functions

Object clone ()
 
- Protected Member Functions inherited from net.sf.gridarta.gui.utils.TreeChooseAction
Object clone ()
 

Private Attributes

final AnimationObjects animationObjects
 The AnimationObjects to select from. More...
 
final FaceObjectProviders faceObjectProviders
 The FaceObjectProviders for looking up faces. More...
 
final AbstractButton icon
 The button showing the icon. More...
 
final ImageIcon noFaceSquareIcon
 The ImageIcon for no animations. More...
 
final ImageIcon unknownSquareIcon
 The ImageIcon for undefined animations. More...
 

Static Private Attributes

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

Detailed Description

A TreeChooseAction that updates an animation label.

Author
Andreas Kirschbaum

Definition at line 37 of file AnimTreeChooseAction.java.

Constructor & Destructor Documentation

◆ AnimTreeChooseAction()

net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction ( @NotNull final String  text,
@NotNull final JTextComponent  textComponent,
@NotNull final AbstractButton  icon,
@NotNull final AnimationObjects  animationObjects,
@NotNull final FaceObjectProviders  faceObjectProviders,
@NotNull final ImageIcon  noFaceSquareIcon,
@NotNull final ImageIcon  unknownSquareIcon 
)

Create a TreeChooseAction.

Parameters
textthe text for the button
textComponentthe text component that holds the current animation name
iconthe label showing the icon
animationObjectsthe animation objects providing the animation names tree
faceObjectProvidersthe face object providers for looking up faces
noFaceSquareIconthe image icon for no animations
unknownSquareIconthe image icon for undefined animations

Definition at line 87 of file AnimTreeChooseAction.java.

References net.sf.gridarta.gui.utils.AnimTreeChooseAction.animationObjects, net.sf.gridarta.gui.utils.AnimTreeChooseAction.faceObjectProviders, net.sf.gridarta.gui.utils.AnimTreeChooseAction.icon, net.sf.gridarta.gui.utils.AnimTreeChooseAction.noFaceSquareIcon, net.sf.gridarta.gui.utils.AnimTreeChooseAction.unknownSquareIcon, and net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel().

+ Here is the call graph for this function:

Member Function Documentation

◆ actionPerformed()

void net.sf.gridarta.gui.utils.AnimTreeChooseAction.actionPerformed ( @NotNull final ActionEvent  e)

Definition at line 102 of file AnimTreeChooseAction.java.

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

+ Here is the call graph for this function:

◆ clone()

Object net.sf.gridarta.gui.utils.AnimTreeChooseAction.clone ( )
protected

Definition at line 129 of file AnimTreeChooseAction.java.

◆ setEnabled()

void net.sf.gridarta.gui.utils.AnimTreeChooseAction.setEnabled ( final boolean  newValue)

Definition at line 134 of file AnimTreeChooseAction.java.

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

+ Here is the caller graph for this function:

◆ updateIconLabel()

Member Data Documentation

◆ animationObjects

final AnimationObjects net.sf.gridarta.gui.utils.AnimTreeChooseAction.animationObjects
private

◆ faceObjectProviders

final FaceObjectProviders net.sf.gridarta.gui.utils.AnimTreeChooseAction.faceObjectProviders
private

◆ icon

final AbstractButton net.sf.gridarta.gui.utils.AnimTreeChooseAction.icon
private

The button showing the icon.

Definition at line 48 of file AnimTreeChooseAction.java.

Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction().

◆ noFaceSquareIcon

final ImageIcon net.sf.gridarta.gui.utils.AnimTreeChooseAction.noFaceSquareIcon
private

◆ serialVersionUID

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

The serial version UID.

Definition at line 42 of file AnimTreeChooseAction.java.

◆ unknownSquareIcon

final ImageIcon net.sf.gridarta.gui.utils.AnimTreeChooseAction.unknownSquareIcon
private

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