Package ro.sync.exml.view.graphics
Class AttributedString.AttributedInterval
- java.lang.Object
-
- ro.sync.exml.view.graphics.AttributedString.AttributedInterval
-
- Enclosing class:
- AttributedString
public static class AttributedString.AttributedInterval extends java.lang.Object
A text interval from the string, with a specific attribute.
-
-
Constructor Summary
Constructors Constructor Description AttributedInterval(int startOffset, int endOffset, TextAttribute attribute, java.lang.Object value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
TextAttribute
getAttribute()
int
getEndOffset()
int
getStartOffset()
java.lang.Object
getValue()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AttributedInterval
public AttributedInterval(int startOffset, int endOffset, TextAttribute attribute, java.lang.Object value)
Constructor.- Parameters:
startOffset
- The start offsetendOffset
- The end offsetattribute
- The attribute keyvalue
- The attribute value
-
-
Method Detail
-
getStartOffset
public int getStartOffset()
- Returns:
- Returns the index of the first character of the range.
-
getEndOffset
public int getEndOffset()
- Returns:
- Returns the Index of the character following the last character.
-
getAttribute
public TextAttribute getAttribute()
- Returns:
- Returns the attribute.
-
getValue
public java.lang.Object getValue()
- Returns:
- Returns the value.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
-