@Deprecated
public abstract class IndentEngine
extends org.openide.ServiceType
| Constructor | Description |
|---|---|
IndentEngine() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
acceptMimeType(java.lang.String mime) |
Deprecated.
Allow subclasses to decide whether they are suitable
for the given mime-type or not.
|
abstract java.io.Writer |
createWriter(javax.swing.text.Document doc,
int offset,
java.io.Writer writer) |
Deprecated.
Creates writer that formats text that is inserted into it.
|
static IndentEngine |
find(java.lang.String mime) |
Deprecated.
Finds engine associated with given mime type.
|
static IndentEngine |
find(javax.swing.text.Document doc) |
Deprecated.
Finds engine associated with given document.
|
static IndentEngine |
getDefault() |
Deprecated.
Returns a simple indentation engine that does no formatting.
|
org.openide.util.HelpCtx |
getHelpCtx() |
Deprecated.
|
static java.util.Enumeration<? extends IndentEngine> |
indentEngines() |
Deprecated.
Returns enumeration of all registered indentation engines.
|
abstract int |
indentLine(javax.swing.text.Document doc,
int offset) |
Deprecated.
Indents the current line.
|
abstract int |
indentNewLine(javax.swing.text.Document doc,
int offset) |
Deprecated.
Inserts new line at given position and indents the new line with
spaces.
|
static void |
register(java.lang.String mime,
IndentEngine eng) |
Deprecated.
IndentEngine now is a ServiceType
|
public org.openide.util.HelpCtx getHelpCtx()
getHelpCtx in class org.openide.ServiceTypepublic abstract int indentLine(javax.swing.text.Document doc,
int offset)
doc - the document to work onoffset - the offset of a character on the linepublic abstract int indentNewLine(javax.swing.text.Document doc,
int offset)
doc - the document to work onoffset - the offset of a character on the linepublic abstract java.io.Writer createWriter(javax.swing.text.Document doc,
int offset,
java.io.Writer writer)
The provided document and offset are only informational, should not be modified but only used to find correct indentation strategy.
doc - documentoffset - position to begin inserts atwriter - writer to write toprotected boolean acceptMimeType(java.lang.String mime)
mime - mime-type string@Deprecated
public static void register(java.lang.String mime,
IndentEngine eng)
public static java.util.Enumeration<? extends IndentEngine> indentEngines()
public static IndentEngine find(java.lang.String mime)
public static IndentEngine find(javax.swing.text.Document doc)
public static IndentEngine getDefault()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.