Top Fields Constructors Methods
org.fxmisc.richtext.model

pack-priv abstract Class StyleSpansBase<S>

Located in compilation unit of org.fxmisc.richtext.model.StyleSpansBuilder.

extends Object
implements StyleSpans<S>
Class Inheritance
All Implemented Interfaces
org.fxmisc.richtext.model.StyleSpans, org.fxmisc.richtext.model.TwoDimensional, java.lang.Iterable
Known Direct Subclasses
org.fxmisc.richtext.model.SubSpans, org.fxmisc.richtext.model.AppendedSpans, org.fxmisc.richtext.model.PrependedSpans, org.fxmisc.richtext.model.UpdatedSpans, org.fxmisc.richtext.model.SingletonSpans, org.fxmisc.richtext.model.StyleSpansBuilder.StyleSpansImpl

Field Summary

Modifier and TypeField and Description

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object other)

Overrides java.lang.Object.equals.

Implements org.fxmisc.richtext.model.StyleSpans.equals.

Two StyleSpans objects are considered equal if they contain equal number of StyleSpans and the StyleSpans are pairwise equal.

public IndexRange
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.

public TwoDimensional.Position
offsetToPosition(int offset, TwoDimensional.Bias bias)

Implements org.fxmisc.richtext.model.TwoDimensional.offsetToPosition.

Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the offset value is an absolute position in that entity.

public TwoDimensional.Position
position(int major, int minor)

Implements org.fxmisc.richtext.model.TwoDimensional.position.

Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the major value is the index within the outer list) and the minor value is either the index within the inner list or some amount of length in a list of objects that have length.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

Constructor Detail

StyleSpansBaseback to summary
pack-priv StyleSpansBase()

Method Detail

equalsback to summary
public boolean equals(Object other)

Overrides java.lang.Object.equals.

Implements org.fxmisc.richtext.model.StyleSpans.equals.

Doc from org.fxmisc.richtext.model.StyleSpans.equals.

Two StyleSpans objects are considered equal if they contain equal number of StyleSpans and the StyleSpans are pairwise equal.

Annotations
@Override
getStyleRangeback to summary
public IndexRange getStyleRange(int position)

Implements org.fxmisc.richtext.model.StyleSpans.getStyleRange.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Annotations
@Override
offsetToPositionback to summary
public TwoDimensional.Position offsetToPosition(int offset, TwoDimensional.Bias bias)

Implements org.fxmisc.richtext.model.TwoDimensional.offsetToPosition.

Doc from org.fxmisc.richtext.model.TwoDimensional.offsetToPosition.

Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the offset value is an absolute position in that entity.

Annotations
@Override
positionback to summary
public TwoDimensional.Position position(int major, int minor)

Implements org.fxmisc.richtext.model.TwoDimensional.position.

Doc from org.fxmisc.richtext.model.TwoDimensional.position.

Creates a two dimensional position in some entity (e.g. area, list of lists, list of some object with length) where the major value is the index within the outer list) and the minor value is either the index within the inner list or some amount of length in a list of objects that have length.

Annotations
@Override