 |
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 archetype.getAttributeString(archetypeAttributeName).equals(newString) ?
"" : archetypeAttributeName +
" " + newString;
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.
DialogAttributeMapPath(@NotNull final ArchetypeAttributeMapPath ref, @NotNull final TilePanel input)
Creates a new instance.
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).
final TilePanel input
The input ui component for editing the value.
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.
An ArchetypeAttribute for selecting map path names.
Interface for MapArchObjects.
void appendSummary(@NotNull final Document doc, @NotNull final Style style)
Base classes for rendering maps.
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)
String getText()
Returns the text.
A tile panel displays exactly one direction for map tiling.