APIdia Launch Partner
Top Fields Constructors Methods
com.sun.jfx.incubator.scene.control.richtext

public Class StringStyledInput

extends Object
implements StyledInput
Class Inheritance
All Implemented Interfaces
jfx.incubator.scene.control.richtext.model.StyledInput, java.io.Closeable, java.lang.AutoCloseable
Imports
java.io.IOException, jfx.incubator.scene.control.richtext.model.StyleAttributeMap, .StyledInput, .StyledSegment

Field Summary

Modifier and TypeField and Description
private final StyleAttributeMap
private int
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private int
charAt(int index)

public void
close()

Implements java.io.Closeable.close.

Closes this stream and releases any system resources associated with it.

private int
indexOfLineBreak(int start)

public StyledSegment
nextSegment()

Implements jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

Returns the next segment, or null if no more segments.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attrsback to summary
private final StyleAttributeMap attrs
offsetback to summary
private int offset
textback to summary
private final String text

Constructor Detail

StringStyledInputback to summary
public StringStyledInput(String text, StyleAttributeMap a)

Method Detail

charAtback to summary
private int charAt(int index)
closeback to summary
public void close() throws IOException

Implements java.io.Closeable.close.

Doc from java.io.Closeable.close.

Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect.

As noted in AutoCloseable#close(), cases where the close may fail require careful attention. It is strongly advised to relinquish the underlying resources and to internally mark the Closeable as closed, prior to throwing the IOException.

Annotations
@Override
Exceptions
IOException:
if an I/O error occurs
indexOfLineBreakback to summary
private int indexOfLineBreak(int start)
nextSegmentback to summary
public StyledSegment nextSegment()

Implements jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

Doc from jfx.incubator.scene.control.richtext.model.StyledInput.nextSegment.

Returns the next segment, or null if no more segments.

Annotations
@Override