public interface EditorFactory<G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> extends ProjectFactory<G,A,R>
Modifier and Type | Method and Description |
---|---|
net.sf.japi.swing.prefs.PreferencesGroup |
createPreferencesGroup(ProjectSettings projectSettings,
EditorSettings editorSettings,
DelegatingMapValidator<G,A,R> validators,
AppPreferencesModel appPreferencesModel,
ExitConnectorModel exitConnectorModel,
ConfigSourceFactory configSourceFactory)
Creates a new
PreferencesGroup instance. |
CacheFiles |
getCacheFiles()
Returns the cache files for icon and preview images.
|
java.lang.String |
getCompassIconName()
Returns the icon name to display in the selected square view.
|
Direction[] |
getDirectionMap()
Returns a map of relative direction to map window direction.
|
java.lang.String |
getGridartaJarFilename()
Returns the filename of the editor's .jar file.
|
int[] |
getLockedItemsTypeNumbers()
Returns the type numbers of game objects being locked items.
|
javax.swing.filechooser.FileFilter |
getMapFileFilter()
Returns the file filter for map files.
|
java.lang.String |
getScriptExtension()
Returns the extension for script files.
|
javax.swing.filechooser.FileFilter |
getScriptFileFilter()
Returns the
FileFilter for script files. |
java.lang.String |
getScriptName()
Returns the display name for script files.
|
int |
getUndefinedSpellIndex()
Returns the index for "no spell".
|
boolean |
isAllowRandomMapParameters()
Returns whether exit paths may point to random map parameters.
|
boolean |
isAutoValidatorDefault()
Returns whether the auto validator is enabled by default.
|
boolean |
isCreateDirectionPane()
Returns whether the direction panel should be created.
|
MapPropertiesDialogFactory<G,A,R> |
newMapPropertiesDialogFactory(ProjectSettings projectSettings,
MapManager<G,A,R> mapManager)
Creates a new
MapPropertiesDialogFactory instance. |
MapViewFactory<G,A,R> |
newMapViewFactory(RendererFactory<G,A,R> rendererFactory,
PathManager pathManager)
Creates a new
MapViewFactory instance. |
NewMapDialogFactory<G,A,R> |
newNewMapDialogFactory(MapViewsManager<G,A,R> mapViewsManager,
MapArchObjectFactory<A> mapArchObjectFactory,
PickmapChooserView<G,A,R> pickmapChooserView,
java.awt.Component parent)
Creates a new
NewMapDialogFactory instance. |
ProjectSettings |
newProjectSettings(EditorSettings editorSettings)
Creates a new
ProjectSettings instance. |
RendererFactory<G,A,R> |
newRendererFactory(MapViewSettings mapViewSettings,
FilterControl<G,A,R> filterControl,
GameObjectParser<G,A,R> gameObjectParser,
FaceObjectProviders faceObjectProviders,
ResourceIcons resourceIcons,
SmoothFaces smoothFaces)
Creates a new
RendererFactory instance. |
ScriptArchData<G,A,R> |
newScriptArchData()
Creates a new
ScriptArchData instance. |
ScriptArchDataUtils<G,A,R> |
newScriptArchDataUtils(ScriptArchUtils scriptArchUtils,
ScriptedEventFactory<G,A,R> scriptedEventFactory,
ScriptedEventEditor<G,A,R> scriptedEventEditor)
Creates a new
ScriptArchDataUtils instance. |
ScriptArchUtils |
newScriptArchUtils(ArchetypeTypeList eventTypes)
Creates a new
ScriptArchUtils instance. |
ScriptedEventFactory<G,A,R> |
newScriptedEventFactory(ScriptArchUtils scriptArchUtils,
GameObjectFactory<G,A,R> gameObjectFactory,
ScriptedEventEditor<G,A,R> scriptedEventEditor,
ArchetypeSet<G,A,R> archetypeSet)
Creates a new
ScriptedEventFactory instance. |
EditorAction |
newServerActions(FileControl<G,A,R> fileControl)
Creates the "open in client" action.
|
getDoubleFaceOffset, getIncludeFaceNumbers, getScriptsDir, getSpellFile, getSpellType, loadAttributeRangeChecker, newArchetypeFactory, newArchetypeParser, newArchetypeSet, newGameObjectFactory, newGameObjectParserFactory, newMapArchObjectFactory, newMapArchObjectParserFactory, newMapControlFactory, newResources
@NotNull ProjectSettings newProjectSettings(@NotNull EditorSettings editorSettings)
ProjectSettings
instance.editorSettings
- the editor settings instance for default values@NotNull ScriptArchUtils newScriptArchUtils(@NotNull ArchetypeTypeList eventTypes)
ScriptArchUtils
instance.eventTypes
- the event types to use@NotNull ScriptedEventFactory<G,A,R> newScriptedEventFactory(@NotNull ScriptArchUtils scriptArchUtils, @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor, @NotNull ArchetypeSet<G,A,R> archetypeSet)
ScriptedEventFactory
instance.scriptArchUtils
- the script arch utils to usegameObjectFactory
- the game object factory for creating game
objectsscriptedEventEditor
- the scripted event editor to usearchetypeSet
- the archetype set to use@NotNull ScriptArchData<G,A,R> newScriptArchData()
ScriptArchData
instance.@NotNull ScriptArchDataUtils<G,A,R> newScriptArchDataUtils(@NotNull ScriptArchUtils scriptArchUtils, @NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory, @NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor)
ScriptArchDataUtils
instance.scriptArchUtils
- the script arch utils to usescriptedEventFactory
- the scripted event factory to usescriptedEventEditor
- the scripted event editor to use@NotNull RendererFactory<G,A,R> newRendererFactory(@NotNull MapViewSettings mapViewSettings, @NotNull FilterControl<G,A,R> filterControl, @NotNull GameObjectParser<G,A,R> gameObjectParser, @NotNull FaceObjectProviders faceObjectProviders, @NotNull ResourceIcons resourceIcons, @NotNull SmoothFaces smoothFaces)
RendererFactory
instance.mapViewSettings
- the map view settings to usefilterControl
- the filter control to usegameObjectParser
- the game object parser for creating tooltip
informationfaceObjectProviders
- the face object providers for looking up
facesresourceIcons
- the resource icons for creating iconssmoothFaces
- the smooth faces to use@NotNull MapViewFactory<G,A,R> newMapViewFactory(@NotNull RendererFactory<G,A,R> rendererFactory, @NotNull PathManager pathManager)
MapViewFactory
instance.rendererFactory
- the renderer factory to usepathManager
- the path manager for converting path names view
factories@NotNull MapPropertiesDialogFactory<G,A,R> newMapPropertiesDialogFactory(@NotNull ProjectSettings projectSettings, @NotNull MapManager<G,A,R> mapManager)
MapPropertiesDialogFactory
instance.projectSettings
- the project settings to usemapManager
- the map manager to use@NotNull NewMapDialogFactory<G,A,R> newNewMapDialogFactory(@NotNull MapViewsManager<G,A,R> mapViewsManager, @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull PickmapChooserView<G,A,R> pickmapChooserView, @NotNull java.awt.Component parent)
NewMapDialogFactory
instance.mapViewsManager
- the map viewsmapArchObjectFactory
- the map arch object factory instancepickmapChooserView
- the pickmap chooser view for creating new
pickmapsparent
- the parent component of the dialogs@NotNull net.sf.japi.swing.prefs.PreferencesGroup createPreferencesGroup(@NotNull ProjectSettings projectSettings, @NotNull EditorSettings editorSettings, @NotNull DelegatingMapValidator<G,A,R> validators, @NotNull AppPreferencesModel appPreferencesModel, @NotNull ExitConnectorModel exitConnectorModel, @NotNull ConfigSourceFactory configSourceFactory)
PreferencesGroup
instance.projectSettings
- the project settings to useeditorSettings
- the editor settings to usevalidators
- the validators to useappPreferencesModel
- the app preferences model to useexitConnectorModel
- the exit connector model to useconfigSourceFactory
- the config source factory to use@Nullable EditorAction newServerActions(@NotNull FileControl<G,A,R> fileControl)
fileControl
- the file control for saving mapsnull
@NotNull javax.swing.filechooser.FileFilter getScriptFileFilter()
FileFilter
for script files.@NotNull java.lang.String getScriptExtension()
@NotNull java.lang.String getScriptName()
boolean isCreateDirectionPane()
int getUndefinedSpellIndex()
@NotNull CacheFiles getCacheFiles()
@NotNull Direction[] getDirectionMap()
boolean isAllowRandomMapParameters()
@Nullable java.lang.String getCompassIconName()
null
to display no icon@NotNull java.lang.String getGridartaJarFilename()
@NotNull javax.swing.filechooser.FileFilter getMapFileFilter()
@NotNull int[] getLockedItemsTypeNumbers()
boolean isAutoValidatorDefault()