Package editor

Class GosuEditorKit

All Implemented Interfaces:
Serializable, Cloneable

public class GosuEditorKit extends DefaultEditorKit
A simple EditorKit for editing GosuDocuments.
See Also:
  • Field Details

  • Constructor Details

    • GosuEditorKit

      public GosuEditorKit()
  • Method Details

    • 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
    • getViewFactory

      public final GosuStyleContext getViewFactory()
      Overrides:
      getViewFactory in class DefaultEditorKit
      Returns:
      The view factory
    • setStylePreferences

      public void setStylePreferences(GosuStyleContext preferences)