public class FaceTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends AbstractGameObjectAttributesTab<G,A,R>
GameObject
.Constructor and Description |
---|
FaceTab(@NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel,
@NotNull FaceObjects faceObjects,
@NotNull FaceObjectProviders faceObjectProviders,
@NotNull AnimationObjects animationObjects,
@NotNull javax.swing.ImageIcon noFaceSquareIcon,
@NotNull javax.swing.ImageIcon unknownSquareIcon)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
activate()
Sets the focus to this component.
|
protected void |
apply(G gameObject)
Applies settings to the given game object.
|
boolean |
canApply()
Returns whether a selected game object exists and the current value
differs from the initially set value.
|
@NotNull javax.swing.JPanel |
getPanel()
Creates the contents panel.
|
protected void |
refresh(G gameObject)
Refreshes the display.
|
addAutoApply, addGameObjectAttributesTabListener, apply, getSelectedGameObject, getTabSeverity, removeGameObjectAttributesTabListener, setTabSeverity
public FaceTab(@NotNull @NotNull GameObjectAttributesModel<G,A,R> gameObjectAttributesModel, @NotNull @NotNull FaceObjects faceObjects, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull AnimationObjects animationObjects, @NotNull @NotNull javax.swing.ImageIcon noFaceSquareIcon, @NotNull @NotNull javax.swing.ImageIcon unknownSquareIcon)
gameObjectAttributesModel
- the model to trackfaceObjects
- the face objects for looking up facesfaceObjectProviders
- the face object providers to useanimationObjects
- the animation objects for looking up animationsnoFaceSquareIcon
- the image icon for no animationsunknownSquareIcon
- the image icon for undefined animationsprotected final void refresh(@Nullable G gameObject)
AbstractGameObjectAttributesTab
refresh
in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to set the contents frompublic boolean canApply()
GameObjectAttributesTab
apply()
should be calledpublic void activate()
GameObjectAttributesTab
protected void apply(@NotNull G gameObject)
AbstractGameObjectAttributesTab
apply
in class AbstractGameObjectAttributesTab<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
gameObject
- the game object to set the contents of@NotNull public @NotNull javax.swing.JPanel getPanel()
GameObjectAttributesTab