Package editor

Class GosuEditorKit

    • Constructor Detail

      • GosuEditorKit

        public GosuEditorKit()
    • Method Detail

      • getStylePreferences

        public static GosuStyleContext getStylePreferences()
        Returns:
        The GosuStyleContext controlling the visual preferences.
      • getContentType

        public String getContentType()
        Get the MIME type of the data that this kit represents support for. This kit supports the type text/gosu.
        Overrides:
        getContentType in class DefaultEditorKit
      • createDefaultDocument

        public Document createDefaultDocument()
        Creates an uninitialized text storage model that is appropriate for this type of editor.
        Overrides:
        createDefaultDocument in class DefaultEditorKit
        Returns:
        The document model
      • setStylePreferences

        public void setStylePreferences​(GosuStyleContext preferences)