 |
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.
final FaceComponent input
The input ui component for editing the value.
T getRef()
Returns the attribute data.
A JPanel that allows the user to select a face name.
Base package of all Gridarta classes.
DialogAttributeFaceName(@NotNull final ArchetypeAttributeFaceName ref, @NotNull final FaceComponent input)
Creates a new instance.
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 single Attribute, combining an ArchetypeAttribute with its input component(s).
GameObjects are the objects based on Archetypes found on maps.
String getFaceName()
Returns the current face name.
Interface for MapArchObjects.
Contains the data of one Gridarta Object-Type.
String getObjectText(@NotNull final G gameObject, @NotNull final Archetype< G, A, R > archetype, @NotNull final String @NotNull[] newMsg, @NotNull final ArchetypeType archetypeType)
void appendSummary(@NotNull final Document doc, @NotNull final Style style)
An ArchetypeAttribute for selecting face names.