danger.text.span
Class SelectionSpan

java.lang.Object
  extended by danger.text.span.ColorSpan.Standard
      extended by danger.text.span.MutableColorSpan
          extended by danger.text.span.SelectionSpan
All Implemented Interfaces:
CharacterSpan, ColorSpan, MarginHighlightSpan, MutableSpan, Cloneable


public class SelectionSpan
extends MutableColorSpan
implements MarginHighlightSpan

This class represents the text that has been selected (by shift-arrow movement) within the buffer. The reason it is its own class instead of being just another MutableColorSpan is so ParagraphSpan.Set can make it draw in the margins when it crosses lines and so QuoteHackSpan can make it not draw when mirroring greater-than signs from one line to another. The reason it is mutable is so its color can change when you change the color of the EditText.


Nested Class Summary
 
Nested classes/interfaces inherited from interface danger.text.span.CharacterSpan
CharacterSpan.Series, CharacterSpan.Set
 
Nested classes/interfaces inherited from interface danger.text.span.ColorSpan
ColorSpan.Standard
 
Field Summary
static Class SELECTION_SPAN_TYPE
           
 
Fields inherited from interface danger.text.span.MarginHighlightSpan
MARGIN_HIGHLIGHT_SPAN_TYPE
 
Fields inherited from interface danger.text.span.CharacterSpan
CHARACTER_SPAN_TYPE
 
Constructor Summary
SelectionSpan()
           
 
Method Summary
 
Methods inherited from class danger.text.span.MutableColorSpan
clone, setBackground, setForeground, setHasBackground, setHasForeground
 
Methods inherited from class danger.text.span.ColorSpan.Standard
getBackground, getForeground, hasBackground, hasForeground
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECTION_SPAN_TYPE

public static final Class SELECTION_SPAN_TYPE
Constructor Detail

SelectionSpan

public SelectionSpan()