Package dk.gtz.graphedit.viewmodel
Record Class ViewModelEditorSettings
java.lang.Object
java.lang.Record
dk.gtz.graphedit.viewmodel.ViewModelEditorSettings
- Record Components:
gridSizeX- Width of snapgrid cellsgridSizeY- Height of snapgrid cellsgridSnap- When true, vertices will snap to the griduseLightTheme- When true, the editor will use a light color schemeautoOpenLastProject- When true, the last opened project will be automatically opened next time you start the editorshowInspectorPane- (Deprecated) doesn't do anything anymoreshowInfoToasts- When true, will display toasts on logger.info callsshowWarnToasts- When true, will display toasts on logger.warn callsshowErrorToasts- When true, will display toasts on logger.error callsshowTraceToasts- When true, will display toasts on logger.trace callslastOpenedProject- Filepath to the last opened graphedit project filerecentProjects- List of filepaths that have been recently openeddisabledPlugins- List of plugin names that are loaded, but not initializedtipIndex- Index of the last shown tipshowTips- When true, will show tips on startup
public record ViewModelEditorSettings(javafx.beans.property.DoubleProperty gridSizeX, javafx.beans.property.DoubleProperty gridSizeY, javafx.beans.property.BooleanProperty gridSnap, javafx.beans.property.BooleanProperty useLightTheme, javafx.beans.property.BooleanProperty autoOpenLastProject, javafx.beans.property.BooleanProperty showInspectorPane, javafx.beans.property.BooleanProperty showInfoToasts, javafx.beans.property.BooleanProperty showWarnToasts, javafx.beans.property.BooleanProperty showErrorToasts, javafx.beans.property.BooleanProperty showTraceToasts, javafx.beans.property.StringProperty lastOpenedProject, javafx.beans.property.ListProperty<String> recentProjects, javafx.beans.property.ListProperty<String> disabledPlugins, javafx.beans.property.IntegerProperty tipIndex, javafx.beans.property.BooleanProperty showTips)
extends Record
View model representation of the global editor settings
-
Constructor Summary
ConstructorsConstructorDescriptionViewModelEditorSettings(double gridSizeX, double gridSizeY, boolean gridSnap, boolean useLightTheme, boolean autoOpenLastProject, boolean showInspectorPane, boolean showInfoToasts, boolean showWarnToasts, boolean showErrorToasts, boolean showTraceToasts, String lastOpenedProject, List<String> recentProjects, List<String> disabledPlugins, int tipIndex, boolean showTips) Construct a new instanceViewModelEditorSettings(ModelEditorSettings settings) Construct a new instanceViewModelEditorSettings(javafx.beans.property.DoubleProperty gridSizeX, javafx.beans.property.DoubleProperty gridSizeY, javafx.beans.property.BooleanProperty gridSnap, javafx.beans.property.BooleanProperty useLightTheme, javafx.beans.property.BooleanProperty autoOpenLastProject, javafx.beans.property.BooleanProperty showInspectorPane, javafx.beans.property.BooleanProperty showInfoToasts, javafx.beans.property.BooleanProperty showWarnToasts, javafx.beans.property.BooleanProperty showErrorToasts, javafx.beans.property.BooleanProperty showTraceToasts, javafx.beans.property.StringProperty lastOpenedProject, javafx.beans.property.ListProperty<String> recentProjects, javafx.beans.property.ListProperty<String> disabledPlugins, javafx.beans.property.IntegerProperty tipIndex, javafx.beans.property.BooleanProperty showTips) Creates an instance of aViewModelEditorSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.BooleanPropertyReturns the value of theautoOpenLastProjectrecord component.javafx.beans.property.ListProperty<String>Returns the value of thedisabledPluginsrecord component.final booleanIndicates whether some other object is "equal to" this one.javafx.beans.property.DoublePropertyReturns the value of thegridSizeXrecord component.javafx.beans.property.DoublePropertyReturns the value of thegridSizeYrecord component.javafx.beans.property.BooleanPropertygridSnap()Returns the value of thegridSnaprecord component.final inthashCode()Returns a hash code value for this object.javafx.beans.property.StringPropertyReturns the value of thelastOpenedProjectrecord component.javafx.beans.property.ListProperty<String>Returns the value of therecentProjectsrecord component.javafx.beans.property.BooleanPropertyReturns the value of theshowErrorToastsrecord component.javafx.beans.property.BooleanPropertyReturns the value of theshowInfoToastsrecord component.javafx.beans.property.BooleanPropertyDeprecated.javafx.beans.property.BooleanPropertyshowTips()Returns the value of theshowTipsrecord component.javafx.beans.property.BooleanPropertyReturns the value of theshowTraceToastsrecord component.javafx.beans.property.BooleanPropertyReturns the value of theshowWarnToastsrecord component.javafx.beans.property.IntegerPropertytipIndex()Returns the value of thetipIndexrecord component.final StringtoString()Returns a string representation of this record class.javafx.beans.property.BooleanPropertyReturns the value of theuseLightThemerecord component.
-
Constructor Details
-
ViewModelEditorSettings
Construct a new instance- Parameters:
settings- The settings model object to base on
-
ViewModelEditorSettings
public ViewModelEditorSettings(double gridSizeX, double gridSizeY, boolean gridSnap, boolean useLightTheme, boolean autoOpenLastProject, @Deprecated boolean showInspectorPane, boolean showInfoToasts, boolean showWarnToasts, boolean showErrorToasts, boolean showTraceToasts, String lastOpenedProject, List<String> recentProjects, List<String> disabledPlugins, int tipIndex, boolean showTips) Construct a new instance- Parameters:
gridSizeX- Width of snapgrid cellsgridSizeY- Height of snapgrid cellsgridSnap- When true, vertices will snap to the griduseLightTheme- When true, the editor will use a light color schemeautoOpenLastProject- When true, the last opened project will be automatically opened next time you start the editorshowInspectorPane- (Deprecated) doesn't do anything anymoreshowInfoToasts- When true, will display toasts on logger.info callsshowWarnToasts- When true, will display toasts on logger.warn callsshowErrorToasts- When true, will display toasts on logger.error callsshowTraceToasts- When true, will display toasts on logger.trace callslastOpenedProject- Filepath to the last opened graphedit project filerecentProjects- List of filepaths that have been recently openeddisabledPlugins- List of plugin names that are loaded, but not initializedtipIndex- Index of the last shown tipshowTips- When true, will show tips on startup
-
ViewModelEditorSettings
public ViewModelEditorSettings(javafx.beans.property.DoubleProperty gridSizeX, javafx.beans.property.DoubleProperty gridSizeY, javafx.beans.property.BooleanProperty gridSnap, javafx.beans.property.BooleanProperty useLightTheme, javafx.beans.property.BooleanProperty autoOpenLastProject, @Deprecated javafx.beans.property.BooleanProperty showInspectorPane, javafx.beans.property.BooleanProperty showInfoToasts, javafx.beans.property.BooleanProperty showWarnToasts, javafx.beans.property.BooleanProperty showErrorToasts, javafx.beans.property.BooleanProperty showTraceToasts, javafx.beans.property.StringProperty lastOpenedProject, javafx.beans.property.ListProperty<String> recentProjects, javafx.beans.property.ListProperty<String> disabledPlugins, javafx.beans.property.IntegerProperty tipIndex, javafx.beans.property.BooleanProperty showTips) Creates an instance of aViewModelEditorSettingsrecord class.- Parameters:
gridSizeX- the value for thegridSizeXrecord componentgridSizeY- the value for thegridSizeYrecord componentgridSnap- the value for thegridSnaprecord componentuseLightTheme- the value for theuseLightThemerecord componentautoOpenLastProject- the value for theautoOpenLastProjectrecord componentshowInspectorPane- the value for theshowInspectorPanerecord componentshowInfoToasts- the value for theshowInfoToastsrecord componentshowWarnToasts- the value for theshowWarnToastsrecord componentshowErrorToasts- the value for theshowErrorToastsrecord componentshowTraceToasts- the value for theshowTraceToastsrecord componentlastOpenedProject- the value for thelastOpenedProjectrecord componentrecentProjects- the value for therecentProjectsrecord componentdisabledPlugins- the value for thedisabledPluginsrecord componenttipIndex- the value for thetipIndexrecord componentshowTips- the value for theshowTipsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
gridSizeX
public javafx.beans.property.DoubleProperty gridSizeX()Returns the value of thegridSizeXrecord component.- Returns:
- the value of the
gridSizeXrecord component
-
gridSizeY
public javafx.beans.property.DoubleProperty gridSizeY()Returns the value of thegridSizeYrecord component.- Returns:
- the value of the
gridSizeYrecord component
-
gridSnap
public javafx.beans.property.BooleanProperty gridSnap()Returns the value of thegridSnaprecord component.- Returns:
- the value of the
gridSnaprecord component
-
useLightTheme
public javafx.beans.property.BooleanProperty useLightTheme()Returns the value of theuseLightThemerecord component.- Returns:
- the value of the
useLightThemerecord component
-
autoOpenLastProject
public javafx.beans.property.BooleanProperty autoOpenLastProject()Returns the value of theautoOpenLastProjectrecord component.- Returns:
- the value of the
autoOpenLastProjectrecord component
-
showInspectorPane
Deprecated.Returns the value of theshowInspectorPanerecord component.- Returns:
- the value of the
showInspectorPanerecord component
-
showInfoToasts
public javafx.beans.property.BooleanProperty showInfoToasts()Returns the value of theshowInfoToastsrecord component.- Returns:
- the value of the
showInfoToastsrecord component
-
showWarnToasts
public javafx.beans.property.BooleanProperty showWarnToasts()Returns the value of theshowWarnToastsrecord component.- Returns:
- the value of the
showWarnToastsrecord component
-
showErrorToasts
public javafx.beans.property.BooleanProperty showErrorToasts()Returns the value of theshowErrorToastsrecord component.- Returns:
- the value of the
showErrorToastsrecord component
-
showTraceToasts
public javafx.beans.property.BooleanProperty showTraceToasts()Returns the value of theshowTraceToastsrecord component.- Returns:
- the value of the
showTraceToastsrecord component
-
lastOpenedProject
public javafx.beans.property.StringProperty lastOpenedProject()Returns the value of thelastOpenedProjectrecord component.- Returns:
- the value of the
lastOpenedProjectrecord component
-
recentProjects
Returns the value of therecentProjectsrecord component.- Returns:
- the value of the
recentProjectsrecord component
-
disabledPlugins
Returns the value of thedisabledPluginsrecord component.- Returns:
- the value of the
disabledPluginsrecord component
-
tipIndex
public javafx.beans.property.IntegerProperty tipIndex()Returns the value of thetipIndexrecord component.- Returns:
- the value of the
tipIndexrecord component
-
showTips
public javafx.beans.property.BooleanProperty showTips()Returns the value of theshowTipsrecord component.- Returns:
- the value of the
showTipsrecord component
-