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 |
|---|---|
@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)
Creates a new
PreferencesGroup instance. |
@NotNull CacheFiles |
getCacheFiles()
Returns the cache files for icon and preview images.
|
@Nullable java.lang.String |
getCompassIconName()
Returns the icon name to display in the selected square view.
|
@NotNull Direction[] |
getDirectionMap()
Returns a map of relative direction to map window direction.
|
@NotNull 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.
|
@NotNull javax.swing.filechooser.FileFilter |
getMapFileFilter()
Returns the file filter for map files.
|
@NotNull java.lang.String |
getScriptExtension()
Returns the extension for script files.
|
@NotNull javax.swing.filechooser.FileFilter |
getScriptFileFilter()
Returns the
FileFilter for script files. |
@NotNull 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.
|
@NotNull MapPropertiesDialogFactory<G,A,R> |
newMapPropertiesDialogFactory(@NotNull ProjectSettings projectSettings,
@NotNull MapManager<G,A,R> mapManager)
Creates a new
MapPropertiesDialogFactory instance. |
@NotNull MapViewFactory<G,A,R> |
newMapViewFactory(@NotNull RendererFactory<G,A,R> rendererFactory,
@NotNull PathManager pathManager)
Creates a new
MapViewFactory instance. |
@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)
Creates a new
NewMapDialogFactory instance. |
@NotNull ProjectSettings |
newProjectSettings(@NotNull EditorSettings editorSettings)
Creates a new
ProjectSettings instance. |
@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)
Creates a new
RendererFactory instance. |
@NotNull ScriptArchData<G,A,R> |
newScriptArchData()
Creates a new
ScriptArchData instance. |
@NotNull ScriptArchDataUtils<G,A,R> |
newScriptArchDataUtils(@NotNull ScriptArchUtils scriptArchUtils,
@NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory,
@NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor)
Creates a new
ScriptArchDataUtils instance. |
@NotNull ScriptArchUtils |
newScriptArchUtils(@NotNull ArchetypeTypeList eventTypes)
Creates a new
ScriptArchUtils instance. |
@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)
Creates a new
ScriptedEventFactory instance. |
@Nullable EditorAction |
newServerActions(@NotNull 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 @NotNull ProjectSettings newProjectSettings(@NotNull @NotNull EditorSettings editorSettings)
ProjectSettings instance.editorSettings - the editor settings instance for default values@NotNull @NotNull ScriptArchUtils newScriptArchUtils(@NotNull @NotNull ArchetypeTypeList eventTypes)
ScriptArchUtils instance.eventTypes - the event types to use@NotNull @NotNull ScriptedEventFactory<G,A,R> newScriptedEventFactory(@NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull GameObjectFactory<G,A,R> gameObjectFactory, @NotNull @NotNull ScriptedEventEditor<G,A,R> scriptedEventEditor, @NotNull @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 @NotNull ScriptArchData<G,A,R> newScriptArchData()
ScriptArchData instance.@NotNull @NotNull ScriptArchDataUtils<G,A,R> newScriptArchDataUtils(@NotNull @NotNull ScriptArchUtils scriptArchUtils, @NotNull @NotNull ScriptedEventFactory<G,A,R> scriptedEventFactory, @NotNull @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 @NotNull RendererFactory<G,A,R> newRendererFactory(@NotNull @NotNull MapViewSettings mapViewSettings, @NotNull @NotNull FilterControl<G,A,R> filterControl, @NotNull @NotNull GameObjectParser<G,A,R> gameObjectParser, @NotNull @NotNull FaceObjectProviders faceObjectProviders, @NotNull @NotNull ResourceIcons resourceIcons, @NotNull @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 @NotNull MapViewFactory<G,A,R> newMapViewFactory(@NotNull @NotNull RendererFactory<G,A,R> rendererFactory, @NotNull @NotNull PathManager pathManager)
MapViewFactory instance.rendererFactory - the renderer factory to usepathManager - the path manager for converting path names view
factories@NotNull @NotNull MapPropertiesDialogFactory<G,A,R> newMapPropertiesDialogFactory(@NotNull @NotNull ProjectSettings projectSettings, @NotNull @NotNull MapManager<G,A,R> mapManager)
MapPropertiesDialogFactory instance.projectSettings - the project settings to usemapManager - the map manager to use@NotNull @NotNull NewMapDialogFactory<G,A,R> newNewMapDialogFactory(@NotNull @NotNull MapViewsManager<G,A,R> mapViewsManager, @NotNull @NotNull MapArchObjectFactory<A> mapArchObjectFactory, @NotNull @NotNull PickmapChooserView<G,A,R> pickmapChooserView, @NotNull @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
@NotNull net.sf.japi.swing.prefs.PreferencesGroup createPreferencesGroup(@NotNull
@NotNull ProjectSettings projectSettings,
@NotNull
@NotNull EditorSettings editorSettings,
@NotNull
@NotNull DelegatingMapValidator<G,A,R> validators,
@NotNull
@NotNull AppPreferencesModel appPreferencesModel,
@NotNull
@NotNull ExitConnectorModel exitConnectorModel,
@NotNull
@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 @Nullable EditorAction newServerActions(@NotNull @NotNull FileControl<G,A,R> fileControl)
fileControl - the file control for saving mapsnull@NotNull @NotNull javax.swing.filechooser.FileFilter getScriptFileFilter()
FileFilter for script files.@NotNull @NotNull java.lang.String getScriptExtension()
@NotNull @NotNull java.lang.String getScriptName()
boolean isCreateDirectionPane()
int getUndefinedSpellIndex()
@NotNull @NotNull CacheFiles getCacheFiles()
@NotNull @NotNull Direction[] getDirectionMap()
boolean isAllowRandomMapParameters()
@Nullable @Nullable java.lang.String getCompassIconName()
null to display no icon@NotNull @NotNull java.lang.String getGridartaJarFilename()
@NotNull @NotNull javax.swing.filechooser.FileFilter getMapFileFilter()
int[] getLockedItemsTypeNumbers()
boolean isAutoValidatorDefault()