Class PropertiesStyler
java.lang.Object
qupath.lib.gui.scripting.richtextfx.stylers.PropertiesStyler
- All Implemented Interfaces:
- ScriptStyler
Styling to apply to a 
CodeArea, based on Java .properties and .cfg file syntax.- Since:
- v0.4.0
- 
Method SummaryModifier and TypeMethodDescriptionorg.fxmisc.richtext.model.StyleSpans<Collection<String>> computeConsoleStyles(String text, boolean logConsole) Compute styling for the specifiedtext, considering it will be used in the console.org.fxmisc.richtext.model.StyleSpans<Collection<String>> computeEditorStyles(String text) Compute styling for the specifiedtext, considering it will be used in the main editor.Get a set of the scripting languages supported by this styler.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface qupath.lib.gui.scripting.richtextfx.stylers.ScriptStylergetBaseStyle
- 
Method Details- 
getLanguageNamesDescription copied from interface:ScriptStylerGet a set of the scripting languages supported by this styler.Note: One of the names returned by this method must match exactly (but case-insensitive) that of the corresponding ScriptLanguagefor QuPath to automatically apply it to the script editor when needed.- Specified by:
- getLanguageNamesin interface- ScriptStyler
- Returns:
 
- 
computeEditorStylesDescription copied from interface:ScriptStylerCompute styling for the specifiedtext, considering it will be used in the main editor.- Specified by:
- computeEditorStylesin interface- ScriptStyler
- Parameters:
- text- the text to process styling for
- Returns:
- stylespans      the StyleSpansto apply
 
- 
computeConsoleStylespublic org.fxmisc.richtext.model.StyleSpans<Collection<String>> computeConsoleStyles(String text, boolean logConsole) Description copied from interface:ScriptStylerCompute styling for the specifiedtext, considering it will be used in the console.- Specified by:
- computeConsoleStylesin interface- ScriptStyler
- Parameters:
- text- the text to process styling for
- logConsole- if true, the console prints to the log rather than directly
- Returns:
- stylespans      the StyleSpansto apply
 
 
-