|
Gridarta Editor
|
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... | |
A TreeChooseAction that updates an animation label.
Definition at line 37 of file AnimTreeChooseAction.java.
| 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.
| text | the text for the button |
| textComponent | the text component that holds the current animation name |
| icon | the label showing the icon |
| animationObjects | the animation objects providing the animation names tree |
| faceObjectProviders | the face object providers for looking up faces |
| noFaceSquareIcon | the image icon for no animations |
| unknownSquareIcon | the 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:| 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:
|
protected |
Definition at line 129 of file AnimTreeChooseAction.java.
| 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:| final void net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel | ( | ) |
Updates the icon of icon to reflect the current animation name.
Definition at line 110 of file AnimTreeChooseAction.java.
References net.sf.gridarta.model.data.NamedObjects< E extends NamedObject >.get(), net.sf.gridarta.model.face.FaceObjectProviders.getDisplayIcon(), net.sf.gridarta.gui.utils.TreeChooseAction.getFaceName(), net.sf.gridarta.gui.utils.AnimTreeChooseAction.noFaceSquareIcon, and net.sf.gridarta.gui.utils.AnimTreeChooseAction.unknownSquareIcon.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.actionPerformed(), net.sf.gridarta.gui.utils.AnimationComponent.AnimationComponent(), net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction(), and net.sf.gridarta.gui.utils.AnimationComponent.setAnimName().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
The AnimationObjects to select from.
Definition at line 54 of file AnimTreeChooseAction.java.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction().
|
private |
The FaceObjectProviders for looking up faces.
Definition at line 60 of file AnimTreeChooseAction.java.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction().
|
private |
The button showing the icon.
Definition at line 48 of file AnimTreeChooseAction.java.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction().
|
private |
The ImageIcon for no animations.
Definition at line 66 of file AnimTreeChooseAction.java.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction(), and net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel().
|
staticprivate |
The serial version UID.
Definition at line 42 of file AnimTreeChooseAction.java.
|
private |
The ImageIcon for undefined animations.
Definition at line 72 of file AnimTreeChooseAction.java.
Referenced by net.sf.gridarta.gui.utils.AnimTreeChooseAction.AnimTreeChooseAction(), and net.sf.gridarta.gui.utils.AnimTreeChooseAction.updateIconLabel().