Record Class ViewModelEditorSettings

java.lang.Object
java.lang.Record
dk.gtz.graphedit.viewmodel.ViewModelEditorSettings
Record Components:
gridSizeX - Width of snapgrid cells
gridSizeY - Height of snapgrid cells
gridSnap - When true, vertices will snap to the grid
useLightTheme - When true, the editor will use a light color scheme
autoOpenLastProject - When true, the last opened project will be automatically opened next time you start the editor
showInspectorPane - (Deprecated) doesn't do anything anymore
showInfoToasts - When true, will display toasts on logger.info calls
showWarnToasts - When true, will display toasts on logger.warn calls
showErrorToasts - When true, will display toasts on logger.error calls
showTraceToasts - When true, will display toasts on logger.trace calls
lastOpenedProject - Filepath to the last opened graphedit project file
recentProjects - List of filepaths that have been recently opened
disabledPlugins - List of plugin names that are loaded, but not initialized
tipIndex - Index of the last shown tip
showTips - 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

    Constructors
    Constructor
    Description
    ViewModelEditorSettings(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 instance
    Construct a new instance
    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)
    Creates an instance of a ViewModelEditorSettings record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    javafx.beans.property.BooleanProperty
    Returns the value of the autoOpenLastProject record component.
    javafx.beans.property.ListProperty<String>
    Returns the value of the disabledPlugins record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    javafx.beans.property.DoubleProperty
    Returns the value of the gridSizeX record component.
    javafx.beans.property.DoubleProperty
    Returns the value of the gridSizeY record component.
    javafx.beans.property.BooleanProperty
    Returns the value of the gridSnap record component.
    final int
    Returns a hash code value for this object.
    javafx.beans.property.StringProperty
    Returns the value of the lastOpenedProject record component.
    javafx.beans.property.ListProperty<String>
    Returns the value of the recentProjects record component.
    javafx.beans.property.BooleanProperty
    Returns the value of the showErrorToasts record component.
    javafx.beans.property.BooleanProperty
    Returns the value of the showInfoToasts record component.
    javafx.beans.property.BooleanProperty
    Deprecated.
    javafx.beans.property.BooleanProperty
    Returns the value of the showTips record component.
    javafx.beans.property.BooleanProperty
    Returns the value of the showTraceToasts record component.
    javafx.beans.property.BooleanProperty
    Returns the value of the showWarnToasts record component.
    javafx.beans.property.IntegerProperty
    Returns the value of the tipIndex record component.
    final String
    Returns a string representation of this record class.
    javafx.beans.property.BooleanProperty
    Returns the value of the useLightTheme record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ViewModelEditorSettings

      public ViewModelEditorSettings(ModelEditorSettings settings)
      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 cells
      gridSizeY - Height of snapgrid cells
      gridSnap - When true, vertices will snap to the grid
      useLightTheme - When true, the editor will use a light color scheme
      autoOpenLastProject - When true, the last opened project will be automatically opened next time you start the editor
      showInspectorPane - (Deprecated) doesn't do anything anymore
      showInfoToasts - When true, will display toasts on logger.info calls
      showWarnToasts - When true, will display toasts on logger.warn calls
      showErrorToasts - When true, will display toasts on logger.error calls
      showTraceToasts - When true, will display toasts on logger.trace calls
      lastOpenedProject - Filepath to the last opened graphedit project file
      recentProjects - List of filepaths that have been recently opened
      disabledPlugins - List of plugin names that are loaded, but not initialized
      tipIndex - Index of the last shown tip
      showTips - 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 a ViewModelEditorSettings record class.
      Parameters:
      gridSizeX - the value for the gridSizeX record component
      gridSizeY - the value for the gridSizeY record component
      gridSnap - the value for the gridSnap record component
      useLightTheme - the value for the useLightTheme record component
      autoOpenLastProject - the value for the autoOpenLastProject record component
      showInspectorPane - the value for the showInspectorPane record component
      showInfoToasts - the value for the showInfoToasts record component
      showWarnToasts - the value for the showWarnToasts record component
      showErrorToasts - the value for the showErrorToasts record component
      showTraceToasts - the value for the showTraceToasts record component
      lastOpenedProject - the value for the lastOpenedProject record component
      recentProjects - the value for the recentProjects record component
      disabledPlugins - the value for the disabledPlugins record component
      tipIndex - the value for the tipIndex record component
      showTips - the value for the showTips record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • gridSizeX

      public javafx.beans.property.DoubleProperty gridSizeX()
      Returns the value of the gridSizeX record component.
      Returns:
      the value of the gridSizeX record component
    • gridSizeY

      public javafx.beans.property.DoubleProperty gridSizeY()
      Returns the value of the gridSizeY record component.
      Returns:
      the value of the gridSizeY record component
    • gridSnap

      public javafx.beans.property.BooleanProperty gridSnap()
      Returns the value of the gridSnap record component.
      Returns:
      the value of the gridSnap record component
    • useLightTheme

      public javafx.beans.property.BooleanProperty useLightTheme()
      Returns the value of the useLightTheme record component.
      Returns:
      the value of the useLightTheme record component
    • autoOpenLastProject

      public javafx.beans.property.BooleanProperty autoOpenLastProject()
      Returns the value of the autoOpenLastProject record component.
      Returns:
      the value of the autoOpenLastProject record component
    • showInspectorPane

      @Deprecated public javafx.beans.property.BooleanProperty showInspectorPane()
      Deprecated.
      Returns the value of the showInspectorPane record component.
      Returns:
      the value of the showInspectorPane record component
    • showInfoToasts

      public javafx.beans.property.BooleanProperty showInfoToasts()
      Returns the value of the showInfoToasts record component.
      Returns:
      the value of the showInfoToasts record component
    • showWarnToasts

      public javafx.beans.property.BooleanProperty showWarnToasts()
      Returns the value of the showWarnToasts record component.
      Returns:
      the value of the showWarnToasts record component
    • showErrorToasts

      public javafx.beans.property.BooleanProperty showErrorToasts()
      Returns the value of the showErrorToasts record component.
      Returns:
      the value of the showErrorToasts record component
    • showTraceToasts

      public javafx.beans.property.BooleanProperty showTraceToasts()
      Returns the value of the showTraceToasts record component.
      Returns:
      the value of the showTraceToasts record component
    • lastOpenedProject

      public javafx.beans.property.StringProperty lastOpenedProject()
      Returns the value of the lastOpenedProject record component.
      Returns:
      the value of the lastOpenedProject record component
    • recentProjects

      public javafx.beans.property.ListProperty<String> recentProjects()
      Returns the value of the recentProjects record component.
      Returns:
      the value of the recentProjects record component
    • disabledPlugins

      public javafx.beans.property.ListProperty<String> disabledPlugins()
      Returns the value of the disabledPlugins record component.
      Returns:
      the value of the disabledPlugins record component
    • tipIndex

      public javafx.beans.property.IntegerProperty tipIndex()
      Returns the value of the tipIndex record component.
      Returns:
      the value of the tipIndex record component
    • showTips

      public javafx.beans.property.BooleanProperty showTips()
      Returns the value of the showTips record component.
      Returns:
      the value of the showTips record component