 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.gui.dialog.gameobjectattributes;
22 import javax.swing.text.Document;
23 import javax.swing.text.Style;
30 import org.jetbrains.annotations.NotNull;
54 final String archetypeAttributeName =
getRef().getArchetypeAttributeName();
55 return inline.equals(archetype.getAttributeString(archetypeAttributeName)) ?
"" : archetypeAttributeName +
" " +
inline;
59 public void appendSummary(@NotNull
final Document doc, @NotNull
final Style style) {
61 if (value.isEmpty()) {
65 addLine(doc, style,
"",
" = " + value);
final T ref
Reference to the attribute data.
Defines types of GameObjects with corresponding attributes.
T getRef()
Returns the attribute data.
An ArchetypeAttribute for selecting animation names.
Base package of all Gridarta classes.
void addLine( @NotNull final Document doc, @NotNull final AttributeSet style, @NotNull final String prefix, @NotNull final String postfix)
Appends a line to a Document.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
A JPanel that allows the user to select an animation name.
void appendSummary(@NotNull final Document doc, @NotNull final Style style)
A single Attribute, combining an ArchetypeAttribute with its input component(s).
GameObjects are the objects based on Archetypes found on maps.
String getAnimName()
Returns the current animation name.
final AnimationComponent input
The input ui component for editing the value.
Interface for MapArchObjects.
String getObjectText(@NotNull final G gameObject, @NotNull final Archetype< G, A, R > archetype, @NotNull final String @NotNull[] newMsg, @NotNull final ArchetypeType archetypeType)
Contains the data of one Gridarta Object-Type.
DialogAttributeAnimationName(@NotNull final ArchetypeAttributeAnimationName ref, @NotNull final AnimationComponent input)
Creates a new instance.